Enable RGB Matrix Sleep functionality

pull/6512/head
Drashna Jaelre 6 years ago committed by Florian Didron
parent d49944f1a2
commit 0ea9391236

@ -209,6 +209,17 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
#endif
#ifdef RGB_MATRIX_ENABLE
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();
}
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
/* driver
* | R location

@ -16,6 +16,17 @@
#include "ez.h"
#ifdef RGB_MATRIX_ENABLE
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();
}
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
/* Refer to IS31 manual for these locations
* driver

Loading…
Cancel
Save