diff options
author | Drashna Jaelre <drashna@live.com> | 2021-07-24 12:17:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 20:17:04 +0100 |
commit | 0b95ac2e4b29a663258aee475a70a3200d113ac2 (patch) | |
tree | 192b0f8ccd6d48adccef5a774f9eb6578aef44cb | |
parent | ab42945c9a716d7fdcb2c50dd184761e105acc03 (diff) | |
download | qmk_firmware-0b95ac2e4b29a663258aee475a70a3200d113ac2.tar.gz qmk_firmware-0b95ac2e4b29a663258aee475a70a3200d113ac2.zip |
Clean up remaining RGB_DISABLE_WHEN_USB_SUSPENDED defines (#13689)
-rw-r--r-- | docs/feature_led_matrix.md | 29 | ||||
-rw-r--r-- | docs/feature_rgb_matrix.md | 27 | ||||
-rw-r--r-- | keyboards/bastardkb/scylla/config.h | 4 | ||||
-rw-r--r-- | keyboards/bastardkb/tbkmini/config.h | 4 | ||||
-rw-r--r-- | keyboards/boardsource/the_mark/config.h | 8 | ||||
-rw-r--r-- | keyboards/crkbd/keymaps/davidrambo/config.h | 4 | ||||
-rw-r--r-- | keyboards/durgod/dgk6x/config.h | 18 | ||||
-rw-r--r-- | keyboards/dztech/dz60rgb/v2_1/config.h | 4 | ||||
-rwxr-xr-x | keyboards/dztech/dz65rgb/v3/config.h | 24 | ||||
-rw-r--r-- | keyboards/handwired/tractyl_manuform/4x6_right/config.h | 2 | ||||
-rw-r--r-- | keyboards/latin6rgb/config.h | 30 | ||||
-rw-r--r-- | keyboards/planck/rev6/config.h | 4 | ||||
-rw-r--r-- | keyboards/rgbkb/mun/config.h | 2 | ||||
-rw-r--r-- | keyboards/rgbkb/mun/keymaps/default/config.h | 4 | ||||
-rw-r--r-- | keyboards/rgbkb/mun/keymaps/xulkal2/config.h | 4 | ||||
-rw-r--r-- | keyboards/sawnsprojects/satxri6key/config.h | 4 | ||||
-rw-r--r-- | keyboards/xbows/knight/config.h | 5 | ||||
-rw-r--r-- | keyboards/xbows/knight_plus/config.h | 5 | ||||
-rw-r--r-- | keyboards/xbows/numpad/config.h | 5 | ||||
-rw-r--r-- | keyboards/xelus/pachi/rgb/config.h | 2 |
20 files changed, 64 insertions, 125 deletions
diff --git a/docs/feature_led_matrix.md b/docs/feature_led_matrix.md index 5134ab6ef..018da43dd 100644 --- a/docs/feature_led_matrix.md +++ b/docs/feature_led_matrix.md | |||
@@ -262,7 +262,7 @@ For inspiration and examples, check out the built-in effects under `quantum/led_ | |||
262 | #define LED_MATRIX_FRAMEBUFFER_EFFECTS // enable framebuffer effects | 262 | #define LED_MATRIX_FRAMEBUFFER_EFFECTS // enable framebuffer effects |
263 | #define LED_DISABLE_TIMEOUT 0 // number of milliseconds to wait until led automatically turns off | 263 | #define LED_DISABLE_TIMEOUT 0 // number of milliseconds to wait until led automatically turns off |
264 | #define LED_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects | 264 | #define LED_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects |
265 | #define LED_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 265 | #define LED_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
266 | #define LED_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 266 | #define LED_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
267 | #define LED_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 267 | #define LED_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
268 | #define LED_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs | 268 | #define LED_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs |
@@ -350,30 +350,3 @@ void led_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | |||
350 | LED_MATRIX_INDICATOR_SET_VALUE(index, value); | 350 | LED_MATRIX_INDICATOR_SET_VALUE(index, value); |
351 | } | 351 | } |
352 | ``` | 352 | ``` |
353 | |||
354 | ## Suspended State :id=suspended-state | ||
355 | To use the suspend feature, make sure that `#define LED_DISABLE_WHEN_USB_SUSPENDED true` is added to the `config.h` file. | ||
356 | |||
357 | Additionally add this to your `<keyboard>.c`: | ||
358 | |||
359 | ```c | ||
360 | void suspend_power_down_kb(void) { | ||
361 | led_matrix_set_suspend_state(true); | ||
362 | suspend_power_down_user(); | ||
363 | } | ||
364 | |||
365 | void suspend_wakeup_init_kb(void) { | ||
366 | led_matrix_set_suspend_state(false); | ||
367 | suspend_wakeup_init_user(); | ||
368 | } | ||
369 | ``` | ||
370 | or add this to your `keymap.c`: | ||
371 | ```c | ||
372 | void suspend_power_down_user(void) { | ||
373 | led_matrix_set_suspend_state(true); | ||
374 | } | ||
375 | |||
376 | void suspend_wakeup_init_user(void) { | ||
377 | led_matrix_set_suspend_state(false); | ||
378 | } | ||
379 | ``` | ||
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md index f3e25f2f1..bd47fb6d3 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) { | |||
741 | } | 741 | } |
742 | } | 742 | } |
743 | ``` | 743 | ``` |
744 | |||
745 | ### Suspended state :id=suspended-state | ||
746 | To use the suspend feature, make sure that `#define RGB_DISABLE_WHEN_USB_SUSPENDED true` is added to the `config.h` file. | ||
747 | |||
748 | Additionally add this to your `<keyboard>.c`: | ||
749 | |||
750 | ```c | ||
751 | void suspend_power_down_kb(void) { | ||
752 | rgb_matrix_set_suspend_state(true); | ||
753 | suspend_power_down_user(); | ||
754 | } | ||
755 | |||
756 | void suspend_wakeup_init_kb(void) { | ||
757 | rgb_matrix_set_suspend_state(false); | ||
758 | suspend_wakeup_init_user(); | ||
759 | } | ||
760 | ``` | ||
761 | or add this to your `keymap.c`: | ||
762 | ```c | ||
763 | void suspend_power_down_user(void) { | ||
764 | rgb_matrix_set_suspend_state(true); | ||
765 | } | ||
766 | |||
767 | void suspend_wakeup_init_user(void) { | ||
768 | rgb_matrix_set_suspend_state(false); | ||
769 | } | ||
770 | ``` | ||
diff --git a/keyboards/bastardkb/scylla/config.h b/keyboards/bastardkb/scylla/config.h index 2a4972ea1..d04dcb97f 100644 --- a/keyboards/bastardkb/scylla/config.h +++ b/keyboards/bastardkb/scylla/config.h | |||
@@ -52,8 +52,6 @@ | |||
52 | # define RGB_MATRIX_SPLIT { 29, 29 } | 52 | # define RGB_MATRIX_SPLIT { 29, 29 } |
53 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 | 53 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 |
54 | # define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS | 54 | # define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS |
55 | # ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | 55 | # define RGB_DISABLE_WHEN_USB_SUSPENDED |
56 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true | ||
57 | # endif | ||
58 | # define RGB_MATRIX_KEYPRESSES | 56 | # define RGB_MATRIX_KEYPRESSES |
59 | #endif | 57 | #endif |
diff --git a/keyboards/bastardkb/tbkmini/config.h b/keyboards/bastardkb/tbkmini/config.h index adda76174..a09dafe48 100644 --- a/keyboards/bastardkb/tbkmini/config.h +++ b/keyboards/bastardkb/tbkmini/config.h | |||
@@ -53,8 +53,6 @@ | |||
53 | # define RGB_MATRIX_SPLIT { 21, 21 } | 53 | # define RGB_MATRIX_SPLIT { 21, 21 } |
54 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 | 54 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 |
55 | # define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS | 55 | # define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS |
56 | # ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | 56 | # define RGB_DISABLE_WHEN_USB_SUSPENDED |
57 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true | ||
58 | # endif | ||
59 | # define RGB_MATRIX_KEYPRESSES | 57 | # define RGB_MATRIX_KEYPRESSES |
60 | #endif | 58 | #endif |
diff --git a/keyboards/boardsource/the_mark/config.h b/keyboards/boardsource/the_mark/config.h index 3c78af62b..cbfe4cd51 100644 --- a/keyboards/boardsource/the_mark/config.h +++ b/keyboards/boardsource/the_mark/config.h | |||
@@ -56,11 +56,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | 56 | ||
57 | /* RGB matrix support */ | 57 | /* RGB matrix support */ |
58 | #ifdef RGB_MATRIX_ENABLE | 58 | #ifdef RGB_MATRIX_ENABLE |
59 | #define DRIVER_LED_TOTAL 24 // Number of LEDs | 59 | # define DRIVER_LED_TOTAL 24 // Number of LEDs |
60 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 60 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
61 | # ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | 61 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
62 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended | ||
63 | # endif | ||
64 | #endif | 62 | #endif |
65 | 63 | ||
66 | /* | 64 | /* |
diff --git a/keyboards/crkbd/keymaps/davidrambo/config.h b/keyboards/crkbd/keymaps/davidrambo/config.h index 25f5f3b22..82057151d 100644 --- a/keyboards/crkbd/keymaps/davidrambo/config.h +++ b/keyboards/crkbd/keymaps/davidrambo/config.h | |||
@@ -41,8 +41,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
41 | #define RGB_MATRIX_TYPING_MEATMAP_DECREASE_DELAY_MS 50 | 41 | #define RGB_MATRIX_TYPING_MEATMAP_DECREASE_DELAY_MS 50 |
42 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 42 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
43 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 43 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
44 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 44 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
46 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 46 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
47 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 47 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
48 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 48 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
diff --git a/keyboards/durgod/dgk6x/config.h b/keyboards/durgod/dgk6x/config.h index 7cd15cfb4..53f824b98 100644 --- a/keyboards/durgod/dgk6x/config.h +++ b/keyboards/durgod/dgk6x/config.h | |||
@@ -77,15 +77,15 @@ | |||
77 | #define I2C1_TIMINGR_SCLH 0x0cU | 77 | #define I2C1_TIMINGR_SCLH 0x0cU |
78 | #define I2C1_TIMINGR_SCLL 0x22U | 78 | #define I2C1_TIMINGR_SCLL 0x22U |
79 | 79 | ||
80 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 80 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
81 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 81 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
82 | #define RGB_MATRIX_KEYPRESSES | 82 | # define RGB_MATRIX_KEYPRESSES |
83 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 83 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
84 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 84 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
85 | 85 | ||
86 | #define DISABLE_RGB_MATRIX_HUE_BREATHING | 86 | # define DISABLE_RGB_MATRIX_HUE_BREATHING |
87 | #define DISABLE_RGB_MATRIX_HUE_PENDULUM | 87 | # define DISABLE_RGB_MATRIX_HUE_PENDULUM |
88 | #define DISABLE_RGB_MATRIX_HUE_WAVE | 88 | # define DISABLE_RGB_MATRIX_HUE_WAVE |
89 | 89 | ||
90 | // This allows VIA to control RGB Matrix settings in the 'Lighting' section. | 90 | // This allows VIA to control RGB Matrix settings in the 'Lighting' section. |
91 | #define VIA_QMK_RGBLIGHT_ENABLE | 91 | #define VIA_QMK_RGBLIGHT_ENABLE |
diff --git a/keyboards/dztech/dz60rgb/v2_1/config.h b/keyboards/dztech/dz60rgb/v2_1/config.h index 6928ad50a..06d504e39 100644 --- a/keyboards/dztech/dz60rgb/v2_1/config.h +++ b/keyboards/dztech/dz60rgb/v2_1/config.h | |||
@@ -53,7 +53,7 @@ | |||
53 | 53 | ||
54 | #ifdef RGB_MATRIX_ENABLE | 54 | #ifdef RGB_MATRIX_ENABLE |
55 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 55 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
56 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 56 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
57 | # define RGB_MATRIX_KEYPRESSES | 57 | # define RGB_MATRIX_KEYPRESSES |
58 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 58 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
59 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 59 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
@@ -72,7 +72,7 @@ | |||
72 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 72 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
73 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 73 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
74 | # define DRIVER_ADDR_1 0b1010000 | 74 | # define DRIVER_ADDR_1 0b1010000 |
75 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 75 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. |
76 | # define DRIVER_COUNT 2 | 76 | # define DRIVER_COUNT 2 |
77 | # define DRIVER_1_LED_TOTAL 63 | 77 | # define DRIVER_1_LED_TOTAL 63 |
78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | 78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL |
diff --git a/keyboards/dztech/dz65rgb/v3/config.h b/keyboards/dztech/dz65rgb/v3/config.h index c348e323d..dbf2f5b3c 100755 --- a/keyboards/dztech/dz65rgb/v3/config.h +++ b/keyboards/dztech/dz65rgb/v3/config.h | |||
@@ -42,16 +42,16 @@ | |||
42 | #define NO_ACTION_FUNCTION | 42 | #define NO_ACTION_FUNCTION |
43 | #ifdef RGB_MATRIX_ENABLE | 43 | #ifdef RGB_MATRIX_ENABLE |
44 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 44 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
45 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 45 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
46 | #define USB_SUSPEND_WAKEUP_DELAY 5000 | 46 | # define USB_SUSPEND_WAKEUP_DELAY 5000 |
47 | #define RGB_MATRIX_KEYPRESSES | 47 | # define RGB_MATRIX_KEYPRESSES |
48 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 48 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
49 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 49 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
50 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 50 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
51 | #define DRIVER_ADDR_1 0b0110000 | 51 | # define DRIVER_ADDR_1 0b0110000 |
52 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | 52 | # define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. |
53 | #define DRIVER_COUNT 1 | 53 | # define DRIVER_COUNT 1 |
54 | #define DRIVER_1_LED_TOTAL 68 | 54 | # define DRIVER_1_LED_TOTAL 68 |
55 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | 55 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL |
56 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 56 | # define DRIVER_INDICATOR_LED_TOTAL 0 |
57 | #endif | 57 | #endif |
diff --git a/keyboards/handwired/tractyl_manuform/4x6_right/config.h b/keyboards/handwired/tractyl_manuform/4x6_right/config.h index 05a1c5f3b..2f29778f3 100644 --- a/keyboards/handwired/tractyl_manuform/4x6_right/config.h +++ b/keyboards/handwired/tractyl_manuform/4x6_right/config.h | |||
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
39 | #define RGB_DI_PIN E7 | 39 | #define RGB_DI_PIN E7 |
40 | #define DRIVER_LED_TOTAL 62 | 40 | #define DRIVER_LED_TOTAL 62 |
41 | #define RGB_MATRIX_SPLIT { 32, 30 } | 41 | #define RGB_MATRIX_SPLIT { 32, 30 } |
42 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 42 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
43 | #define RGB_MATRIX_KEYPRESSES | 43 | #define RGB_MATRIX_KEYPRESSES |
44 | // #define RGB_MATRIX_KEYRELEASES | 44 | // #define RGB_MATRIX_KEYRELEASES |
45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
diff --git a/keyboards/latin6rgb/config.h b/keyboards/latin6rgb/config.h index 4052fdc99..174c23c30 100644 --- a/keyboards/latin6rgb/config.h +++ b/keyboards/latin6rgb/config.h | |||
@@ -1,18 +1,18 @@ | |||
1 | /* Copyright 2021 18438880 | 1 | /* Copyright 2021 18438880 |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | 17 | ||
18 | #pragma once | 18 | #pragma once |
@@ -57,7 +57,7 @@ | |||
57 | 57 | ||
58 | #ifdef RGB_MATRIX_ENABLE | 58 | #ifdef RGB_MATRIX_ENABLE |
59 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 59 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
60 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 60 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
61 | # define RGB_MATRIX_KEYPRESSES | 61 | # define RGB_MATRIX_KEYPRESSES |
62 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 62 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
63 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 63 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/planck/rev6/config.h b/keyboards/planck/rev6/config.h index 18bb74096..44ae7d277 100644 --- a/keyboards/planck/rev6/config.h +++ b/keyboards/planck/rev6/config.h | |||
@@ -140,8 +140,6 @@ | |||
140 | #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 | 140 | #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 |
141 | #define WS2812_DMA_CHANNEL 2 | 141 | #define WS2812_DMA_CHANNEL 2 |
142 | 142 | ||
143 | #ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | 143 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
144 | # define RGB_DISABLE_WHEN_USB_SUSPENDED | ||
145 | #endif | ||
146 | 144 | ||
147 | #endif | 145 | #endif |
diff --git a/keyboards/rgbkb/mun/config.h b/keyboards/rgbkb/mun/config.h index 802672e14..5d1a2ce20 100644 --- a/keyboards/rgbkb/mun/config.h +++ b/keyboards/rgbkb/mun/config.h | |||
@@ -86,7 +86,7 @@ | |||
86 | #define RGB_MATRIX_LED_PROCESS_LIMIT 10 | 86 | #define RGB_MATRIX_LED_PROCESS_LIMIT 10 |
87 | #define RGB_MATRIX_KEYPRESSES | 87 | #define RGB_MATRIX_KEYPRESSES |
88 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 88 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
89 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 89 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
90 | 90 | ||
91 | #if RGB_UNLIMITED_POWER | 91 | #if RGB_UNLIMITED_POWER |
92 | #define RGBLIGHT_LIMIT_VAL 255 | 92 | #define RGBLIGHT_LIMIT_VAL 255 |
diff --git a/keyboards/rgbkb/mun/keymaps/default/config.h b/keyboards/rgbkb/mun/keymaps/default/config.h index 3d9aff94a..967b309f6 100644 --- a/keyboards/rgbkb/mun/keymaps/default/config.h +++ b/keyboards/rgbkb/mun/keymaps/default/config.h | |||
@@ -18,8 +18,7 @@ | |||
18 | 18 | ||
19 | // 20m timeout (20m * 60s * 1000mil) | 19 | // 20m timeout (20m * 60s * 1000mil) |
20 | // #define RGB_DISABLE_TIMEOUT 1200000 | 20 | // #define RGB_DISABLE_TIMEOUT 1200000 |
21 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 21 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
22 | |||
23 | 22 | ||
24 | #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2 | 23 | #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2 |
25 | // 224B per layer right now | 24 | // 224B per layer right now |
@@ -29,4 +28,3 @@ | |||
29 | #define VIA_QMK_RGBLIGHT_ENABLE | 28 | #define VIA_QMK_RGBLIGHT_ENABLE |
30 | 29 | ||
31 | #define STM32_ONBOARD_EEPROM_SIZE 2048 | 30 | #define STM32_ONBOARD_EEPROM_SIZE 2048 |
32 | |||
diff --git a/keyboards/rgbkb/mun/keymaps/xulkal2/config.h b/keyboards/rgbkb/mun/keymaps/xulkal2/config.h index f78d0103c..f36e5760f 100644 --- a/keyboards/rgbkb/mun/keymaps/xulkal2/config.h +++ b/keyboards/rgbkb/mun/keymaps/xulkal2/config.h | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | // 20m timeout (20m * 60s * 1000mil) | 31 | // 20m timeout (20m * 60s * 1000mil) |
32 | // #define RGB_DISABLE_TIMEOUT 1200000 | 32 | // #define RGB_DISABLE_TIMEOUT 1200000 |
33 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 33 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
34 | #define OLED_SCROLL_TIMEOUT 20000 | 34 | #define OLED_SCROLL_TIMEOUT 20000 |
35 | #define ONESHOT_TAP_TOGGLE 2 | 35 | #define ONESHOT_TAP_TOGGLE 2 |
36 | 36 | ||
@@ -39,4 +39,4 @@ | |||
39 | #define RGB_MATRIX_VAL_STEP 8 | 39 | #define RGB_MATRIX_VAL_STEP 8 |
40 | #define RGB_MATRIX_SPD_STEP 8 | 40 | #define RGB_MATRIX_SPD_STEP 8 |
41 | 41 | ||
42 | #define ENCODER_RESOLUTION 2 \ No newline at end of file | 42 | #define ENCODER_RESOLUTION 2 |
diff --git a/keyboards/sawnsprojects/satxri6key/config.h b/keyboards/sawnsprojects/satxri6key/config.h index 833fd584e..129f2536b 100644 --- a/keyboards/sawnsprojects/satxri6key/config.h +++ b/keyboards/sawnsprojects/satxri6key/config.h | |||
@@ -71,7 +71,7 @@ | |||
71 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 71 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
72 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 72 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
73 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 73 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
74 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 74 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
75 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 75 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
76 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 76 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
77 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE // Sets the default mode, if none has been set \ No newline at end of file | 77 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE // Sets the default mode, if none has been set |
diff --git a/keyboards/xbows/knight/config.h b/keyboards/xbows/knight/config.h index 540e29d4d..2b15cbbb3 100644 --- a/keyboards/xbows/knight/config.h +++ b/keyboards/xbows/knight/config.h | |||
@@ -35,10 +35,11 @@ | |||
35 | # define RGB_MATRIX_LED_PROCESS_LIMIT 18 | 35 | # define RGB_MATRIX_LED_PROCESS_LIMIT 18 |
36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 | 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 |
37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
39 | # define RGB_MATRIX_KEYPRESSES | 39 | # define RGB_MATRIX_KEYPRESSES |
40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
41 | # define RGB_MATRIX_CENTER { 92, 43 } | 41 | # define RGB_MATRIX_CENTER \ |
42 | { 92, 43 } | ||
42 | 43 | ||
43 | # define DRIVER_ADDR_1 0b1110100 | 44 | # define DRIVER_ADDR_1 0b1110100 |
44 | # define DRIVER_ADDR_2 0b1110110 | 45 | # define DRIVER_ADDR_2 0b1110110 |
diff --git a/keyboards/xbows/knight_plus/config.h b/keyboards/xbows/knight_plus/config.h index ead345c04..6293a6ffb 100644 --- a/keyboards/xbows/knight_plus/config.h +++ b/keyboards/xbows/knight_plus/config.h | |||
@@ -36,9 +36,10 @@ | |||
36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 | 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 |
37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
38 | # define RGB_MATRIX_KEYPRESSES | 38 | # define RGB_MATRIX_KEYPRESSES |
39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
41 | # define RGB_MATRIX_CENTER { 92, 43 } | 41 | # define RGB_MATRIX_CENTER \ |
42 | { 92, 43 } | ||
42 | 43 | ||
43 | # define DRIVER_ADDR_1 0b1110100 | 44 | # define DRIVER_ADDR_1 0b1110100 |
44 | # define DRIVER_ADDR_2 0b1110110 | 45 | # define DRIVER_ADDR_2 0b1110110 |
diff --git a/keyboards/xbows/numpad/config.h b/keyboards/xbows/numpad/config.h index fd13305ed..832da03a2 100644 --- a/keyboards/xbows/numpad/config.h +++ b/keyboards/xbows/numpad/config.h | |||
@@ -35,10 +35,11 @@ | |||
35 | # define RGB_MATRIX_LED_PROCESS_LIMIT 18 | 35 | # define RGB_MATRIX_LED_PROCESS_LIMIT 18 |
36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 | 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 |
37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
39 | # define RGB_MATRIX_KEYPRESSES | 39 | # define RGB_MATRIX_KEYPRESSES |
40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
41 | # define RGB_MATRIX_CENTER { 30, 32 } | 41 | # define RGB_MATRIX_CENTER \ |
42 | { 30, 32 } | ||
42 | 43 | ||
43 | # define DRIVER_ADDR_1 0b1110111 | 44 | # define DRIVER_ADDR_1 0b1110111 |
44 | # define DRIVER_COUNT 1 | 45 | # define DRIVER_COUNT 1 |
diff --git a/keyboards/xelus/pachi/rgb/config.h b/keyboards/xelus/pachi/rgb/config.h index f97650850..9378b2c41 100644 --- a/keyboards/xelus/pachi/rgb/config.h +++ b/keyboards/xelus/pachi/rgb/config.h | |||
@@ -70,7 +70,7 @@ | |||
70 | #define RGB_MATRIX_STARTUP_VAL 80 | 70 | #define RGB_MATRIX_STARTUP_VAL 80 |
71 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 71 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
72 | #define RGB_MATRIX_KEYPRESSES | 72 | #define RGB_MATRIX_KEYPRESSES |
73 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 73 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
74 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 74 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
75 | 75 | ||
76 | #define FORCE_NKRO | 76 | #define FORCE_NKRO |