![]() |
MD_UISwitch Library
2.1
Library for different types of User Interface switches
|
Main header file and class definition for the MD_UISwitch library. More...
#include <Arduino.h>
Classes | |
class | MD_UISwitch |
class | MD_UISwitch_Digital |
class | MD_UISwitch_Analog |
struct | MD_UISwitch_Analog::uiAnalogKeys_t |
class | MD_UISwitch_Matrix |
class | MD_UISwitch_4017KM |
Macros | |
#define | ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) |
Variables | |
const uint16_t | KEY_PRESS_TIME = 150 |
Default key press time in milliseconds. | |
const uint16_t | KEY_DPRESS_TIME = 250 |
Default double press time between presses in milliseconds. | |
const uint16_t | KEY_LONGPRESS_TIME = 600 |
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_UISwitch library.