]> git.donarmstrong.com Git - qmk_firmware.git/commit
Backlight - New option : BACKLIGHT_CAPS_LOCK (#4769)
authorRockman18 <rockman18.spam@gmail.com>
Tue, 29 Jan 2019 00:57:56 +0000 (01:57 +0100)
committerDrashna Jaelre <drashna@live.com>
Tue, 29 Jan 2019 00:57:56 +0000 (16:57 -0800)
commitdf251d7a1387390383f12b3ff31d71d7e3de5a42
tree8b0a5ca2fae4e8567ec857090d42925e3f347010
parent0f507f01696eae0e8fe808d17a19db3f6d9e2ce4
Backlight - New option : BACKLIGHT_CAPS_LOCK (#4769)

* [BACKLIGHT_CAPS_LOCK_INDICATOR] Use backlight toggling as Caps Lock LED

I've implemented this feature because S65-X doesn't have LED indicators
and the existing led_set_kb(usb_led) function try to use backlight as
indicator but that creates an inconsistency with backlight_config state.

- define `BACKLIGHT_CAPS_LOCK_INDICATOR` to enable Caps Lock indicator
  using backlight (for keyboards without dedicated LED)

- Don't turn off LED indicators when suspend because backlight is
  already turned off. Else led_set(0) will turn back on backlight.

- Documentation has been updated

* [BACKLIGHT_CAPS_LOCK_INDICATOR] Turn off all LED indicators except Caps Lock if BACKLIGHT_CAPS_LOCK_INDICATOR

* [BACKLIGHT_CAPS_LOCK] Rename BACKLIGHT_CAPS_LOCK_INDICATOR

* [BACKLIGHT_CAPS_LOCK] Use new IS_LED_ON method
docs/feature_backlight.md
quantum/quantum.c
tmk_core/common/avr/suspend.c