|
|
|
@ -7,7 +7,7 @@ byte NumPad_::row = 255, NumPad_::col = 255;
|
|
|
|
|
uint8_t NumPad_::numPadLayer;
|
|
|
|
|
bool NumPad_::cleanupDone = true;
|
|
|
|
|
bool NumPad_::originalNumLockState = false;
|
|
|
|
|
cRGB numpad_color = CRGB(160, 0, 0);
|
|
|
|
|
cRGB NumPad_::color = CRGB(160, 0, 0);
|
|
|
|
|
|
|
|
|
|
kaleidoscope::EventHandlerResult NumPad_::onSetup(void) {
|
|
|
|
|
originalNumLockState = !!(kaleidoscope::hid::getKeyboardLEDs() & LED_NUM_LOCK);
|
|
|
|
@ -57,7 +57,7 @@ kaleidoscope::EventHandlerResult NumPad_::afterEachCycle() {
|
|
|
|
|
if ((k != layer_key) || (k == Key_NoKey) || (k.flags != KEY_FLAGS)) {
|
|
|
|
|
LEDControl.refreshAt(r, c);
|
|
|
|
|
} else {
|
|
|
|
|
LEDControl.setCrgbAt(r, c, numpad_color);
|
|
|
|
|
LEDControl.setCrgbAt(r, c, color);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -65,8 +65,8 @@ kaleidoscope::EventHandlerResult NumPad_::afterEachCycle() {
|
|
|
|
|
if (row > ROWS || col > COLS)
|
|
|
|
|
return kaleidoscope::EventHandlerResult::OK;
|
|
|
|
|
|
|
|
|
|
cRGB color = breath_compute();
|
|
|
|
|
LEDControl.setCrgbAt(row, col, color);
|
|
|
|
|
cRGB lock_color = breath_compute();
|
|
|
|
|
LEDControl.setCrgbAt(row, col, lock_color);
|
|
|
|
|
|
|
|
|
|
return kaleidoscope::EventHandlerResult::OK;
|
|
|
|
|
}
|
|
|
|
|