From afacd42368e0dc7627a695508f15598b38429c63 Mon Sep 17 00:00:00 2001 From: yiancar Date: Wed, 9 May 2018 04:23:21 +0100 Subject: 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.. --- quantum/quantum.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'quantum/quantum.c') 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) { rgblight_decrease_val(); } return false; + case RGB_SPI: + if (record->event.pressed) { + rgblight_increase_speed(); + } + return false; + case RGB_SPD: + if (record->event.pressed) { + rgblight_decrease_speed(); + } + return false; case RGB_MODE_PLAIN: if (record->event.pressed) { rgblight_mode(1); -- cgit v1.2.3-24-g4f1b