55 void reset(
int position = 0);
70 bool validEdge(
bool a);
71 unsigned int debouncing_;
72 unsigned int debounce_;
Polarity
Definition: Encoder.h:27
Rotation process(bool a, bool b)
Definition: Encoder.cpp:27
Trigger on negative edges.
Definition: Encoder.h:30
Connect a quadrature rotary encoder.
Definition: Encoder.h:15
Encoder(unsigned int debounce, Polarity polarity=ANY)
Definition: Encoder.h:38
Trigger on any edge.
Definition: Encoder.h:28
The encoder rotate clockwise.
Definition: Encoder.h:21
The encoder did not rotate.
Definition: Encoder.h:20
The encoder rotated counter-clockwise.
Definition: Encoder.h:19
void setup(unsigned int debounce, Polarity polarity=ANY)
Definition: Encoder.cpp:4
void reset(int position=0)
Definition: Encoder.cpp:13
Rotation
Definition: Encoder.h:18
Trigger on negative edges.
Definition: Encoder.h:29