diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-11-29 11:22:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 11:22:31 -0500 |
commit | 81ea909467c8a5bfbd803c58e685c5de74dbc249 (patch) | |
tree | 68f0649a449fda9c65c3f1f0d9d1de0c5a43ff46 /quantum/rgblight.h | |
parent | 51ae6da99edd732ccdec6e102bd757e08950d23b (diff) | |
parent | 4094544d41450617bc21ab58646603b8964eae0e (diff) |
Merge pull request #919 from jackhumbert/hf/robot_test_layout
Test layout for ErgoDox EZ manufacturing robot
Diffstat (limited to 'quantum/rgblight.h')
-rw-r--r-- | quantum/rgblight.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index 28a410e480..aa1d026e0e 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h @@ -84,6 +84,8 @@ void sethsv(uint16_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1); void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1); void rgblight_sethsv_noeeprom(uint16_t hue, uint8_t sat, uint8_t val); +#define EZ_RGB(val) rgblight_show_solid_color((val >> 16) & 0xFF, (val >> 8) & 0xFF, val & 0xFF) +void rgblight_show_solid_color(uint8_t r, uint8_t g, uint8_t b); void rgblight_task(void); |