diff --git a/src/Kaleidoscope-NumPad.cpp b/src/Kaleidoscope-NumPad.cpp index 16263e38..c9860238 100644 --- a/src/Kaleidoscope-NumPad.cpp +++ b/src/Kaleidoscope-NumPad.cpp @@ -8,6 +8,7 @@ uint8_t NumPad_::numPadLayer; bool NumPad_::cleanupDone = true; bool NumPad_::originalNumLockState = false; cRGB NumPad_::color = CRGB(160, 0, 0); +uint8_t NumPad_::lock_hue = 170; kaleidoscope::EventHandlerResult NumPad_::onSetup(void) { originalNumLockState = !!(kaleidoscope::hid::getKeyboardLEDs() & LED_NUM_LOCK); @@ -65,7 +66,7 @@ kaleidoscope::EventHandlerResult NumPad_::afterEachCycle() { if (row > ROWS || col > COLS) return kaleidoscope::EventHandlerResult::OK; - cRGB lock_color = breath_compute(); + cRGB lock_color = breath_compute(lock_hue); LEDControl.setCrgbAt(row, col, lock_color); return kaleidoscope::EventHandlerResult::OK; diff --git a/src/Kaleidoscope-NumPad.h b/src/Kaleidoscope-NumPad.h index d6b73eaf..aeb534b1 100644 --- a/src/Kaleidoscope-NumPad.h +++ b/src/Kaleidoscope-NumPad.h @@ -10,6 +10,7 @@ class NumPad_ : public kaleidoscope::Plugin { static uint8_t numPadLayer; static cRGB color; + static uint8_t lock_hue; kaleidoscope::EventHandlerResult onSetup(void); kaleidoscope::EventHandlerResult afterEachCycle();