8#include <AH/Hardware/Hardware-Types.hpp>
22template <
class Derived, u
int8_t NumRows, u
int8_t NumCols>
57 bool getPrevState(uint8_t col, uint8_t row);
62 this->debounceTime = debounceTime;
82 static inline uint8_t positionToBits(uint8_t col, uint8_t row);
83 static inline uint8_t bitsToIndex(uint8_t bits);
84 static inline uint8_t bitsToBitmask(uint8_t bits);
85 void setPrevState(uint8_t col, uint8_t row,
bool state);
88 unsigned long prevRefresh = 0;
89 uint8_t prevStates[(NumCols * NumRows + 7) / 8];
#define BEGIN_AH_NAMESPACE
#define AH_DIAGNOSTIC_POP()
#define AH_DIAGNOSTIC_WERROR()
constexpr unsigned long BUTTON_DEBOUNCE_TIME
The debounce time for momentary push buttons in milliseconds.
An array wrapper for easy copying, comparing, and iterating.