1
0
Fork 0

Test layout for ErgoDox EZ manufacturing robot

This commit is contained in:
Erez Zukerman 2016-11-29 09:23:16 -05:00
parent 51ae6da99e
commit 4094544d41
4 changed files with 143 additions and 0 deletions

View file

@ -425,6 +425,12 @@ void rgblight_timer_toggle(void) {
dprintf("TIMER3 toggled.\n");
}
void rgblight_show_solid_color(uint8_t r, uint8_t g, uint8_t b) {
rgblight_enable();
rgblight_mode(1);
rgblight_setrgb(r, g, b);
}
void rgblight_task(void) {
if (rgblight_timer_enabled) {
// mode = 1, static light, do nothing here