#include <Def/Def.hpp>
A struct for the pins of a rotary (quadrature) encoder with a switch.
Public Member Functions | |
EncoderSwitchPinList (uint8_t A, uint8_t B, pin_t switchPin) | |
Constructor for encoders with a switch. More... | |
EncoderSwitchPinList (uint8_t A, uint8_t B) | |
Constructor for encoders without a switch. More... | |
Public Attributes | |
uint8_t | A |
The pin connected to the A pin of the encoder. More... | |
uint8_t | B |
The pin connected to the B pin of the encoder. More... | |
pin_t | switchPin |
The pin connected to the switch pin of the encoder. More... | |
|
inline |
|
inline |
pin_t switchPin |