summaryrefslogtreecommitdiff
path: root/keyboards/ergodox_ez
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-06-21 12:12:44 -0700
committerFlorian Didron <fdidron@users.noreply.github.com>2019-06-24 09:01:09 +0900
commit0ea9391236df152ed6b5d4548422125f7f0d06fb (patch)
tree892452430c4e3a131392fe29d5b74d0cec3269d7 /keyboards/ergodox_ez
parentd49944f1a2b936cef7429e31ceebab00e7260a02 (diff)
Enable RGB Matrix Sleep functionality
Diffstat (limited to 'keyboards/ergodox_ez')
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index 09443cf725..951278517a 100644
--- a/keyboards/ergodox_ez/ergodox_ez.c
+++ b/keyboards/ergodox_ez/ergodox_ez.c
@@ -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