ESPHome  2024.11.0
Data Structures | Enumerations
esphome::rotary_encoder Namespace Reference

Data Structures

class  RotaryEncoderAnticlockwiseTrigger
 
class  RotaryEncoderClockwiseTrigger
 
class  RotaryEncoderSensor
 
struct  RotaryEncoderSensorStore
 
class  RotaryEncoderSetValueAction
 

Enumerations

enum  RotaryEncoderRestoreMode { ROTARY_ENCODER_RESTORE_DEFAULT_ZERO, ROTARY_ENCODER_ALWAYS_ZERO }
 All possible restore modes for the rotary encoder. More...
 
enum  RotaryEncoderResolution { ROTARY_ENCODER_1_PULSE_PER_CYCLE, ROTARY_ENCODER_2_PULSES_PER_CYCLE = 0x2200, ROTARY_ENCODER_4_PULSES_PER_CYCLE = 0x1100 }
 All possible resolutions for the rotary encoder. More...
 

Enumeration Type Documentation

◆ RotaryEncoderResolution

All possible resolutions for the rotary encoder.

Enumerator
ROTARY_ENCODER_1_PULSE_PER_CYCLE 
ROTARY_ENCODER_2_PULSES_PER_CYCLE 

increment counter by 1 with every A-B cycle, slow response but accurate

ROTARY_ENCODER_4_PULSES_PER_CYCLE 

increment counter by 2 with every A-B cycle

Definition at line 20 of file rotary_encoder.h.

◆ RotaryEncoderRestoreMode

All possible restore modes for the rotary encoder.

Enumerator
ROTARY_ENCODER_RESTORE_DEFAULT_ZERO 
ROTARY_ENCODER_ALWAYS_ZERO 

try to restore counter, otherwise set to zero

Definition at line 14 of file rotary_encoder.h.