MD_KeySwitch Library  1.4
Library for user keyswitch on digital input
MD_KeySwitch.h File Reference

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

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

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.
 

Detailed Description

Main header file and class definition for the MD_LibTemplate library.