#include <SwitchInput.h>
Public Member Functions | |
| KeyboardItem (pinid_t pin, KeyCallbackFn callback, uint8_t repeatInterval=NO_REPEAT, bool keyLogicIsInverted=false) | |
| KeyboardItem (pinid_t pin, SwitchListener *switchListener, uint8_t repeatInterval=NO_REPEAT, bool keyLogicIsInverted=false) | |
| KeyboardItem (const KeyboardItem &other) | |
| KeyboardItem & | operator= (const KeyboardItem &other) |
| void | checkAndTrigger (uint8_t pin) |
| void | onRelease (KeyCallbackFn callbackOnRelease) |
| bool | isDebouncing () const |
| bool | isPressed () const |
| bool | isHeld () const |
| pinid_t | getPin () const |
| pinid_t | getKey () const |
| void | trigger (bool held) |
| void | triggerRelease (bool held) |
| KeyPressState | getState () const |
| void | setState (KeyPressState state) |
| bool | isUsingListener () |
| bool | isLogicInverted () |
| void | changeOnPressed (KeyCallbackFn pFunction) |
| void | changeListener (SwitchListener *listener) |
An internal class that represents the state of a single key being managed by switches.