|
|
|
@ -111,6 +111,18 @@ void Heatmap::shiftStats(void) {
|
|
|
|
|
highest_ = highest_ >> 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Heatmap::resetMap(void) {
|
|
|
|
|
// this method can be used as a way to work around an existing bug with a single key
|
|
|
|
|
// getting special attention or if the user just wants a button to reset the map
|
|
|
|
|
for (uint8_t r = 0; r < ROWS; r++) {
|
|
|
|
|
for (uint8_t c = 0; c < COLS; c++) {
|
|
|
|
|
heatmap_[r][c] = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
highest_ = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Heatmap::setup(void) {
|
|
|
|
|
Kaleidoscope.useEventHandlerHook(eventHook);
|
|
|
|
|
Kaleidoscope.useLoopHook(loopHook);
|
|
|
|
|