Sfoglia il codice sorgente

[Keyboard] Add idle/wakeup function calls to Ergodox EZ (#6173)

Drashna Jaelre 6 anni fa
parent
commit
80a40807e3
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 10 0
      keyboards/ergodox_ez/ergodox_ez.c

+ 10 - 0
keyboards/ergodox_ez/ergodox_ez.c

@@ -304,4 +304,14 @@ led_config_t g_led_config = { {
     4, 4, 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