A model of the 3 buttons on the MMU unit.
More...
#include <buttons.h>
|
void | Step () |
| Performs one step of the state machine - reads the ADC, processes debouncing, updates states of individual buttons.
|
|
bool | ButtonPressed (uint8_t index) const |
|
bool | AnyButtonPressed () const |
|
A model of the 3 buttons on the MMU unit.
◆ AnyButtonPressed()
bool modules::buttons::Buttons::AnyButtonPressed |
( |
| ) |
const |
|
inline |
- Returns
- true if any of the button is pressed
◆ ButtonPressed()
bool modules::buttons::Buttons::ButtonPressed |
( |
uint8_t |
index | ) |
const |
|
inline |
- Returns
- true if button at index is pressed
- Parameters
-
index | of the button to check |
The documentation for this class was generated from the following files: