summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorErez Zukerman <ezukerman@godaddy.com>2016-11-17 20:56:36 -0500
committerErez Zukerman <ezukerman@godaddy.com>2016-11-17 20:56:36 -0500
commit285c5a91f23e972d9c579184283443111186329d (patch)
tree2504fc860b8d2018cd129a1573074ad2c78cff3d /quantum
parent9bbc9a7ce024edb4d80ce65d43c82456e3714928 (diff)
Groundwork for dedicated color keycodes
Diffstat (limited to 'quantum')
-rw-r--r--quantum/rgblight.c7
-rw-r--r--quantum/rgblight.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 6b58f66547..00620da58e 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;
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index 330c2fe1ba..a3673348e7 100644
--- a/quantum/rgblight.h
+++ b/quantum/rgblight.h
@@ -61,6 +61,7 @@ void rgblight_init(void);
void rgblight_increase(void);
void rgblight_decrease(void);
void rgblight_toggle(void);
+void rgblight_enable(void);
void rgblight_step(void);
void rgblight_mode(uint8_t mode);
void rgblight_set(void);