InputEvents
v1.4.0
An easy to use but comprehensive Event Library for Buttons, Encoders, Encoder Buttons, Analog Inputs, Joysticks and Switches.
src
PinAdapter
PinAdapter.h
1
#ifndef PinAdapter_h
2
#define PinAdapter_h
3
8
class
PinAdapter
{
9
public
:
14
virtual
void
begin
() = 0;
21
virtual
bool
read
() = 0;
22
23
virtual
~PinAdapter
() =
default
;
24
};
25
26
#endif
PinAdapter
The interface specification for button, encoder button and switch pins.
Definition:
PinAdapter.h:8
PinAdapter::read
virtual bool read()=0
Read the current state of the pin.
PinAdapter::begin
virtual void begin()=0
Initialise the pin adapter. Must be safe for repeated calls (Idempotent)
Generated by
1.9.4