Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean is deprecated #140

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/OneButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ OneButton::OneButton()
* @param activeLow Set to true when the input level is LOW when the button is pressed, Default is true.
* @param pullupActive Activate the internal pullup when available. Default is true.
*/
OneButton::OneButton(const int pin, const boolean activeLow, const bool pullupActive)
OneButton::OneButton(const int pin, const bool activeLow, const bool pullupActive)
{
_pin = pin;

Expand Down
2 changes: 1 addition & 1 deletion src/OneButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class OneButton
* @param activeLow Set to true when the input level is LOW when the button is pressed, Default is true.
* @param pullupActive Activate the internal pullup when available. Default is true.
*/
explicit OneButton(const int pin, const boolean activeLow = true, const bool pullupActive = true);
explicit OneButton(const int pin, const bool activeLow = true, const bool pullupActive = true);

// ----- Set runtime parameters -----

Expand Down
2 changes: 1 addition & 1 deletion src/OneButtonTiny.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @param activeLow Set to true when the input level is LOW when the button is pressed, Default is true.
* @param pullupActive Activate the internal pullup when available. Default is true.
*/
OneButtonTiny::OneButtonTiny(const int pin, const boolean activeLow, const bool pullupActive) {
OneButtonTiny::OneButtonTiny(const int pin, const bool activeLow, const bool pullupActive) {
_pin = pin;

if (activeLow) {
Expand Down
2 changes: 1 addition & 1 deletion src/OneButtonTiny.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class OneButtonTiny {
* @param activeLow Set to true when the input level is LOW when the button is pressed, Default is true.
* @param pullupActive Activate the internal pullup when available. Default is true.
*/
explicit OneButtonTiny(const int pin, const boolean activeLow = true, const bool pullupActive = true);
explicit OneButtonTiny(const int pin, const bool activeLow = true, const bool pullupActive = true);

/**
* set # millisec after safe click is assumed.
Expand Down
Loading