aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgblight.c
diff options
context:
space:
mode:
authorErez Zukerman <ezukerman@godaddy.com>2016-11-29 09:23:16 -0500
committerErez Zukerman <ezukerman@godaddy.com>2016-11-29 09:23:16 -0500
commit4094544d41450617bc21ab58646603b8964eae0e (patch)
tree68f0649a449fda9c65c3f1f0d9d1de0c5a43ff46 /quantum/rgblight.c
parent51ae6da99edd732ccdec6e102bd757e08950d23b (diff)
downloadqmk_firmware-4094544d41450617bc21ab58646603b8964eae0e.tar.gz
qmk_firmware-4094544d41450617bc21ab58646603b8964eae0e.zip
Test layout for ErgoDox EZ manufacturing robot
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r--quantum/rgblight.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index bb03d6e91..625971e0f 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -425,6 +425,12 @@ void rgblight_timer_toggle(void) {
425 dprintf("TIMER3 toggled.\n"); 425 dprintf("TIMER3 toggled.\n");
426} 426}
427 427
428void rgblight_show_solid_color(uint8_t r, uint8_t g, uint8_t b) {
429 rgblight_enable();
430 rgblight_mode(1);
431 rgblight_setrgb(r, g, b);
432}
433
428void rgblight_task(void) { 434void rgblight_task(void) {
429 if (rgblight_timer_enabled) { 435 if (rgblight_timer_enabled) {
430 // mode = 1, static light, do nothing here 436 // mode = 1, static light, do nothing here