diff options
| author | yiancar <yiangosyiangou@cytanet.com.cy> | 2018-05-09 04:23:21 +0100 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-05-08 23:23:21 -0400 |
| commit | afacd42368e0dc7627a695508f15598b38429c63 (patch) | |
| tree | 8228c3f9974282e0f8f506bcce5489616ce3e684 /quantum/rgblight.h | |
| parent | 23df5fb89a05ead778b25fe1e586e47df6209c6d (diff) | |
| download | qmk_firmware-afacd42368e0dc7627a695508f15598b38429c63.tar.gz qmk_firmware-afacd42368e0dc7627a695508f15598b38429c63.zip | |
Add effect speed support for RGB Matrix *No EEPROM yet* (#2922)
* Added Modular keyboards L,R and NUM
Created code modules for the 3 modules of the modular keyboard.
Original idea by MechboardsUK. Uses i2c implementation similar to lets
split
* Remove modular from master
This is to fix incorrect branching
* Add effect speed support for RGB Matrix *No eeprom yet*
Keycodes RGB_SPI and RGB_SPD have been added to increase and decrease effect speed.
Speed is not saved in EEPROM yet as per Jack's request.
* Update rgb_matrix.c
* RGB Matrix speed fix rgblight.h
* More fixes for rgb speed. Speed functions declared but not used in rgblight
* More travis fixes..
* Another one for travis..
Diffstat (limited to 'quantum/rgblight.h')
| -rw-r--r-- | quantum/rgblight.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index 8c33f1a8f..a6593af98 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -92,6 +92,7 @@ typedef union { | |||
| 92 | uint16_t hue :9; | 92 | uint16_t hue :9; |
| 93 | uint8_t sat :8; | 93 | uint8_t sat :8; |
| 94 | uint8_t val :8; | 94 | uint8_t val :8; |
| 95 | uint8_t speed :8;//EECONFIG needs to be increased to support this | ||
| 95 | }; | 96 | }; |
| 96 | } rgblight_config_t; | 97 | } rgblight_config_t; |
| 97 | 98 | ||
| @@ -113,6 +114,8 @@ void rgblight_increase_sat(void); | |||
| 113 | void rgblight_decrease_sat(void); | 114 | void rgblight_decrease_sat(void); |
| 114 | void rgblight_increase_val(void); | 115 | void rgblight_increase_val(void); |
| 115 | void rgblight_decrease_val(void); | 116 | void rgblight_decrease_val(void); |
| 117 | void rgblight_increase_speed(void); | ||
| 118 | void rgblight_decrease_speed(void); | ||
| 116 | void rgblight_sethsv(uint16_t hue, uint8_t sat, uint8_t val); | 119 | void rgblight_sethsv(uint16_t hue, uint8_t sat, uint8_t val); |
| 117 | uint16_t rgblight_get_hue(void); | 120 | uint16_t rgblight_get_hue(void); |
| 118 | uint8_t rgblight_get_sat(void); | 121 | uint8_t rgblight_get_sat(void); |
| @@ -126,6 +129,9 @@ void eeconfig_update_rgblight(uint32_t val); | |||
| 126 | void eeconfig_update_rgblight_default(void); | 129 | void eeconfig_update_rgblight_default(void); |
| 127 | void eeconfig_debug_rgblight(void); | 130 | void eeconfig_debug_rgblight(void); |
| 128 | 131 | ||
| 132 | void rgb_matrix_increase(void); | ||
| 133 | void rgb_matrix_decrease(void); | ||
| 134 | |||
| 129 | void sethsv(uint16_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1); | 135 | void sethsv(uint16_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1); |
| 130 | void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1); | 136 | void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1); |
| 131 | void rgblight_sethsv_noeeprom(uint16_t hue, uint8_t sat, uint8_t val); | 137 | void rgblight_sethsv_noeeprom(uint16_t hue, uint8_t sat, uint8_t val); |
