Class OledButtonHandler

Class Documentation

class OledButtonHandler

Class designed to convert analog button signal from the OLED display into usable button states.

Public Types

enum Button

Values:

enumerator LEFT
enumerator RIGHT
enumerator UP
enumerator DOWN
enumerator OK
enumerator NONE

Public Functions

OledButtonHandler(tap::Drivers *drivers)
Button getCurrentButtonState()

Updates the status of the current button and returns the updated button.

Returns:

The current state of the button, which corresponds to a modm::MenuButton::Button state, or modm::MenuButtons::NONE if no button is pressed.