1#ifndef Bounce2PinAdapter_h
2#define Bounce2PinAdapter_h
4#include "DebounceAdapter.h"
19 , bounce(
new Bounce())
24 delayMicroseconds(2000);
25 bounce->attach(buttonPin, INPUT_PULLUP);
30 return bounce->read();
A PinAdapter for the Bounce2 library. Note: this is not a DebounceAdapter as Bounce2 can only read th...
Definition: Bounce2PinAdapter.h:13
void begin()
Initialise the pin adapter. Must be safe for repeated calls (Idempotent)
Definition: Bounce2PinAdapter.h:23
bool read()
Read the current state of the pin.
Definition: Bounce2PinAdapter.h:28
The interface specification for button, encoder button and switch pins.
Definition: PinAdapter.h:8