esp32-rotary-encoder
ESP32-compatible C library for Incremental Rotary Encoders.
 All Data Structures Files Functions Variables Enumerations Enumerator
Data Fields
rotary_encoder_state_t Struct Reference

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.
 

Detailed Description

Struct represents the current state of the device in terms of incremental position and direction of last movement.


The documentation for this struct was generated from the following file: