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/quantum.c | |
| 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/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index e1bc8b242..f9b3e2197 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -368,6 +368,16 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 368 | rgblight_decrease_val(); | 368 | rgblight_decrease_val(); |
| 369 | } | 369 | } |
| 370 | return false; | 370 | return false; |
| 371 | case RGB_SPI: | ||
| 372 | if (record->event.pressed) { | ||
| 373 | rgblight_increase_speed(); | ||
| 374 | } | ||
| 375 | return false; | ||
| 376 | case RGB_SPD: | ||
| 377 | if (record->event.pressed) { | ||
| 378 | rgblight_decrease_speed(); | ||
| 379 | } | ||
| 380 | return false; | ||
| 371 | case RGB_MODE_PLAIN: | 381 | case RGB_MODE_PLAIN: |
| 372 | if (record->event.pressed) { | 382 | if (record->event.pressed) { |
| 373 | rgblight_mode(1); | 383 | rgblight_mode(1); |
