|
enum | Direction { DIRECTION_UNCHANGED
, DIRECTION_INCREMENT
, DIRECTION_DECREMENT
} |
| Enum constants for encoder rotation increment/decrement state.
|
|
enum | PressType { PRESS_NONE
, PRESS_SHORT
, PRESS_LONG
} |
| Enum for type of switch press.
|
|
◆ LongPressed()
bool modulove::Encoder::LongPressed |
( |
| ) |
|
|
inline |
- Returns
- Return true if the button has been held down for (n) milliseconds.
◆ Pressed()
- Returns
- Return the press type if the switch was released this loop.
◆ Rotate()
Get the rotary direction if it has turned.
- Returns
- Direction of turn or unchanged.
◆ ShortPressed()
bool modulove::Encoder::ShortPressed |
( |
| ) |
|
|
inline |
- Returns
- Return true if the button has been held down for less than (n) milliseconds.
The documentation for this class was generated from the following file: