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