![]() |
MD_KeySwitch Library
1.4
Library for user keyswitch on digital input
|
Main header file and class definition for the MD_LibTemplate library. More...
#include <Arduino.h>

Classes | |
| class | MD_KeySwitch |
Variables | |
| const uint16_t | KEY_DEBOUNCE_TIME = 50 |
| Default key debounce time in milliseconds. | |
| const uint16_t | KEY_DPRESS_TIME = 250 |
| Default double press time between presses in milliseconds. | |
| const uint16_t | KEY_LONGPRESS_TIME = 350 |
| Default long press detection time in milliseconds. | |
| const uint16_t | KEY_REPEAT_TIME = 300 |
| Default time between repeats in in milliseconds. | |
| const uint8_t | KEY_ACTIVE_STATE = LOW |
| Default key is active low - transition high to low detection. | |
| const uint8_t | REPEAT_RESULT_ENABLE = 3 |
| Internal status bit to return KS_REPEAT instead of KS_PRESS. | |
| const uint8_t | DPRESS_ENABLE = 2 |
| Internal status bit to enable double press. | |
| const uint8_t | LONGPRESS_ENABLE = 1 |
| Internal status bit to enable long press. | |
| const uint8_t | REPEAT_ENABLE = 0 |
| Internal status bit to enable repeat key. | |
Main header file and class definition for the MD_LibTemplate library.