diff options
| author | Colin T.A. Gray <colinta@gmail.com> | 2017-12-05 11:56:15 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-12-08 16:10:42 -0500 |
| commit | 16546ee06fa71bd9b9e9d3fda7c8816675e12185 (patch) | |
| tree | 0fb62a810727a5c0745f94573715b6c027f577a3 /quantum/rgblight.h | |
| parent | 1620d78e73f8e01ed1d48255c655d9eb6cc1b135 (diff) | |
| download | qmk_firmware-16546ee06fa71bd9b9e9d3fda7c8816675e12185.tar.gz qmk_firmware-16546ee06fa71bd9b9e9d3fda7c8816675e12185.zip | |
Add 'rgblight_disable' and 'rgblight_setrgb_at/rgblight_sethsv_at'
Refactors rgblight_toggle to use rgblight_enable or rgblight_disable
Use 'rgblight_setrgb_at/rgblight_sethsv_at' to control an individual LED
Diffstat (limited to 'quantum/rgblight.h')
| -rw-r--r-- | quantum/rgblight.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index fb79ce6de..6d362e1d5 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -99,6 +99,7 @@ void rgblight_increase(void); | |||
| 99 | void rgblight_decrease(void); | 99 | void rgblight_decrease(void); |
| 100 | void rgblight_toggle(void); | 100 | void rgblight_toggle(void); |
| 101 | void rgblight_enable(void); | 101 | void rgblight_enable(void); |
| 102 | void rgblight_disable(void); | ||
| 102 | void rgblight_step(void); | 103 | void rgblight_step(void); |
| 103 | void rgblight_step_reverse(void); | 104 | void rgblight_step_reverse(void); |
| 104 | uint32_t rgblight_get_mode(void); | 105 | uint32_t rgblight_get_mode(void); |
| @@ -113,6 +114,8 @@ void rgblight_increase_val(void); | |||
| 113 | void rgblight_decrease_val(void); | 114 | void rgblight_decrease_val(void); |
| 114 | void rgblight_sethsv(uint16_t hue, uint8_t sat, uint8_t val); | 115 | void rgblight_sethsv(uint16_t hue, uint8_t sat, uint8_t val); |
| 115 | void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b); | 116 | void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b); |
| 117 | void rgblight_setrgb_at(uint8_t r, uint8_t g, uint8_t b, uint8_t index); | ||
| 118 | void rgblight_sethsv_at(uint16_t hue, uint8_t sat, uint8_t val, uint8_t index); | ||
| 116 | 119 | ||
| 117 | uint32_t eeconfig_read_rgblight(void); | 120 | uint32_t eeconfig_read_rgblight(void); |
| 118 | void eeconfig_update_rgblight(uint32_t val); | 121 | void eeconfig_update_rgblight(uint32_t val); |
