![]() |
InputEvents v1.5.2
An easy to use but comprehensive Event Library for Buttons, Encoders, Encoder Buttons, Analog Inputs, Joysticks and Switches.
|
The interface specification for button, encoder button and switch pins.
#include <PinAdapter.h>

Public Member Functions | |
| virtual void | begin ()=0 |
| Initialise the pin adapter. Must be safe for repeated calls (Idempotent) More... | |
| virtual bool | read ()=0 |
| Read the current state of the pin. More... | |
|
pure virtual |
Initialise the pin adapter. Must be safe for repeated calls (Idempotent)
Implemented in Bounce2PinAdapter, DebounceAdapter, FoltmanDebounceAdapter, GpioPinAdapter, PinMixerAdapter, VirtualPinAdapter, and ExpanderPinAdapter.
|
pure virtual |
Read the current state of the pin.
Implemented in Bounce2PinAdapter, GpioPinAdapter, PinMixerAdapter, VirtualPinAdapter, ExpanderPinAdapter, FoltmanDebounceAdapter, and DebounceAdapter.