#include <Buttons.h>
nxpcup::Buttons::Buttons |
( |
const Config & |
config | ) |
|
|
inline |
Constructor of class Buttons.
- Parameters
-
ButtonId nxpcup::Buttons::getPressed |
( |
| ) |
|
|
inline |
Return the id of pressed button.
- Returns
- ButtonId} type
Return the id of pressed button and save it to parameter buttonId.
- Parameters
-
buttonId | variable for saving current value |
- Returns
- ButtonId} type
bool nxpcup::Buttons::isPressed |
( |
ButtonId |
buttonId | ) |
|
|
inline |
Check button with specific id.
- Parameters
-
- Returns
- true if is pressed, else false
void nxpcup::Buttons::waitForPress |
( |
ButtonId |
buttonId | ) |
|
|
inline |
Wait for press button with specific id.
- Parameters
-
buttonId | id of button on which will wait |
The documentation for this class was generated from the following file: