Dim the numpad color down from 255 to 160.

Having it at the brightest uses too much power, and may result in power use
surges when switching between LED modes and NumPad, which in turn can force the
operating system to disable the whole device. To avoid this, lower the
brightness to 160, a carefull tuned value, also used by the `solidRed` mode in
the factory firmware.

Fixes #9.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/365/head
Gergely Nagy 7 years ago
parent 2bdc07b7bd
commit 6190f55c57

@ -7,7 +7,7 @@ byte NumPad_::row = 255, NumPad_::col = 255;
uint8_t NumPad_::numPadLayer; uint8_t NumPad_::numPadLayer;
bool NumPad_::cleanupDone = true; bool NumPad_::cleanupDone = true;
bool NumPad_::originalNumLockState = false; bool NumPad_::originalNumLockState = false;
cRGB numpad_color = CRGB(255, 0, 0); cRGB numpad_color = CRGB(160, 0, 0);
kaleidoscope::EventHandlerResult NumPad_::onSetup(void) { kaleidoscope::EventHandlerResult NumPad_::onSetup(void) {
originalNumLockState = !!(kaleidoscope::hid::getKeyboardLEDs() & LED_NUM_LOCK); originalNumLockState = !!(kaleidoscope::hid::getKeyboardLEDs() & LED_NUM_LOCK);

Loading…
Cancel
Save