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

Data Structures

class  RotaryEncoderSensor
 
struct  RotaryEncoderSensorStore
 
class  RotaryEncoderSetValueAction
 

Enumerations

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 12 of file rotary_encoder.h.