#include <exbutton.h>
◆ ExButton()
ExButton::ExButton |
( |
int |
my_pin, |
|
|
int |
interval, |
|
|
int |
my_addr, |
|
|
int |
my_step_addr |
|
) |
| |
Constructor for ExButton.
- Parameters
-
my_pin | The digital pin this button is connected to |
func | The beginning function for this button (See ExButton::doFunc for the numbering) |
interval | The debounce interval for this button in milliseconds |
◆ doFunc()
void ExButton::doFunc |
( |
bool |
playing | ) |
|
Execute the button's configured fucntion.
◆ fn_choice_screen()
bool ExButton::fn_choice_screen |
( |
| ) |
|
Prompt user to choose the button function.
- Returns
- If choice was made
◆ fn_choice_screen_2()
bool ExButton::fn_choice_screen_2 |
( |
| ) |
|
Prompt user to choose the button function, second page.
- Returns
- True if user chose an option, false if user chose "go back" option
- Version
- New in 2.3.3
◆ fn_choice_tpose()
bool ExButton::fn_choice_tpose |
( |
| ) |
|
Prompt user to choose the button function, second page.
- Returns
- True if user chose an option, false if user chose "go back" option
- Version
- New in 2.5.7
◆ getFunc()
int ExButton::getFunc |
( |
| ) |
|
Return the current function number of the button.
- Returns
- the current function number
◆ printFunc()
String ExButton::printFunc |
( |
| ) |
|
Returns a short text label of the button's function.
- Returns
- A short description of the current button fucntion.
◆ setFunc()
void ExButton::setFunc |
( |
int |
func | ) |
|
Set the function to be called when this button is pressed.
- Parameters
-
func | The function to be called. See ExButton::doFunc() to determine the internal numbering of the functions. |
The documentation for this class was generated from the following files: