diff options
| author | kamisamamizu <pacouniversitario69@gmail.com> | 2017-12-17 17:44:13 +0100 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-12-17 11:44:13 -0500 |
| commit | 12e66330c5fad6dccc1e7be34f68f2db200b9f6e (patch) | |
| tree | 4d8856f6e48b699ac8bef1c401d997fb884f7328 /quantum/rgblight.h | |
| parent | d91c9858c56d23c3197ced87c113b011562cdf8e (diff) | |
| download | qmk_firmware-12e66330c5fad6dccc1e7be34f68f2db200b9f6e.tar.gz qmk_firmware-12e66330c5fad6dccc1e7be34f68f2db200b9f6e.zip | |
Add COSPAD to QMK and add functions to read HSV (#2156)
* Added functions to read HSV values
I have added three functions to rgb_light.c to be able to read the hue, saturation and value from other places.
They are rgblight_get_hue(), rgblight_get_sat(), adn rgblight_get_val().
* Create keymap.c
* Add COSPAD support to QMK
I have ported the COSPAD numpad to qmk.
* Update readme.md
* Update cospad.c
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 6d362e1d5..73dd89946 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -113,6 +113,9 @@ void rgblight_decrease_sat(void); | |||
| 113 | void rgblight_increase_val(void); | 113 | void rgblight_increase_val(void); |
| 114 | void rgblight_decrease_val(void); | 114 | void rgblight_decrease_val(void); |
| 115 | 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); |
| 116 | uint16_t rgblight_get_hue(void); | ||
| 117 | uint8_t rgblight_get_sat(void); | ||
| 118 | uint8_t rgblight_get_val(void); | ||
| 116 | void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b); | 119 | 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); | 120 | 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); | 121 | void rgblight_sethsv_at(uint16_t hue, uint8_t sat, uint8_t val, uint8_t index); |
