Rotary encoder handler.
RotaryEncoder Class Reference
Rotary encoder handling class. More...
#include <RotaryEncoder.h>
Public Member Functions | |
| int8_t | getDirection () const |
| Retrieve rotation direction. | |
| bool | getPushButton () const |
| Retrieve push button status. | |
| void | pulse () |
| Launched by Ticker to determine rotation direction. | |
Detailed Description
Rotary encoder handling class.
Starts a ticker which checks the status of the encoder and sets the rotation directions based on its status.
Definition at line 11 of file RotaryEncoder.h.
Member Function Documentation
| int8_t getDirection | ( | ) | const |
| bool getPushButton | ( | ) | const |
Retrieve push button status.
Definition at line 28 of file RotaryEncoder.cpp.
| void pulse | ( | ) |
Launched by Ticker to determine rotation direction.
Private methods.
Definition at line 35 of file RotaryEncoder.cpp.
Generated on Wed Jul 13 2022 16:05:08 by
1.7.2