27 template<
int PIN, u
int16_t DEBOUNCE = 50>
48 if (millis() -
m_timestamp < DEBOUNCE)
return (
false);
52 uint16_t value = analogRead(PIN);
54 if (
m_map == NULL)
return (
false);
55 while (value < (uint16_t) pgm_read_word(&
m_map[key])) key++;
56 if (key ==
m_key)
return (
false);
66 __attribute__((always_inline))
76 __attribute__((always_inline))
Keypad(const uint16_t *map=NULL)