Skip to content

Commit

Permalink
Update more DRIVER_LED_TOTAL defines to RGB_MATRIX_LED_COUNT (#19089
Browse files Browse the repository at this point in the history
)
  • Loading branch information
fauxpark authored Nov 15, 2022
1 parent 5dabc1b commit 81a6407
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion keyboards/bastardkb/dilemma/3x5_3/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/* RGB matrix support. */
#ifdef RGB_MATRIX_ENABLE
# define SPLIT_TRANSPORT_MIRROR
# define DRIVER_LED_TOTAL RGBLED_NUM
# define RGB_MATRIX_LED_COUNT RGBLED_NUM
# define RGB_MATRIX_SPLIT RGBLED_SPLIT
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
Expand Down
2 changes: 1 addition & 1 deletion keyboards/controllerworks/mini36/keymaps/default/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
// # 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)
// # define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
// # 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)
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
# define RGB_MATRIX_HUE_STEP 8
Expand Down
2 changes: 1 addition & 1 deletion keyboards/controllerworks/mini36/keymaps/via/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
// # 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)
// # define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
// # 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)
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
# define RGB_MATRIX_HUE_STEP 8
Expand Down
2 changes: 1 addition & 1 deletion keyboards/controllerworks/mini42/keymaps/default/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
// # 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)
// # define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
// # 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)
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
# define RGB_MATRIX_HUE_STEP 8
Expand Down
4 changes: 1 addition & 3 deletions keyboards/controllerworks/mini42/keymaps/via/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
*/
#pragma once
#ifdef RGB_MATRIX_ENABLE
# define RGBLED_NUM 54 // Number of LEDs
# define DRIVER_LED_TOTAL RGBLED_NUM
# define RGB_MATRIX_SPLIT \
{ 27, 27 }
//# define SPLIT_TRANSPORT_MIRROR
Expand All @@ -26,7 +24,7 @@
// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
// # 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)
// # define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
// # 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)
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
# define RGB_MATRIX_HUE_STEP 8
Expand Down
2 changes: 1 addition & 1 deletion keyboards/crkbd/keymaps/nimishgautam/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#define RGB_MATRIX_VAL_STEP 8
#define RGB_MATRIX_SPD_STEP 10
#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
#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)
#define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
#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)

#define ENABLE_RGB_MATRIX_SOLID_SPLASH
Expand Down
2 changes: 1 addition & 1 deletion keyboards/kprepublic/bm40hsrgb/keymaps/coffee/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const uint16_t PROGMEM keymaps[_END][MATRIX_ROWS][MATRIX_COLS] = {
#ifdef UNDERGLOW_DISABLE
void keyboard_pre_init_user(void) {

for (int key_id = 0; key_id < DRIVER_LED_TOTAL; key_id++ ) {
for (int key_id = 0; key_id < RGB_MATRIX_LED_COUNT; key_id++ ) {
if (g_led_config.flags[key_id] == LED_FLAG_UNDERGLOW) {
g_led_config.flags[key_id] = LED_FLAG_NONE;
}
Expand Down
3 changes: 1 addition & 2 deletions keyboards/tzarc/ghoul/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@

// RGB configuration
#define RGB_MATRIX_LED_COUNT 40
#define RGBLED_NUM 40 // TBD: Once convergence with these defines occurs, remove.
#define DRIVER_LED_TOTAL 40 // TBD: Once convergence with these defines occurs, remove.
#define RGBLED_NUM 40
3 changes: 1 addition & 2 deletions keyboards/work_louder/numpad/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@


// #define RGB_DI_PIN D1
#define DRIVER_LED_TOTAL 16
#define RGB_MATRIX_LED_COUNT DRIVER_LED_TOTAL
#define RGB_MATRIX_LED_COUNT 16
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
#define RGB_MATRIX_DISABLE_KEYCODES
#define RGB_DISABLE_WHEN_USB_SUSPENDED
Expand Down
1 change: 0 additions & 1 deletion keyboards/yandrstudio/buff67v3/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

# define RGB_DI_PIN B4
# define RGBLED_NUM 1
# define DRIVER_LED_TOTAL RGBLED_NUM
# define RGBLIGHT_EFFECT_BREATHING
# define RGBLIGHT_EFFECT_RAINBOW_MOOD
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
1 change: 0 additions & 1 deletion keyboards/yandrstudio/eau_r2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

# define RGB_DI_PIN A8
# define RGBLED_NUM 12
# define DRIVER_LED_TOTAL RGBLED_NUM
# define RGBLIGHT_SLEEP
# define RGBLIGHT_VAL_STEP 5
# define RGBLIGHT_LIMIT_VAL 200
Expand Down
1 change: 0 additions & 1 deletion keyboards/yandrstudio/nightstar75/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

# define RGB_DI_PIN A7
# define RGBLED_NUM 4
# define DRIVER_LED_TOTAL RGBLED_NUM
# define RGBLIGHT_LIMIT_VAL 180

# define RGBLIGHT_EFFECT_BREATHING
Expand Down
1 change: 0 additions & 1 deletion keyboards/yandrstudio/yr6095/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

# define RGB_DI_PIN B5
# define RGBLED_NUM 1
# define DRIVER_LED_TOTAL RGBLED_NUM

# define RGBLIGHT_LAYERS
# define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
Expand Down

0 comments on commit 81a6407

Please sign in to comment.