SimpleRotaryAdapter
Defines
-
class SimpleRotaryAdapter : public InputInterface
- #include <SimpleRotaryAdapter.h>
Adapter for handling rotary input for an LCD menu.
This class interfaces with a rotary encoder to manage user input for navigating and selecting options in an LCD menu.
It processes rotary encoder rotations to navigate through menu options and handles button presses for various actions, including:
Short press for selecting an option
Long press for going back
Double press for backspacing
The values for long press duration (defined as LONG_PRESS_DURATION) and double press threshold (defined as DOUBLE_PRESS_THRESHOLD) can be overwritten by defining new ones with #define.
- Param menu:
Pointer to the LcdMenu instance that this adapter will control.
- Param encoder:
Pointer to the SimpleRotary instance representing the rotary encoder.
Public Functions
-
inline SimpleRotaryAdapter(LcdMenu *menu, SimpleRotary *encoder)