diff options
author | Drashna Jaelre <[email protected]> | 2021-07-24 12:17:04 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-24 20:17:04 +0100 |
commit | 0b95ac2e4b29a663258aee475a70a3200d113ac2 (patch) | |
tree | 192b0f8ccd6d48adccef5a774f9eb6578aef44cb /docs/feature_rgb_matrix.md | |
parent | ab42945c9a716d7fdcb2c50dd184761e105acc03 (diff) | |
download | qmk_firmware-0b95ac2e4b29a663258aee475a70a3200d113ac2.tar.gz qmk_firmware-0b95ac2e4b29a663258aee475a70a3200d113ac2.zip |
Clean up remaining RGB_DISABLE_WHEN_USB_SUSPENDED defines (#13689)
Diffstat (limited to 'docs/feature_rgb_matrix.md')
-rw-r--r-- | docs/feature_rgb_matrix.md | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md index f3e25f2f13..bd47fb6d39 100644 --- a/docs/feature_rgb_matrix.md +++ b/docs/feature_rgb_matrix.md @@ -741,30 +741,3 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { } } ``` - -### Suspended state :id=suspended-state -To use the suspend feature, make sure that `#define RGB_DISABLE_WHEN_USB_SUSPENDED true` is added to the `config.h` file. - -Additionally add this to your `<keyboard>.c`: - -```c -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(); -} -``` -or add this to your `keymap.c`: -```c -void suspend_power_down_user(void) { - rgb_matrix_set_suspend_state(true); -} - -void suspend_wakeup_init_user(void) { - rgb_matrix_set_suspend_state(false); -} -``` |