summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-11-18 22:22:29 -0500
committerJack Humbert <jack.humb@gmail.com>2016-11-18 22:22:29 -0500
commitab6557c1a04b7f6a1d262d07f9b42e7e28d8028a (patch)
treed4747efac27d00a4f3d64a6fb970d8eb36882333 /quantum
parent161bd5596b5d8199f2e56246a27ccbdb8c80bb36 (diff)
parent285c5a91f23e972d9c579184283443111186329d (diff)
wqMerge branch 'wu5y7' of https://github.com/jackhumbert/qmk_firmware into wu5y7
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);