diff options
author | Drashna Jaelre <drashna@live.com> | 2019-06-24 09:42:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 09:42:56 -0700 |
commit | 0a2894fc995572e90b3b06e1de51f13503daf9ca (patch) | |
tree | c3cca3bc745230b090367e4da4288e83f6c4bca2 /keyboards/planck/ez | |
parent | 80a40807e36d89e722e9b80830d216ac3d41dfcb (diff) | |
download | firmware-0a2894fc995572e90b3b06e1de51f13503daf9ca.tar.gz firmware-0a2894fc995572e90b3b06e1de51f13503daf9ca.tar.bz2 firmware-0a2894fc995572e90b3b06e1de51f13503daf9ca.zip |
[Keyboard] Fixup RGB Matrix functionality on Planck EZ (#6099)
* [Keyboard] Allow RGB Matrix to be disabled on Planck EZ that don't have LEDs
* Add function calls to enabled/disable rgb matrix on idle/wakeup
Diffstat (limited to 'keyboards/planck/ez')
-rw-r--r-- | keyboards/planck/ez/ez.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c index 3ad694c4a..e739b90b8 100644 --- a/keyboards/planck/ez/ez.c +++ b/keyboards/planck/ez/ez.c @@ -15,6 +15,7 @@ */ #include "ez.h" +#ifdef RGB_MATRIX_ENABLE const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { /* Refer to IS31 manual for these locations * driver @@ -100,6 +101,16 @@ led_config_t g_led_config = { { 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1 } }; +void suspend_power_down_kb(void) { + rgb_matrix_set_suspend_state(true); + suspend_power_down_user(); +} + + void suspend_wakeup_init_kb(void) { + rgb_matrix_set_suspend_state(false); + suspend_wakeup_init_user(); +} +#endif void matrix_init_kb(void) { matrix_init_user(); |