summaryrefslogtreecommitdiff
path: root/keyboards/boardsource/the_mark
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-03-25 11:53:33 +0000
committerQMK Bot <hello@qmk.fm>2021-03-25 11:53:33 +0000
commitea1ed13bc8410afc8a9229b93f04ba0ca3e6762d (patch)
treee9324880620bf620ab71cc3dd1d8538123e36d6c /keyboards/boardsource/the_mark
parent6ad0b004fa19e3be0e3d1830407f9dfd02be8a67 (diff)
parentc4d05010cb4dad42740d67003bf66b67e10fe854 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/boardsource/the_mark')
-rw-r--r--keyboards/boardsource/the_mark/config.h1
-rw-r--r--keyboards/boardsource/the_mark/the_mark.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/boardsource/the_mark/config.h b/keyboards/boardsource/the_mark/config.h
index cb64c3a690..7af2c302fb 100644
--- a/keyboards/boardsource/the_mark/config.h
+++ b/keyboards/boardsource/the_mark/config.h
@@ -58,6 +58,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef RGB_MATRIX_ENABLE
#define DRIVER_LED_TOTAL 24 // Number of LEDs
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
+#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
#endif
/*
diff --git a/keyboards/boardsource/the_mark/the_mark.c b/keyboards/boardsource/the_mark/the_mark.c
index bb37974f6e..9bc1f5b461 100644
--- a/keyboards/boardsource/the_mark/the_mark.c
+++ b/keyboards/boardsource/the_mark/the_mark.c
@@ -35,4 +35,15 @@ led_config_t g_led_config = { {
LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL,
LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL
} };
+
+
+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