MD_UISwitch Library  2.0
Library for different types of User Interface switches
MD_UISwitch.h File Reference

Main header file and class definition for the MD_UISwitch library. More...

#include <Arduino.h>
Include dependency graph for MD_UISwitch.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Main header file and class definition for the MD_UISwitch library.