aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/rgblight.c
diff options
context:
space:
mode:
authorGravatar Erez Zukerman <ezukerman@godaddy.com>2016-11-17 20:56:36 -0500
committerGravatar Erez Zukerman <ezukerman@godaddy.com>2016-11-17 20:56:36 -0500
commit285c5a91f23e972d9c579184283443111186329d (patch)
tree2504fc860b8d2018cd129a1573074ad2c78cff3d /quantum/rgblight.c
parent9bbc9a7ce024edb4d80ce65d43c82456e3714928 (diff)
downloadqmk_firmware-285c5a91f23e972d9c579184283443111186329d.tar.gz
Groundwork for dedicated color keycodes
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r--quantum/rgblight.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 6b58f6654..00620da58 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -253,6 +253,13 @@ void rgblight_toggle(void) {
}
}
+void rgblight_enable(void) {
+ rgblight_config.enable = 1;
+ eeconfig_update_rgblight(rgblight_config.raw);
+ xprintf("rgblight enable: rgblight_config.enable = %u\n", rgblight_config.enable);
+ rgblight_mode(rgblight_config.mode);
+}
+
void rgblight_increase_hue(void) {
uint16_t hue;