esp32-rotary-encoder
ESP32-compatible C library for Incremental Rotary Encoders.
|
Struct represents the current state of the device in terms of incremental position and direction of last movement. More...
#include <rotary_encoder.h>
Data Fields | |
rotary_encoder_position_t | position |
Numerical position since reset. This value increments on clockwise rotation, and decrements on counter-clockewise rotation. Counts full or half steps depending on mode. Set to zero on reset. | |
rotary_encoder_direction_t | direction |
Direction of last movement. Set to NOT_SET on reset. | |
Struct represents the current state of the device in terms of incremental position and direction of last movement.