summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-09-23 22:46:23 +1000
committerGitHub <noreply@github.com>2022-09-23 22:46:23 +1000
commit36c410592dbd35da33ccc5fd6d2a5cbf4b25a708 (patch)
tree4e75c5fc5cd31d9fdc904876906c0b409ee45d90
parentd967de0df749f3be63403e07feda416ea09351d0 (diff)
Change `DRIVER_LED_COUNT` to `{LED,RGB}_MATRIX_LED_COUNT` (#18399)
-rw-r--r--docs/feature_led_matrix.md20
-rw-r--r--docs/feature_rgb_matrix.md48
-rw-r--r--drivers/led/aw20216.c2
-rw-r--r--drivers/led/aw20216.h2
-rw-r--r--drivers/led/ckled2001-simple.c4
-rw-r--r--drivers/led/ckled2001-simple.h2
-rw-r--r--drivers/led/ckled2001.c4
-rw-r--r--drivers/led/ckled2001.h2
-rw-r--r--drivers/led/issi/is31fl3731-simple.c4
-rw-r--r--drivers/led/issi/is31fl3731-simple.h2
-rw-r--r--drivers/led/issi/is31fl3731.c4
-rw-r--r--drivers/led/issi/is31fl3731.h2
-rw-r--r--drivers/led/issi/is31fl3733-simple.c4
-rw-r--r--drivers/led/issi/is31fl3733-simple.h2
-rw-r--r--drivers/led/issi/is31fl3733.c4
-rw-r--r--drivers/led/issi/is31fl3733.h2
-rw-r--r--drivers/led/issi/is31fl3736.c4
-rw-r--r--drivers/led/issi/is31fl3736.h6
-rw-r--r--drivers/led/issi/is31fl3737.c4
-rw-r--r--drivers/led/issi/is31fl3737.h2
-rw-r--r--drivers/led/issi/is31fl3741.c4
-rw-r--r--drivers/led/issi/is31fl3741.h2
-rw-r--r--drivers/led/issi/is31flcommon.c15
-rw-r--r--drivers/led/issi/is31flcommon.h6
-rw-r--r--keyboards/1upkeyboards/pi40/config.h2
-rw-r--r--keyboards/1upkeyboards/super16/config.h2
-rw-r--r--keyboards/1upkeyboards/super16v2/config.h2
-rw-r--r--keyboards/3keyecosystem/2key2/config.h2
-rw-r--r--keyboards/4pplet/perk60_iso/rev_a/config.h2
-rw-r--r--keyboards/4pplet/perk60_iso/rev_a/rev_a.c2
-rw-r--r--keyboards/abatskeyboardclub/nayeon/config.h2
-rw-r--r--keyboards/acheron/apollo/87h/delta/config.h2
-rw-r--r--keyboards/acheron/apollo/87h/gamma/config.h4
-rw-r--r--keyboards/acheron/apollo/87h/gamma/gamma.c2
-rw-r--r--keyboards/acheron/apollo/87htsc/config.h2
-rw-r--r--keyboards/acheron/apollo/88htsc/config.h2
-rw-r--r--keyboards/adafruit/macropad/config.h2
-rw-r--r--keyboards/adm42/rev4/config.h2
-rw-r--r--keyboards/aleblazer/zodiark/config.h2
-rw-r--r--keyboards/an_achronism/tetromino/config.h2
-rw-r--r--keyboards/annepro2/config_led.h2
-rw-r--r--keyboards/annepro2/rgb_driver.c4
-rw-r--r--keyboards/atlantis/ak81_ve/config.h2
-rw-r--r--keyboards/axolstudio/yeti/hotswap/config.h2
-rw-r--r--keyboards/axolstudio/yeti/hotswap/hotswap.c2
-rw-r--r--keyboards/bandominedoni/config.h2
-rw-r--r--keyboards/basekeys/trifecta/config.h4
-rw-r--r--keyboards/bastardkb/charybdis/3x5/config.h2
-rw-r--r--keyboards/bastardkb/charybdis/3x6/config.h2
-rw-r--r--keyboards/bastardkb/charybdis/4x6/config.h2
-rw-r--r--keyboards/bastardkb/scylla/config.h2
-rw-r--r--keyboards/bastardkb/skeletyl/config.h2
-rw-r--r--keyboards/bastardkb/tbkmini/config.h2
-rw-r--r--keyboards/blockboy/ac980mini/config.h4
-rw-r--r--keyboards/boardsource/beiwagon/config.h2
-rw-r--r--keyboards/boardsource/lulu/config.h2
-rw-r--r--keyboards/boardsource/microdox/v2/config.h2
-rw-r--r--keyboards/boardsource/technik_o/config.h2
-rw-r--r--keyboards/boardsource/technik_s/config.h2
-rw-r--r--keyboards/boardsource/the_mark/config.h2
-rw-r--r--keyboards/boston_meetup/2019/config.h2
-rw-r--r--keyboards/canary/canary60rgb/canary60rgb.c2
-rw-r--r--keyboards/canary/canary60rgb/v1/config.h2
-rw-r--r--keyboards/capsunlocked/cu80/v2_ansi/config.h2
-rw-r--r--keyboards/capsunlocked/cu80/v2_iso/config.h2
-rw-r--r--keyboards/checkerboards/quark_lp/config.h2
-rw-r--r--keyboards/cherrybstudio/cb87rgb/config.h2
-rw-r--r--keyboards/chromatonemini/config.h2
-rw-r--r--keyboards/chromatonemini/rgb_matrix_kb.inc4
-rw-r--r--keyboards/clueboard/66_hotswap/gen1/config.h2
-rw-r--r--keyboards/clueboard/66_hotswap/gen1/gen1.c2
-rw-r--r--keyboards/crkbd/keymaps/bermeo/config.h2
-rw-r--r--keyboards/crkbd/keymaps/bermeo/keymap.c8
-rw-r--r--keyboards/crkbd/keymaps/crkdves/config.h2
-rw-r--r--keyboards/crkbd/keymaps/crkqwes/config.h2
-rw-r--r--keyboards/crkbd/keymaps/davidrambo/config.h2
-rw-r--r--keyboards/crkbd/keymaps/devdev/config.h2
-rw-r--r--keyboards/crkbd/keymaps/kidbrazil/config.h2
-rw-r--r--keyboards/crkbd/keymaps/ollyhayes/config.h2
-rw-r--r--keyboards/crkbd/keymaps/rpbaptist/keymap.c2
-rw-r--r--keyboards/crkbd/keymaps/soundmonster/config.h2
-rw-r--r--keyboards/crkbd/keymaps/toinux/config.h2
-rw-r--r--keyboards/crkbd/keymaps/xyverz/config.h2
-rw-r--r--keyboards/crkbd/r2g/config.h2
-rw-r--r--keyboards/crkbd/readme.md2
-rw-r--r--keyboards/crkbd/rev1/config.h2
-rw-r--r--keyboards/dekunukem/duckypad/config.h2
-rw-r--r--keyboards/doio/kb16/config.h2
-rw-r--r--keyboards/doro67/rgb/config.h2
-rw-r--r--keyboards/dp60/config.h2
-rw-r--r--keyboards/dp60/dp60.c2
-rw-r--r--keyboards/dtisaac/dosa40rgb/config.h2
-rw-r--r--keyboards/durgod/dgk6x/config.h2
-rw-r--r--keyboards/durgod/dgk6x/galaxy/galaxy.c2
-rw-r--r--keyboards/durgod/dgk6x/hades/hades.c2
-rw-r--r--keyboards/durgod/dgk6x/venus/venus.c2
-rw-r--r--keyboards/dztech/dz60rgb/dz60rgb.c2
-rw-r--r--keyboards/dztech/dz60rgb/keymaps/mekanist/keymap.c2
-rw-r--r--keyboards/dztech/dz60rgb/keymaps/perseid/keymap.c2
-rw-r--r--keyboards/dztech/dz60rgb/v1/config.h2
-rw-r--r--keyboards/dztech/dz60rgb/v2/config.h2
-rw-r--r--keyboards/dztech/dz60rgb/v2_1/config.h2
-rw-r--r--keyboards/dztech/dz60rgb_ansi/dz60rgb_ansi.c2
-rw-r--r--keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/keymap.c2
-rw-r--r--keyboards/dztech/dz60rgb_ansi/v1/config.h2
-rw-r--r--keyboards/dztech/dz60rgb_ansi/v2/config.h2
-rw-r--r--keyboards/dztech/dz60rgb_ansi/v2_1/config.h2
-rw-r--r--keyboards/dztech/dz60rgb_wkl/dz60rgb_wkl.c2
-rw-r--r--keyboards/dztech/dz60rgb_wkl/v1/config.h2
-rw-r--r--keyboards/dztech/dz60rgb_wkl/v2/config.h2
-rw-r--r--keyboards/dztech/dz60rgb_wkl/v2_1/config.h2
-rw-r--r--keyboards/dztech/dz64rgb/config.h2
-rw-r--r--keyboards/dztech/dz64rgb/dz64rgb.c2
-rw-r--r--keyboards/dztech/dz65rgb/v1/config.h2
-rw-r--r--keyboards/dztech/dz65rgb/v1/v1.c2
-rw-r--r--keyboards/dztech/dz65rgb/v2/config.h2
-rw-r--r--keyboards/dztech/dz65rgb/v2/v2.c2
-rwxr-xr-xkeyboards/dztech/dz65rgb/v3/config.h2
-rwxr-xr-xkeyboards/dztech/dz65rgb/v3/v3.c2
-rw-r--r--keyboards/eek/config.h2
-rw-r--r--keyboards/ein_60/config.h2
-rw-r--r--keyboards/elephant42/config.h2
-rw-r--r--keyboards/ergodox_ez/config.h2
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c2
-rw-r--r--keyboards/evyd13/atom47/rev5/config.h2
-rw-r--r--keyboards/evyd13/atom47/rev5/rev5.c2
-rw-r--r--keyboards/exclusive/e6_rgb/config.h2
-rw-r--r--keyboards/exclusive/e6_rgb/e6_rgb.c2
-rwxr-xr-xkeyboards/fallacy/config.h2
-rwxr-xr-xkeyboards/fallacy/indicators.c4
-rw-r--r--keyboards/feker/ik75/config.h2
-rw-r--r--keyboards/feker/ik75/ik75.c2
-rw-r--r--keyboards/ferris/0_2/bling/bling.c2
-rw-r--r--keyboards/ferris/0_2/bling/config.h2
-rw-r--r--keyboards/frooastboard/walnut/config.h2
-rw-r--r--keyboards/frooastboard/walnut/walnut.c2
-rw-r--r--keyboards/geekboards/macropad_v2/config.h2
-rw-r--r--keyboards/geekboards/tester/config.h2
-rw-r--r--keyboards/geekboards/tester/tester.c2
-rw-r--r--keyboards/giabalanai/config.h2
-rw-r--r--keyboards/giabalanai/keymaps/party/rgb_matrix_user.inc4
-rwxr-xr-xkeyboards/gizmo_engineering/gk6/config.h2
-rwxr-xr-xkeyboards/gizmo_engineering/gk6/gk6.c2
-rw-r--r--keyboards/gl516/j73gl/keymaps/via_rgb_matrix/config.h4
-rw-r--r--keyboards/gmmk/gmmk2/p65/ansi/ansi.c2
-rw-r--r--keyboards/gmmk/gmmk2/p65/config.h2
-rw-r--r--keyboards/gmmk/gmmk2/p65/iso/iso.c2
-rw-r--r--keyboards/gmmk/gmmk2/p96/ansi/ansi.c2
-rw-r--r--keyboards/gmmk/gmmk2/p96/config.h2
-rw-r--r--keyboards/gmmk/gmmk2/p96/iso/iso.c2
-rw-r--r--keyboards/gmmk/pro/rev1/ansi/ansi.c2
-rw-r--r--keyboards/gmmk/pro/rev1/ansi/config.h2
-rw-r--r--keyboards/gmmk/pro/rev1/ansi/keymaps/cedrikl/keymap.c2
-rw-r--r--keyboards/gmmk/pro/rev1/ansi/keymaps/gigahawk/keymap.c2
-rw-r--r--keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/ansi.c2
-rw-r--r--keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/helpers.c2
-rw-r--r--keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c2
-rw-r--r--keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.h2
-rw-r--r--keyboards/gmmk/pro/rev1/iso/config.h2
-rw-r--r--keyboards/gmmk/pro/rev1/iso/iso.c2
-rw-r--r--keyboards/gmmk/pro/rev2/ansi/ansi.c2
-rw-r--r--keyboards/gmmk/pro/rev2/ansi/config.h2
-rw-r--r--keyboards/gmmk/pro/rev2/iso/config.h2
-rw-r--r--keyboards/gmmk/pro/rev2/iso/iso.c2
-rw-r--r--keyboards/gopolar/gg86/config.h2
-rw-r--r--keyboards/gopolar/gg86/keymaps/horrortroll/led/custom_gradient.c2
-rw-r--r--keyboards/gopolar/gg86/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h2
-rw-r--r--keyboards/gopolar/gg86/keymaps/horrortroll/led/random_breath_rainbow.c6
-rw-r--r--keyboards/hadron/ver3/config.h2
-rw-r--r--keyboards/handwired/6macro/config.h2
-rw-r--r--keyboards/handwired/co60/rev7/config.h2
-rw-r--r--keyboards/handwired/colorlice/config.h2
-rw-r--r--keyboards/handwired/dactyl_manuform/3x5_3/config.h2
-rw-r--r--keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/config.h2
-rw-r--r--keyboards/handwired/dactyl_manuform/5x6/keymaps/thattolleyguy/config.h4
-rw-r--r--keyboards/handwired/dygma/raise/ansi/ansi.c2
-rw-r--r--keyboards/handwired/dygma/raise/config.h2
-rw-r--r--keyboards/handwired/dygma/raise/iso/iso.c2
-rw-r--r--keyboards/handwired/dygma/raise/leds.c2
-rw-r--r--keyboards/handwired/dygma/raise/leds.h2
-rw-r--r--keyboards/handwired/hnah108/config.h2
-rw-r--r--keyboards/handwired/hnah40rgb/config.h2
-rw-r--r--keyboards/handwired/p65rgb/config.h2
-rw-r--r--keyboards/handwired/steamvan/rev1/config.h2
-rw-r--r--keyboards/handwired/tractyl_manuform/4x6_right/config.h2
-rw-r--r--keyboards/helix/rev3_4rows/config.h4
-rw-r--r--keyboards/helix/rev3_5rows/config.h4
-rw-r--r--keyboards/horrortroll/chinese_pcb/devil68_pro/config.h2
-rw-r--r--keyboards/horrortroll/handwired_k552/config.h2
-rw-r--r--keyboards/horrortroll/handwired_k552/keymaps/default/led/custom_gradient.c2
-rw-r--r--keyboards/horrortroll/handwired_k552/keymaps/default/led/random_breath_rainbow.c6
-rw-r--r--keyboards/horrortroll/handwired_k552/keymaps/via/led/custom_gradient.c2
-rw-r--r--keyboards/horrortroll/handwired_k552/keymaps/via/led/random_breath_rainbow.c6
-rw-r--r--keyboards/hs60/v1/config.h2
-rw-r--r--keyboards/hs60/v1/v1.c4
-rw-r--r--keyboards/hs60/v2/ansi/config.h2
-rw-r--r--keyboards/hs60/v2/hhkb/config.h2
-rw-r--r--keyboards/hs60/v2/iso/config.h2
-rw-r--r--keyboards/hub20/config.h2
-rwxr-xr-xkeyboards/idobao/id42/config.h2
-rwxr-xr-xkeyboards/idobao/id42/id42.c2
-rw-r--r--keyboards/idobao/id63/config.h4
-rw-r--r--keyboards/idobao/id67/config.h4
-rw-r--r--keyboards/idobao/id67/keymaps/thewerther/keymap.c2
-rw-r--r--keyboards/idobao/id67/keymaps/vinorodrigues/keymap.c4
-rw-r--r--keyboards/idobao/id75/v2/config.h2
-rw-r--r--keyboards/idobao/id80/v3/ansi/config.h2
-rw-r--r--keyboards/idobao/id87/v2/config.h2
-rwxr-xr-xkeyboards/idobao/montex/v1rgb/config.h2
-rwxr-xr-xkeyboards/idobao/montex/v2/config.h4
-rw-r--r--keyboards/ilumkb/simpler61/config.h2
-rw-r--r--keyboards/ilumkb/simpler61/simpler61.c2
-rw-r--r--keyboards/ilumkb/simpler64/config.h2
-rw-r--r--keyboards/ilumkb/simpler64/simpler64.c2
-rw-r--r--keyboards/inett_studio/sqx/hotswap/config.h2
-rw-r--r--keyboards/inett_studio/sqx/hotswap/hotswap.c2
-rw-r--r--keyboards/inett_studio/sqx/universal/config.h2
-rw-r--r--keyboards/inett_studio/sqx/universal/universal.c2
-rw-r--r--keyboards/input_club/ergodox_infinity/config.h2
-rw-r--r--keyboards/input_club/ergodox_infinity/ergodox_infinity.c2
-rw-r--r--keyboards/input_club/k_type/config.h2
-rw-r--r--keyboards/input_club/k_type/is31fl3733-dual.c4
-rw-r--r--keyboards/input_club/k_type/is31fl3733-dual.h2
-rw-r--r--keyboards/input_club/k_type/k_type-rgbdriver.c2
-rw-r--r--keyboards/input_club/k_type/k_type.c2
-rw-r--r--keyboards/input_club/k_type/keymaps/andrew-fahmy/config.h2
-rw-r--r--keyboards/input_club/whitefox/config.h2
-rw-r--r--keyboards/input_club/whitefox/whitefox.c2
-rw-r--r--keyboards/jacky_studio/bear_65/config.h2
-rw-r--r--keyboards/jadookb/jkb65/config.h2
-rw-r--r--keyboards/jkeys_design/gentleman65/config.h2
-rw-r--r--keyboards/jkeys_design/gentleman65_se_s/config.h2
-rw-r--r--keyboards/kapl/rev1/config.h2
-rw-r--r--keyboards/kbdfans/baguette66/rgb/config.h2
-rw-r--r--keyboards/kbdfans/bella/rgb/config.h2
-rw-r--r--keyboards/kbdfans/bella/rgb/rgb.c2
-rw-r--r--keyboards/kbdfans/bella/rgb_iso/config.h2
-rw-r--r--keyboards/kbdfans/bella/rgb_iso/rgb_iso.c2
-rw-r--r--keyboards/kbdfans/boop65/rgb/config.h2
-rw-r--r--keyboards/kbdfans/boop65/rgb/rgb.c2
-rw-r--r--keyboards/kbdfans/kbd67/mkiirgb/v1/config.h2
-rw-r--r--keyboards/kbdfans/kbd67/mkiirgb/v1/v1.c2
-rw-r--r--keyboards/kbdfans/kbd67/mkiirgb/v2/config.h2
-rw-r--r--keyboards/kbdfans/kbd67/mkiirgb/v2/v2.c2
-rwxr-xr-xkeyboards/kbdfans/kbd67/mkiirgb/v3/config.h2
-rwxr-xr-xkeyboards/kbdfans/kbd67/mkiirgb/v3/v3.c2
-rw-r--r--keyboards/kbdfans/kbd67/mkiirgb/v4/config.h2
-rw-r--r--keyboards/kbdfans/kbd67/mkiirgb_iso/config.h2
-rw-r--r--keyboards/kbdfans/kbd75rgb/config.h2
-rw-r--r--keyboards/kbdfans/kbdmini/config.h2
-rw-r--r--keyboards/kbdfans/kbdmini/kbdmini.c2
-rwxr-xr-xkeyboards/kbdfans/maja/config.h2
-rwxr-xr-xkeyboards/kbdfans/maja/maja.c2
-rw-r--r--keyboards/kbdfans/odin/rgb/config.h2
-rw-r--r--keyboards/keebio/bamfk4/config.h2
-rw-r--r--keyboards/keebio/bdn9/rev2/config.h2
-rw-r--r--keyboards/keebio/iris/rev6/config.h2
-rw-r--r--keyboards/keebio/iris/rev6a/config.h2
-rw-r--r--keyboards/keebio/iris/rev6b/config.h2
-rw-r--r--keyboards/keebio/iris/rev7/config.h2
-rw-r--r--keyboards/keebio/stick/config.h2
-rwxr-xr-xkeyboards/keebwerk/mega/ansi/config.h2
-rw-r--r--keyboards/keybee/keybee65/config.h2
-rw-r--r--keyboards/keyboardio/model01/config.h2
-rw-r--r--keyboards/keyboardio/model01/leds.c2
-rw-r--r--keyboards/keycapsss/kimiko/keymaps/oriaj3/config.h4
-rw-r--r--keyboards/keychron/q1/rev_0100/config.h2
-rw-r--r--keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c2
-rw-r--r--keyboards/keychron/q1/rev_0100/keymaps/mkillewald/rgb_matrix_user.c2
-rw-r--r--keyboards/keychron/q1/rev_0100/keymaps/teimor/rgb_matrix_user.c2
-rw-r--r--keyboards/keychron/q1/rev_0100/rev_0100.c2
-rw-r--r--keyboards/keychron/q1/rev_0101/config.h2
-rw-r--r--keyboards/keychron/q1/rev_0101/rev_0101.c2
-rw-r--r--keyboards/keychron/q1/rev_0102/config.h2
-rw-r--r--keyboards/keychron/q1/rev_0102/keymaps/kubahorak/rgb_matrix_user.c2
-rw-r--r--keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/rgb_matrix_user.c2
-rw-r--r--keyboards/keychron/q1/rev_0102/rev_0102.c2
-rw-r--r--keyboards/keychron/q2/rev_0110/config.h2
-rw-r--r--keyboards/keychron/q2/rev_0110/keymaps/ladduro/rgb_matrix_user.c2
-rw-r--r--keyboards/keychron/q2/rev_0110/rev_0110.c2
-rw-r--r--keyboards/keychron/q2/rev_0111/config.h2
-rw-r--r--keyboards/keychron/q2/rev_0111/rev_0111.c2
-rw-r--r--keyboards/keychron/q2/rev_0112/config.h2
-rw-r--r--keyboards/keychron/q2/rev_0112/rev_0112.c2
-rw-r--r--keyboards/keychron/q2/rev_0113/config.h2
-rw-r--r--keyboards/keychron/q2/rev_0113/rev_0113.c2
-rwxr-xr-xkeyboards/kprepublic/bm40hsrgb/config.h2
-rw-r--r--keyboards/kprepublic/bm40hsrgb/keymaps/coffee/config.h2
-rw-r--r--keyboards/kprepublic/bm40hsrgb/keymaps/coffee/keymap.c4
-rw-r--r--keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c16
-rw-r--r--keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c8
-rw-r--r--keyboards/kprepublic/bm60hsrgb/rev1/config.h2
-rw-r--r--keyboards/kprepublic/bm60hsrgb/rev2/config.h4
-rw-r--r--keyboards/kprepublic/bm60hsrgb/rev2/rev2.c2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_ec/rev1/config.h2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_ec/rev2/rev2.c2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_iso/rev1/config.h2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_iso/rev2/config.h2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_iso/rev2/rev2.c2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_poker/rev1/config.h2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/keymap.c2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_poker/rev2/config.h2
-rw-r--r--keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.c2
-rw-r--r--keyboards/kprepublic/bm65hsrgb/rev1/config.h2
-rw-r--r--keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c2
-rw-r--r--keyboards/kprepublic/bm65hsrgb_iso/rev1/config.h2
-rw-r--r--keyboards/kprepublic/bm68hsrgb/rev1/config.h2
-rw-r--r--keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/config.h2
-rw-r--r--keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/keymap.c4
-rw-r--r--keyboards/kprepublic/bm68hsrgb/rev2/config.h2
-rw-r--r--keyboards/kprepublic/bm68hsrgb/rev2/rev2.c2
-rw-r--r--keyboards/kprepublic/bm80hsrgb/config.h4
-rw-r--r--keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h2
-rw-r--r--keyboards/kprepublic/bm80v2/bm80v2.c2
-rw-r--r--keyboards/kprepublic/bm80v2/config.h2
-rw-r--r--keyboards/kprepublic/bm80v2_iso/bm80v2_iso.c2
-rw-r--r--keyboards/kprepublic/bm80v2_iso/config.h2
-rw-r--r--keyboards/kprepublic/bm980hsrgb/config.h2
-rw-r--r--keyboards/labbe/labbeminiv1/keymaps/rgbmatrix/config.h2
-rw-r--r--keyboards/latincompass/latin17rgb/config.h2
-rw-r--r--keyboards/latincompass/latin17rgb/latin17rgb.c2
-rw-r--r--keyboards/latincompass/latin60rgb/config.h2
-rw-r--r--keyboards/latincompass/latin60rgb/latin60rgb.c2
-rw-r--r--keyboards/latincompass/latin64ble/config.h2
-rw-r--r--keyboards/latincompass/latin6rgb/config.h2
-rw-r--r--keyboards/latincompass/latin6rgb/latin6rgb.c2
-rw-r--r--keyboards/latincompass/latinpad/config.h2
-rw-r--r--keyboards/latincompass/latinpadble/config.h2
-rw-r--r--keyboards/linworks/fave65h/config.h2
-rw-r--r--keyboards/linworks/fave84h/config.h2
-rw-r--r--keyboards/linworks/fave87h/config.h2
-rw-r--r--keyboards/maple_computing/launchpad/keymaps/drashna/config.h2
-rw-r--r--keyboards/marksard/rhymestone/rev1/config.h4
-rw-r--r--keyboards/massdrop/alt/config_led.h2
-rw-r--r--keyboards/massdrop/alt/keymaps/jdelkins/keymap.c4
-rw-r--r--keyboards/massdrop/alt/keymaps/jdelkins/rgb_matrix.h2
-rw-r--r--keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c4
-rw-r--r--keyboards/massdrop/alt/keymaps/jdelkins_ss/rgb_matrix.h2
-rw-r--r--keyboards/massdrop/alt/keymaps/pregame/config.h2
-rw-r--r--keyboards/massdrop/alt/keymaps/pregame/keymap.c4
-rw-r--r--keyboards/massdrop/ctrl/config_led.h2
-rw-r--r--keyboards/massdrop/ctrl/keymaps/endgame/config.h2
-rw-r--r--keyboards/massdrop/ctrl/keymaps/endgame/keymap.c4
-rw-r--r--keyboards/massdrop/ctrl/keymaps/foxx1337/config.h2
-rw-r--r--keyboards/massdrop/ctrl/keymaps/foxx1337/hid_protocol.h2
-rw-r--r--keyboards/massdrop/ctrl/keymaps/foxx1337/keymap.c6
-rw-r--r--keyboards/massdrop/ctrl/keymaps/foxx1337/rgb_matrix_user.inc4
-rw-r--r--keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h2
-rw-r--r--keyboards/massdrop/ctrl/keymaps/matthewrobo/keymap.c4
-rw-r--r--keyboards/massdrop/ctrl/keymaps/xanimos/config.h2
-rw-r--r--keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c4
-rw-r--r--keyboards/matrix/m20add/config.h2
-rw-r--r--keyboards/matrix/m20add/rgb_ring.c4
-rw-r--r--keyboards/matrix/noah/config.h2
-rw-r--r--keyboards/matrix/noah/noah.c2
-rw-r--r--keyboards/mechlovin/adelais/rgb_led/rev1/config.h2
-rw-r--r--keyboards/mechlovin/adelais/rgb_led/rev2/config.h2
-rw-r--r--keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c2
-rw-r--r--keyboards/mechlovin/adelais/rgb_led/rev3/config.h2
-rw-r--r--keyboards/mechlovin/adelais/rgb_led/rev3/rev3.c2
-rw-r--r--keyboards/mechlovin/delphine/rgb_led/config.h2
-rw-r--r--keyboards/mechlovin/delphine/rgb_led/rgb_led.c2
-rw-r--r--keyboards/mechlovin/hannah60rgb/rev1/config.h2
-rw-r--r--keyboards/mechlovin/hannah60rgb/rev2/config.h2
-rw-r--r--keyboards/mechlovin/hannah60rgb/rev2/rev2.c2
-rw-r--r--keyboards/mechlovin/infinity87/rgb_rev1/config.h2
-rw-r--r--keyboards/mechlovin/infinity87/rgb_rev1/rgb_rev1.c2
-rw-r--r--keyboards/mechlovin/infinity875/config.h2
-rw-r--r--keyboards/mechlovin/infinity875/keymaps/default/rgb_matrix_user.inc54
-rw-r--r--keyboards/mechlovin/infinity875/keymaps/via/rgb_matrix_user.inc54
-rwxr-xr-xkeyboards/melgeek/mach80/rev1/config.h2
-rwxr-xr-xkeyboards/melgeek/mach80/rev1/rev1.c2
-rwxr-xr-xkeyboards/melgeek/mach80/rev2/config.h2
-rwxr-xr-xkeyboards/melgeek/mach80/rev2/rev2.c2
-rw-r--r--keyboards/melgeek/mj61/rev1/config.h2
-rw-r--r--keyboards/melgeek/mj61/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/mj61/rev2/config.h2
-rw-r--r--keyboards/melgeek/mj61/rev2/rev2.c2
-rw-r--r--keyboards/melgeek/mj63/rev1/config.h2
-rw-r--r--keyboards/melgeek/mj63/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/mj63/rev2/config.h2
-rw-r--r--keyboards/melgeek/mj63/rev2/rev2.c2
-rw-r--r--keyboards/melgeek/mj64/rev1/config.h2
-rw-r--r--keyboards/melgeek/mj64/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/mj64/rev2/config.h2
-rw-r--r--keyboards/melgeek/mj64/rev2/rev2.c2
-rw-r--r--keyboards/melgeek/mj64/rev3/config.h2
-rw-r--r--keyboards/melgeek/mj64/rev3/rev3.c2
-rw-r--r--keyboards/melgeek/mj65/rev3/config.h2
-rw-r--r--keyboards/melgeek/mj65/rev3/rev3.c2
-rwxr-xr-xkeyboards/melgeek/mojo68/rev1/config.h2
-rwxr-xr-xkeyboards/melgeek/mojo68/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/mojo75/rev1/config.h2
-rw-r--r--keyboards/melgeek/mojo75/rev1/rev1.c2
-rwxr-xr-xkeyboards/melgeek/tegic/rev1/config.h2
-rwxr-xr-xkeyboards/melgeek/tegic/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/z70ultra/config.h2
-rw-r--r--keyboards/melgeek/z70ultra/z70ultra.c2
-rw-r--r--keyboards/merge/um70/config.h2
-rw-r--r--keyboards/merge/um80/config.h2
-rw-r--r--keyboards/miller/gm862/config.h2
-rw-r--r--keyboards/miller/gm862/gm862.c2
-rw-r--r--keyboards/ml/gas75/config.h2
-rw-r--r--keyboards/momokai/tap_trio/config.h2
-rw-r--r--keyboards/monstargear/xo87/rgb/config.h2
-rw-r--r--keyboards/monstargear/xo87/solderable/config.h2
-rw-r--r--keyboards/moonlander/config.h2
-rw-r--r--keyboards/moonlander/moonlander.c2
-rw-r--r--keyboards/mss_studio/m63_rgb/config.h2
-rw-r--r--keyboards/mss_studio/m64_rgb/config.h2
-rw-r--r--keyboards/mt/mt64rgb/config.h2
-rw-r--r--keyboards/mt/mt64rgb/mt64rgb.c2
-rw-r--r--keyboards/mt/mt84/config.h2
-rw-r--r--keyboards/mt/mt84/mt84.c2
-rw-r--r--keyboards/mwstudio/mw65_rgb/config.h2
-rw-r--r--keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/custom_gradient.c2
-rw-r--r--keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h2
-rw-r--r--keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/random_breath_rainbow.c6
-rw-r--r--keyboards/mwstudio/mw75/config.h2
-rw-r--r--keyboards/mwstudio/mw75r2/config.h2
-rw-r--r--keyboards/nack/config.h2
-rw-r--r--keyboards/neson_design/700e/700e.c20
-rw-r--r--keyboards/neson_design/700e/config.h2
-rw-r--r--keyboards/neson_design/n6/config.h2
-rw-r--r--keyboards/neson_design/n6/n6.c14
-rw-r--r--keyboards/novelkeys/nk20/config.h2
-rwxr-xr-xkeyboards/novelkeys/nk65/config.h2
-rwxr-xr-xkeyboards/novelkeys/nk65b/config.h2
-rwxr-xr-xkeyboards/novelkeys/nk87/config.h2
-rw-r--r--keyboards/novelkeys/nk87b/config.h2
-rw-r--r--keyboards/omkbd/runner3680/5x6_5x8/config.h2
-rw-r--r--keyboards/opendeck/32/rev1/config.h2
-rw-r--r--keyboards/opendeck/32/rev1/rev1.c2
-rw-r--r--keyboards/owlab/voice65/hotswap/config.h2
-rw-r--r--keyboards/owlab/voice65/hotswap/hotswap.c2
-rw-r--r--keyboards/owlab/voice65/soldered/config.h2
-rw-r--r--keyboards/owlab/voice65/soldered/soldered.c2
-rw-r--r--keyboards/paprikman/albacore/config.h2
-rw-r--r--keyboards/percent/canoe_gen2/config.h2
-rw-r--r--keyboards/phase_studio/titan65/hotswap/config.h2
-rw-r--r--keyboards/planck/ez/config.h2
-rw-r--r--keyboards/planck/ez/ez.c2
-rw-r--r--keyboards/planck/keymaps/charlesrocket/keymap.c4
-rw-r--r--keyboards/planck/keymaps/oryx/keymap.c4
-rw-r--r--keyboards/planck/keymaps/tom/keymap.c6
-rw-r--r--keyboards/planck/keymaps/tylerwince/keymap.c4
-rw-r--r--keyboards/planck/light/config.h2
-rw-r--r--keyboards/planck/light/light.c2
-rw-r--r--keyboards/planck/rev6/config.h2
-rw-r--r--keyboards/planck/rev6_drop/config.h2
-rw-r--r--keyboards/playkbtw/pk64rgb/config.h2
-rw-r--r--keyboards/playkbtw/pk64rgb/pk64rgb.c2
-rw-r--r--keyboards/pom_keyboards/tnln95/config.h2
-rw-r--r--keyboards/preonic/rev3/config.h2
-rw-r--r--keyboards/preonic/rev3_drop/config.h2
-rw-r--r--keyboards/qpockets/space_space/rev2/config.h2
-rw-r--r--keyboards/rgbkb/mun/config.h2
-rw-r--r--keyboards/rgbkb/pan/config.h2
-rw-r--r--keyboards/rgbkb/pan/pan.c4
-rw-r--r--keyboards/rgbkb/sol/rev1/config.h2
-rw-r--r--keyboards/rgbkb/sol/rev2/config.h2
-rw-r--r--keyboards/rgbkb/sol3/config.h2
-rw-r--r--keyboards/rgbkb/zygomorph/rev1/config.h2
-rw-r--r--keyboards/ryanskidmore/rskeys100/config.h2
-rw-r--r--keyboards/s_ol/0xc_pad/config.h2
-rw-r--r--keyboards/salicylic_acid3/naked48/keymaps/salicylic/config.h4
-rw-r--r--keyboards/salicylic_acid3/naked48/keymaps/via_rgb_matrix/config.h4
-rw-r--r--keyboards/salicylic_acid3/setta21/keymaps/salicylic/config.h4
-rw-r--r--keyboards/sawnsprojects/satxri6key/config.h2
-rw-r--r--keyboards/senselessclay/ck60/config.h2
-rw-r--r--keyboards/sets3n/kk980/config.h2
-rw-r--r--keyboards/silverbullet44/config.h2
-rw-r--r--keyboards/skmt/15k/config.h2
-rw-r--r--keyboards/smallkeyboard/config.h2
-rw-r--r--keyboards/smallkeyboard/smallkeyboard.c2
-rw-r--r--keyboards/sofle/keymaps/devdev/config.h4
-rw-r--r--keyboards/sofle/keymaps/killmaster/config.h2
-rw-r--r--keyboards/sofle/keymaps/rgb_default/config.h4
-rw-r--r--keyboards/sofle/keymaps/via/config.h2
-rw-r--r--keyboards/sowbug/68keys/config.h2
-rw-r--r--keyboards/sowbug/ansi_tkl/config.h2
-rwxr-xr-xkeyboards/spaceholdings/nebula12/config.h2
-rwxr-xr-xkeyboards/spaceholdings/nebula12b/config.h2
-rwxr-xr-xkeyboards/spaceholdings/nebula68/config.h2
-rwxr-xr-xkeyboards/spaceholdings/nebula68b/config.h2
-rwxr-xr-xkeyboards/spaceholdings/nebula68b/hs/config.h4
-rw-r--r--keyboards/splitkb/kyria/rev1/config.h2
-rw-r--r--keyboards/splitkb/kyria/rev2/config.h2
-rw-r--r--keyboards/synapse/config.h2
-rw-r--r--keyboards/system76/launch_1/config.h2
-rw-r--r--keyboards/system76/launch_1/rgb_matrix_kb.inc12
-rw-r--r--keyboards/system76/system76_ec.c6
-rw-r--r--keyboards/terrazzo/config.h2
-rw-r--r--keyboards/terrazzo/terrazzo.c8
-rw-r--r--keyboards/tkc/portico/config.h4
-rw-r--r--keyboards/tkc/portico/portico.c2
-rw-r--r--keyboards/tkc/portico68v2/config.h2
-rw-r--r--keyboards/tkc/portico68v2/portico68v2.c2
-rw-r--r--keyboards/tkc/portico75/config.h4
-rw-r--r--keyboards/tkc/portico75/portico75.c2
-rw-r--r--keyboards/tominabox1/le_chiffre/config.h2
-rw-r--r--keyboards/tzarc/djinn/rev1/config.h2
-rw-r--r--keyboards/tzarc/djinn/rev2/config.h2
-rw-r--r--keyboards/ungodly/launch_pad/config.h4
-rw-r--r--keyboards/wekey/we27/config.h2
-rw-r--r--keyboards/wilba_tech/rama_works_kara/config.h2
-rw-r--r--keyboards/wilba_tech/rama_works_koyu/config.h2
-rw-r--r--keyboards/wilba_tech/rama_works_m10_c/config.h2
-rw-r--r--keyboards/wilba_tech/rama_works_m50_a/config.h2
-rw-r--r--keyboards/wilba_tech/rama_works_m60_a/config.h2
-rw-r--r--keyboards/wilba_tech/rama_works_m65_b/config.h2
-rw-r--r--keyboards/wilba_tech/rama_works_m65_bx/config.h2
-rw-r--r--keyboards/wilba_tech/rama_works_u80_a/config.h2
-rw-r--r--keyboards/wilba_tech/wt60_b/config.h2
-rw-r--r--keyboards/wilba_tech/wt60_bx/config.h2
-rw-r--r--keyboards/wilba_tech/wt60_c/config.h2
-rw-r--r--keyboards/wilba_tech/wt_rgb_backlight.c44
-rw-r--r--keyboards/wilba_tech/zeal60/config.h2
-rw-r--r--keyboards/wilba_tech/zeal65/config.h2
-rw-r--r--keyboards/winry/winry315/config.h2
-rw-r--r--keyboards/winry/winry315/winry315.c2
-rw-r--r--keyboards/work_louder/loop/config.h2
-rw-r--r--keyboards/work_louder/micro/config.h2
-rw-r--r--keyboards/work_louder/nano/config.h2
-rw-r--r--keyboards/work_louder/work_board/config.h2
-rw-r--r--keyboards/xbows/knight/config.h2
-rw-r--r--keyboards/xbows/knight/knight.c2
-rw-r--r--keyboards/xbows/knight_plus/config.h2
-rw-r--r--keyboards/xbows/knight_plus/knight_plus.c2
-rw-r--r--keyboards/xbows/nature/config.h2
-rw-r--r--keyboards/xbows/nature/nature.c2
-rw-r--r--keyboards/xbows/numpad/config.h2
-rw-r--r--keyboards/xbows/numpad/numpad.c2
-rw-r--r--keyboards/xbows/ranger/config.h2
-rw-r--r--keyboards/xbows/ranger/ranger.c2
-rw-r--r--keyboards/xbows/woody/config.h2
-rw-r--r--keyboards/xbows/woody/woody.c2
-rw-r--r--keyboards/xelus/dawn60/rev1/config.h2
-rw-r--r--keyboards/xelus/dawn60/rev1_qmk/config.h2
-rw-r--r--keyboards/xelus/dawn60/rev1_qmk/rev1_qmk.c2
-rwxr-xr-xkeyboards/xelus/la_plus/config.h2
-rw-r--r--keyboards/xelus/pachi/rgb/rev1/config.h4
-rw-r--r--keyboards/xelus/pachi/rgb/rev1/rev1.c2
-rw-r--r--keyboards/xelus/pachi/rgb/rev2/config.h4
-rw-r--r--keyboards/xelus/pachi/rgb/rev2/rev2.c2
-rw-r--r--keyboards/xelus/valor/rev2/config.h2
-rw-r--r--keyboards/yandrstudio/nz64/config.h4
-rw-r--r--keyboards/yandrstudio/nz67v2/config.h2
-rw-r--r--keyboards/yandrstudio/tg67/config.h2
-rw-r--r--keyboards/yanghu/unicorne/config.h2
-rw-r--r--keyboards/yncognito/batpad/config.h2
-rw-r--r--keyboards/yushakobo/quick17/config.h4
-rw-r--r--keyboards/yushakobo/quick17/rgb_matrix_kb.inc2
-rw-r--r--layouts/community/ortho_3x10/bbaserdem/config.h2
-rw-r--r--layouts/community/ortho_4x12/drashna/config.h2
-rw-r--r--layouts/community/split_3x5_3/bbaserdem/config.h6
-rw-r--r--layouts/community/split_3x6_3/drashna/config.h2
-rw-r--r--quantum/led_matrix/led_matrix.c8
-rw-r--r--quantum/led_matrix/led_matrix.h16
-rw-r--r--quantum/led_matrix/led_matrix_drivers.c2
-rw-r--r--quantum/led_matrix/led_matrix_types.h4
-rw-r--r--quantum/rgb_matrix/animations/jellybean_raindrops_anim.h2
-rw-r--r--quantum/rgb_matrix/animations/pixel_flow_anim.h4
-rw-r--r--quantum/rgb_matrix/animations/pixel_rain_anim.h2
-rw-r--r--quantum/rgb_matrix/animations/raindrops_anim.h2
-rw-r--r--quantum/rgb_matrix/rgb_matrix.c8
-rw-r--r--quantum/rgb_matrix/rgb_matrix.h16
-rw-r--r--quantum/rgb_matrix/rgb_matrix_drivers.c6
-rw-r--r--quantum/rgb_matrix/rgb_matrix_types.h4
-rw-r--r--users/brandonschlack/rgb_bs.c2
-rw-r--r--users/byungyoonc/saturated_solid_multisplash.h2
-rw-r--r--users/curry/rgb_matrix_user.c4
-rw-r--r--users/drashna/rgb/rgb_matrix_stuff.c4
-rw-r--r--users/tominabox1/config.h2
-rw-r--r--users/tominabox1/dimple_rgb.c10
-rw-r--r--users/tominabox1/tominabox1.c4
577 files changed, 836 insertions, 831 deletions
diff --git a/docs/feature_led_matrix.md b/docs/feature_led_matrix.md
index 563fa149a2..cc036eb80f 100644
--- a/docs/feature_led_matrix.md
+++ b/docs/feature_led_matrix.md
@@ -22,7 +22,7 @@ You can use between 1 and 4 IS31FL3731 IC's. Do not specify `LED_DRIVER_ADDR_<N>
22| `ISSI_TIMEOUT` | (Optional) How long to wait for i2c messages, in milliseconds | 100 | 22| `ISSI_TIMEOUT` | (Optional) How long to wait for i2c messages, in milliseconds | 100 |
23| `ISSI_PERSISTENCE` | (Optional) Retry failed messages this many times | 0 | 23| `ISSI_PERSISTENCE` | (Optional) Retry failed messages this many times | 0 |
24| `LED_DRIVER_COUNT` | (Required) How many LED driver IC's are present | | 24| `LED_DRIVER_COUNT` | (Required) How many LED driver IC's are present | |
25| `DRIVER_LED_TOTAL` | (Required) How many LED lights are present across all drivers | | 25| `LED_MATRIX_LED_COUNT` | (Required) How many LED lights are present across all drivers | |
26| `LED_DRIVER_ADDR_1` | (Required) Address for the first LED driver | | 26| `LED_DRIVER_ADDR_1` | (Required) Address for the first LED driver | |
27| `LED_DRIVER_ADDR_2` | (Optional) Address for the second LED driver | | 27| `LED_DRIVER_ADDR_2` | (Optional) Address for the second LED driver | |
28| `LED_DRIVER_ADDR_3` | (Optional) Address for the third LED driver | | 28| `LED_DRIVER_ADDR_3` | (Optional) Address for the third LED driver | |
@@ -44,17 +44,17 @@ Here is an example using 2 drivers.
44#define LED_DRIVER_COUNT 2 44#define LED_DRIVER_COUNT 2
45#define LED_DRIVER_1_LED_TOTAL 25 45#define LED_DRIVER_1_LED_TOTAL 25
46#define LED_DRIVER_2_LED_TOTAL 24 46#define LED_DRIVER_2_LED_TOTAL 24
47#define DRIVER_LED_TOTAL (LED_DRIVER_1_LED_TOTAL + LED_DRIVER_2_LED_TOTAL) 47#define LED_MATRIX_LED_COUNT (LED_DRIVER_1_LED_TOTAL + LED_DRIVER_2_LED_TOTAL)
48``` 48```
49 49
50!> Note the parentheses, this is so when `LED_DRIVER_LED_TOTAL` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (LED_DRIVER_1_LED_TOTAL + LED_DRIVER_2_LED_TOTAL)` will give very different results than `rand() % LED_DRIVER_1_LED_TOTAL + LED_DRIVER_2_LED_TOTAL`. 50!> Note the parentheses, this is so when `LED_MATRIX_LED_COUNT` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (LED_DRIVER_1_LED_TOTAL + LED_DRIVER_2_LED_TOTAL)` will give very different results than `rand() % LED_DRIVER_1_LED_TOTAL + LED_DRIVER_2_LED_TOTAL`.
51 51
52For split keyboards using `LED_MATRIX_SPLIT` with an LED driver, you can either have the same driver address or different driver addresses. If using different addresses, use `DRIVER_ADDR_1` for one and `DRIVER_ADDR_2` for the other one. Then, in `g_is31_leds`, fill out the correct driver index (0 or 1). If using one address, use `DRIVER_ADDR_1` for both, and use index 0 for `g_is31_leds`. 52For split keyboards using `LED_MATRIX_SPLIT` with an LED driver, you can either have the same driver address or different driver addresses. If using different addresses, use `DRIVER_ADDR_1` for one and `DRIVER_ADDR_2` for the other one. Then, in `g_is31_leds`, fill out the correct driver index (0 or 1). If using one address, use `DRIVER_ADDR_1` for both, and use index 0 for `g_is31_leds`.
53 53
54Define these arrays listing all the LEDs in your `<keyboard>.c`: 54Define these arrays listing all the LEDs in your `<keyboard>.c`:
55 55
56```c 56```c
57const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 57const is31_led PROGMEM g_is31_leds[LED_MATRIX_LED_COUNT] = {
58/* Refer to IS31 manual for these locations 58/* Refer to IS31 manual for these locations
59 * driver 59 * driver
60 * | LED address 60 * | LED address
@@ -95,7 +95,7 @@ Configure the hardware via your `config.h`:
95| `ISSI_TIMEOUT` | (Optional) How long to wait for i2c messages, in milliseconds | 100 | 95| `ISSI_TIMEOUT` | (Optional) How long to wait for i2c messages, in milliseconds | 100 |
96| `ISSI_PERSISTENCE` | (Optional) Retry failed messages this many times | 0 | 96| `ISSI_PERSISTENCE` | (Optional) Retry failed messages this many times | 0 |
97| `DRIVER_COUNT` | (Required) How many LED driver IC's are present | | 97| `DRIVER_COUNT` | (Required) How many LED driver IC's are present | |
98| `DRIVER_LED_TOTAL` | (Required) How many LED lights are present across all drivers | | 98| `LED_MATRIX_LED_COUNT` | (Required) How many LED lights are present across all drivers | |
99| `DRIVER_ADDR_1` | (Optional) Address for the first LED driver | | 99| `DRIVER_ADDR_1` | (Optional) Address for the first LED driver | |
100| `DRIVER_ADDR_<N>` | (Required) Address for the additional LED drivers | | 100| `DRIVER_ADDR_<N>` | (Required) Address for the additional LED drivers | |
101| `ISSI_SSR_<N>` | (Optional) Configuration for the Spread Spectrum Register | | 101| `ISSI_SSR_<N>` | (Optional) Configuration for the Spread Spectrum Register | |
@@ -130,16 +130,16 @@ Here is an example using 2 drivers.
130#define DRIVER_COUNT 2 130#define DRIVER_COUNT 2
131#define DRIVER_1_LED_TOTAL 66 131#define DRIVER_1_LED_TOTAL 66
132#define DRIVER_2_LED_TOTAL 42 132#define DRIVER_2_LED_TOTAL 42
133#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 133#define LED_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
134``` 134```
135!> Note the parentheses, this is so when `DRIVER_LED_TOTAL` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`. 135!> Note the parentheses, this is so when `LED_MATRIX_LED_COUNT` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`.
136 136
137Currently only 4 drivers are supported, but it would be trivial to support for more. Note that using a combination of different drivers is not supported. All drivers must be of the same model. 137Currently only 4 drivers are supported, but it would be trivial to support for more. Note that using a combination of different drivers is not supported. All drivers must be of the same model.
138 138
139Define these arrays listing all the LEDs in your `<keyboard>.c`: 139Define these arrays listing all the LEDs in your `<keyboard>.c`:
140 140
141```c 141```c
142const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 142const is31_led __flash g_is31_leds[LED_MATRIX_LED_COUNT] = {
143/* Refer to IS31 manual for these locations 143/* Refer to IS31 manual for these locations
144 * driver 144 * driver
145 * | LED address 145 * | LED address
@@ -367,7 +367,7 @@ For inspiration and examples, check out the built-in effects under `quantum/led_
367#define LED_DISABLE_TIMEOUT 0 // number of milliseconds to wait until led automatically turns off 367#define LED_DISABLE_TIMEOUT 0 // number of milliseconds to wait until led automatically turns off
368#define LED_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects 368#define LED_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects
369#define LED_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 369#define LED_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
370#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) 370#define LED_MATRIX_LED_PROCESS_LIMIT (LED_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
371#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) 371#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)
372#define LED_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs 372#define LED_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs
373#define LED_MATRIX_STARTUP_MODE LED_MATRIX_SOLID // Sets the default mode, if none has been set 373#define LED_MATRIX_STARTUP_MODE LED_MATRIX_SOLID // Sets the default mode, if none has been set
@@ -391,7 +391,7 @@ Where `28` is an unused index from `eeconfig.h`.
391|Function |Description | 391|Function |Description |
392|--------------------------------------------|-------------| 392|--------------------------------------------|-------------|
393|`led_matrix_set_value_all(v)` |Set all of the LEDs to the given value, where `v` is between 0 and 255 (not written to EEPROM) | 393|`led_matrix_set_value_all(v)` |Set all of the LEDs to the given value, where `v` is between 0 and 255 (not written to EEPROM) |
394|`led_matrix_set_value(index, v)` |Set a single LED to the given value, where `v` is between 0 and 255, and `index` is between 0 and `DRIVER_LED_TOTAL` (not written to EEPROM) | 394|`led_matrix_set_value(index, v)` |Set a single LED to the given value, where `v` is between 0 and 255, and `index` is between 0 and `LED_MATRIX_LED_COUNT` (not written to EEPROM) |
395 395
396### Disable/Enable Effects :id=disable-enable-effects 396### Disable/Enable Effects :id=disable-enable-effects
397|Function |Description | 397|Function |Description |
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md
index 13c63ac94c..11b9b1c5bc 100644
--- a/docs/feature_rgb_matrix.md
+++ b/docs/feature_rgb_matrix.md
@@ -23,7 +23,7 @@ You can use between 1 and 4 IS31FL3731 IC's. Do not specify `DRIVER_ADDR_<N>` de
23| `ISSI_PERSISTENCE` | (Optional) Retry failed messages this many times | 0 | 23| `ISSI_PERSISTENCE` | (Optional) Retry failed messages this many times | 0 |
24| `ISSI_3731_DEGHOST` | (Optional) Set this define to enable de-ghosting by halving Vcc during blanking time | | 24| `ISSI_3731_DEGHOST` | (Optional) Set this define to enable de-ghosting by halving Vcc during blanking time | |
25| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | | 25| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
26| `DRIVER_LED_TOTAL` | (Required) How many RGB lights are present across all drivers | | 26| `RGB_MATRIX_LED_COUNT` | (Required) How many RGB lights are present across all drivers | |
27| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | | 27| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | |
28| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | | 28| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | |
29| `DRIVER_ADDR_3` | (Optional) Address for the third RGB driver | | 29| `DRIVER_ADDR_3` | (Optional) Address for the third RGB driver | |
@@ -45,17 +45,17 @@ Here is an example using 2 drivers.
45#define DRIVER_COUNT 2 45#define DRIVER_COUNT 2
46#define DRIVER_1_LED_TOTAL 25 46#define DRIVER_1_LED_TOTAL 25
47#define DRIVER_2_LED_TOTAL 24 47#define DRIVER_2_LED_TOTAL 24
48#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 48#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
49``` 49```
50 50
51!> Note the parentheses, this is so when `DRIVER_LED_TOTAL` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`. 51!> Note the parentheses, this is so when `RGB_MATRIX_LED_COUNT` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`.
52 52
53For split keyboards using `RGB_MATRIX_SPLIT` with an LED driver, you can either have the same driver address or different driver addresses. If using different addresses, use `DRIVER_ADDR_1` for one and `DRIVER_ADDR_2` for the other one. Then, in `g_is31_leds`, fill out the correct driver index (0 or 1). If using one address, use `DRIVER_ADDR_1` for both, and use index 0 for `g_is31_leds`. 53For split keyboards using `RGB_MATRIX_SPLIT` with an LED driver, you can either have the same driver address or different driver addresses. If using different addresses, use `DRIVER_ADDR_1` for one and `DRIVER_ADDR_2` for the other one. Then, in `g_is31_leds`, fill out the correct driver index (0 or 1). If using one address, use `DRIVER_ADDR_1` for both, and use index 0 for `g_is31_leds`.
54 54
55Define these arrays listing all the LEDs in your `<keyboard>.c`: 55Define these arrays listing all the LEDs in your `<keyboard>.c`:
56 56
57```c 57```c
58const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 58const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
59/* Refer to IS31 manual for these locations 59/* Refer to IS31 manual for these locations
60 * driver 60 * driver
61 * | R location 61 * | R location
@@ -90,7 +90,7 @@ You can use between 1 and 4 IS31FL3733 IC's. Do not specify `DRIVER_ADDR_<N>` de
90| `ISSI_SWPULLUP` | (Optional) Set the value of the SWx lines on-chip de-ghosting resistors | PUR_0R (Disabled) | 90| `ISSI_SWPULLUP` | (Optional) Set the value of the SWx lines on-chip de-ghosting resistors | PUR_0R (Disabled) |
91| `ISSI_CSPULLUP` | (Optional) Set the value of the CSx lines on-chip de-ghosting resistors | PUR_0R (Disabled) | 91| `ISSI_CSPULLUP` | (Optional) Set the value of the CSx lines on-chip de-ghosting resistors | PUR_0R (Disabled) |
92| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | | 92| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
93| `DRIVER_LED_TOTAL` | (Required) How many RGB lights are present across all drivers | | 93| `RGB_MATRIX_LED_COUNT` | (Required) How many RGB lights are present across all drivers | |
94| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | | 94| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | |
95| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | | 95| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | |
96| `DRIVER_ADDR_3` | (Optional) Address for the third RGB driver | | 96| `DRIVER_ADDR_3` | (Optional) Address for the third RGB driver | |
@@ -131,17 +131,17 @@ Here is an example using 2 drivers.
131#define DRIVER_COUNT 2 131#define DRIVER_COUNT 2
132#define DRIVER_1_LED_TOTAL 58 132#define DRIVER_1_LED_TOTAL 58
133#define DRIVER_2_LED_TOTAL 10 133#define DRIVER_2_LED_TOTAL 10
134#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 134#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
135``` 135```
136 136
137!> Note the parentheses, this is so when `DRIVER_LED_TOTAL` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`. 137!> Note the parentheses, this is so when `RGB_MATRIX_LED_COUNT` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`.
138 138
139Currently only 4 drivers are supported, but it would be trivial to support all 8 combinations. 139Currently only 4 drivers are supported, but it would be trivial to support all 8 combinations.
140 140
141Define these arrays listing all the LEDs in your `<keyboard>.c`: 141Define these arrays listing all the LEDs in your `<keyboard>.c`:
142 142
143```c 143```c
144const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 144const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
145/* Refer to IS31 manual for these locations 145/* Refer to IS31 manual for these locations
146 * driver 146 * driver
147 * | R location 147 * | R location
@@ -177,7 +177,7 @@ Configure the hardware via your `config.h`:
177| `ISSI_SWPULLUP` | (Optional) Set the value of the SWx lines on-chip de-ghosting resistors | PUR_0R (Disabled) | 177| `ISSI_SWPULLUP` | (Optional) Set the value of the SWx lines on-chip de-ghosting resistors | PUR_0R (Disabled) |
178| `ISSI_CSPULLUP` | (Optional) Set the value of the CSx lines on-chip de-ghosting resistors | PUR_0R (Disabled) | 178| `ISSI_CSPULLUP` | (Optional) Set the value of the CSx lines on-chip de-ghosting resistors | PUR_0R (Disabled) |
179| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | | 179| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
180| `DRIVER_LED_TOTAL` | (Required) How many RGB lights are present across all drivers | | 180| `RGB_MATRIX_LED_COUNT` | (Required) How many RGB lights are present across all drivers | |
181| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | | 181| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | |
182| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | | 182| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | |
183 183
@@ -212,16 +212,16 @@ Here is an example using 2 drivers.
212#define DRIVER_COUNT 2 212#define DRIVER_COUNT 2
213#define DRIVER_1_LED_TOTAL 30 213#define DRIVER_1_LED_TOTAL 30
214#define DRIVER_2_LED_TOTAL 36 214#define DRIVER_2_LED_TOTAL 36
215#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 215#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
216``` 216```
217!> Note the parentheses, this is so when `DRIVER_LED_TOTAL` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`. 217!> Note the parentheses, this is so when `RGB_MATRIX_LED_COUNT` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`.
218 218
219Currently only 2 drivers are supported, but it would be trivial to support all 4 combinations. 219Currently only 2 drivers are supported, but it would be trivial to support all 4 combinations.
220 220
221Define these arrays listing all the LEDs in your `<keyboard>.c`: 221Define these arrays listing all the LEDs in your `<keyboard>.c`:
222 222
223```c 223```c
224const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 224const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
225/* Refer to IS31 manual for these locations 225/* Refer to IS31 manual for these locations
226 * driver 226 * driver
227 * | R location 227 * | R location
@@ -263,7 +263,7 @@ Configure the hardware via your `config.h`:
263| `ISSI_TIMEOUT` | (Optional) How long to wait for i2c messages, in milliseconds | 100 | 263| `ISSI_TIMEOUT` | (Optional) How long to wait for i2c messages, in milliseconds | 100 |
264| `ISSI_PERSISTENCE` | (Optional) Retry failed messages this many times | 0 | 264| `ISSI_PERSISTENCE` | (Optional) Retry failed messages this many times | 0 |
265| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | | 265| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
266| `DRIVER_LED_TOTAL` | (Required) How many RGB lights are present across all drivers | | 266| `RGB_MATRIX_LED_COUNT` | (Required) How many RGB lights are present across all drivers | |
267| `DRIVER_ADDR_1` | (Optional) Address for the first RGB driver | | 267| `DRIVER_ADDR_1` | (Optional) Address for the first RGB driver | |
268| `DRIVER_ADDR_<N>` | (Required) Address for the additional RGB drivers | | 268| `DRIVER_ADDR_<N>` | (Required) Address for the additional RGB drivers | |
269| `ISSI_SSR_<N>` | (Optional) Configuration for the Spread Spectrum Register | | 269| `ISSI_SSR_<N>` | (Optional) Configuration for the Spread Spectrum Register | |
@@ -300,17 +300,17 @@ Here is an example using 2 drivers.
300#define DRIVER_COUNT 2 300#define DRIVER_COUNT 2
301#define DRIVER_1_LED_TOTAL 66 301#define DRIVER_1_LED_TOTAL 66
302#define DRIVER_2_LED_TOTAL 42 302#define DRIVER_2_LED_TOTAL 42
303#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 303#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
304``` 304```
305 305
306!> Note the parentheses, this is so when `DRIVER_LED_TOTAL` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`. 306!> Note the parentheses, this is so when `RGB_MATRIX_LED_COUNT` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`.
307 307
308Currently only 4 drivers are supported, but it would be trivial to support for more. Note that using a combination of different drivers is not supported. All drivers must be of the same model. 308Currently only 4 drivers are supported, but it would be trivial to support for more. Note that using a combination of different drivers is not supported. All drivers must be of the same model.
309 309
310Define these arrays listing all the LEDs in your `<keyboard>.c`: 310Define these arrays listing all the LEDs in your `<keyboard>.c`:
311 311
312```c 312```c
313const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 313const is31_led __flash g_is31_leds[RGB_MATRIX_LED_COUNT] = {
314/* Refer to IS31 manual for these locations 314/* Refer to IS31 manual for these locations
315 * driver 315 * driver
316 * | R location 316 * | R location
@@ -361,7 +361,7 @@ Configure the hardware via your `config.h`:
361// The pin connected to the data pin of the LEDs 361// The pin connected to the data pin of the LEDs
362#define RGB_DI_PIN D7 362#define RGB_DI_PIN D7
363// The number of LEDs connected 363// The number of LEDs connected
364#define DRIVER_LED_TOTAL 70 364#define RGB_MATRIX_LED_COUNT 70
365``` 365```
366 366
367?> There are additional configuration options for ARM controllers that offer increased performance over the default bitbang driver. Please see [WS2812 Driver](ws2812_driver.md) for more information. 367?> There are additional configuration options for ARM controllers that offer increased performance over the default bitbang driver. Please see [WS2812 Driver](ws2812_driver.md) for more information.
@@ -385,7 +385,7 @@ Configure the hardware via your `config.h`:
385// The pin connected to the clock pin of the LEDs 385// The pin connected to the clock pin of the LEDs
386#define RGB_CI_PIN D6 386#define RGB_CI_PIN D6
387// The number of LEDs connected 387// The number of LEDs connected
388#define DRIVER_LED_TOTAL 70 388#define RGB_MATRIX_LED_COUNT 70
389``` 389```
390 390
391--- 391---
@@ -408,7 +408,7 @@ You can use up to 2 AW20216 IC's. Do not specify `DRIVER_<N>_xxx` defines for IC
408| `DRIVER_1_LED_TOTAL` | (Required) How many RGB lights are connected to first RGB driver | | 408| `DRIVER_1_LED_TOTAL` | (Required) How many RGB lights are connected to first RGB driver | |
409| `DRIVER_2_LED_TOTAL` | (Optional) How many RGB lights are connected to second RGB driver | | 409| `DRIVER_2_LED_TOTAL` | (Optional) How many RGB lights are connected to second RGB driver | |
410| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | | 410| `DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
411| `DRIVER_LED_TOTAL` | (Required) How many RGB lights are present across all drivers | | 411| `RGB_MATRIX_LED_COUNT` | (Required) How many RGB lights are present across all drivers | |
412| `AW_SCALING_MAX` | (Optional) LED current scaling value (0-255, higher values mean LED is brighter at full PWM) | 150 | 412| `AW_SCALING_MAX` | (Optional) LED current scaling value (0-255, higher values mean LED is brighter at full PWM) | 150 |
413| `AW_GLOBAL_CURRENT_MAX` | (Optional) Driver global current limit (0-255, higher values means the driver may consume more power) | 150 | 413| `AW_GLOBAL_CURRENT_MAX` | (Optional) Driver global current limit (0-255, higher values means the driver may consume more power) | 150 |
414| `AW_SPI_MODE` | (Optional) Mode for SPI communication (0-3, defines polarity and phase of the clock) | 3 | 414| `AW_SPI_MODE` | (Optional) Mode for SPI communication (0-3, defines polarity and phase of the clock) | 3 |
@@ -426,15 +426,15 @@ Here is an example using 2 drivers.
426#define DRIVER_COUNT 2 426#define DRIVER_COUNT 2
427#define DRIVER_1_LED_TOTAL 66 427#define DRIVER_1_LED_TOTAL 66
428#define DRIVER_2_LED_TOTAL 32 428#define DRIVER_2_LED_TOTAL 32
429#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 429#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
430``` 430```
431 431
432!> Note the parentheses, this is so when `DRIVER_LED_TOTAL` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`. 432!> Note the parentheses, this is so when `RGB_MATRIX_LED_COUNT` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`.
433 433
434Define these arrays listing all the LEDs in your `<keyboard>.c`: 434Define these arrays listing all the LEDs in your `<keyboard>.c`:
435 435
436```c 436```c
437const aw_led PROGMEM g_aw_leds[DRIVER_LED_TOTAL] = { 437const aw_led PROGMEM g_aw_leds[RGB_MATRIX_LED_COUNT] = {
438/* Each AW20216 channel is controlled by a register at some offset between 0x00 438/* Each AW20216 channel is controlled by a register at some offset between 0x00
439 * and 0xD7 inclusive. 439 * and 0xD7 inclusive.
440 * See drivers/awinic/aw20216.h for the mapping between register offsets and 440 * See drivers/awinic/aw20216.h for the mapping between register offsets and
@@ -794,7 +794,7 @@ These are defined in [`color.h`](https://github.com/qmk/qmk_firmware/blob/master
794#define RGB_DISABLE_TIMEOUT 0 // number of milliseconds to wait until rgb automatically turns off 794#define RGB_DISABLE_TIMEOUT 0 // number of milliseconds to wait until rgb automatically turns off
795#define RGB_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects 795#define RGB_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects
796#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 796#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
797#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) 797#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)
798#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) 798#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)
799#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 799#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
800#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set 800#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
@@ -824,7 +824,7 @@ Where `28` is an unused index from `eeconfig.h`.
824|Function |Description | 824|Function |Description |
825|--------------------------------------------|-------------| 825|--------------------------------------------|-------------|
826|`rgb_matrix_set_color_all(r, g, b)` |Set all of the LEDs to the given RGB value, where `r`/`g`/`b` are between 0 and 255 (not written to EEPROM) | 826|`rgb_matrix_set_color_all(r, g, b)` |Set all of the LEDs to the given RGB value, where `r`/`g`/`b` are between 0 and 255 (not written to EEPROM) |
827|`rgb_matrix_set_color(index, r, g, b)` |Set a single LED to the given RGB value, where `r`/`g`/`b` are between 0 and 255, and `index` is between 0 and `DRIVER_LED_TOTAL` (not written to EEPROM) | 827|`rgb_matrix_set_color(index, r, g, b)` |Set a single LED to the given RGB value, where `r`/`g`/`b` are between 0 and 255, and `index` is between 0 and `RGB_MATRIX_LED_COUNT` (not written to EEPROM) |
828 828
829### Disable/Enable Effects :id=disable-enable-effects 829### Disable/Enable Effects :id=disable-enable-effects
830|Function |Description | 830|Function |Description |
diff --git a/drivers/led/aw20216.c b/drivers/led/aw20216.c
index 55083936ef..cbb0b60774 100644
--- a/drivers/led/aw20216.c
+++ b/drivers/led/aw20216.c
@@ -133,7 +133,7 @@ void AW20216_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
133} 133}
134 134
135void AW20216_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 135void AW20216_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
136 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 136 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
137 AW20216_set_color(i, red, green, blue); 137 AW20216_set_color(i, red, green, blue);
138 } 138 }
139} 139}
diff --git a/drivers/led/aw20216.h b/drivers/led/aw20216.h
index 0a17050fed..c6e71b4b4e 100644
--- a/drivers/led/aw20216.h
+++ b/drivers/led/aw20216.h
@@ -28,7 +28,7 @@ typedef struct aw_led {
28 uint8_t b; 28 uint8_t b;
29} aw_led; 29} aw_led;
30 30
31extern const aw_led PROGMEM g_aw_leds[DRIVER_LED_TOTAL]; 31extern const aw_led PROGMEM g_aw_leds[RGB_MATRIX_LED_COUNT];
32 32
33void AW20216_init(pin_t cs_pin, pin_t en_pin); 33void AW20216_init(pin_t cs_pin, pin_t en_pin);
34void AW20216_set_color(int index, uint8_t red, uint8_t green, uint8_t blue); 34void AW20216_set_color(int index, uint8_t red, uint8_t green, uint8_t blue);
diff --git a/drivers/led/ckled2001-simple.c b/drivers/led/ckled2001-simple.c
index da4bf20b99..6c4ffd398e 100644
--- a/drivers/led/ckled2001-simple.c
+++ b/drivers/led/ckled2001-simple.c
@@ -148,7 +148,7 @@ void CKLED2001_init(uint8_t addr) {
148 148
149void CKLED2001_set_value(int index, uint8_t value) { 149void CKLED2001_set_value(int index, uint8_t value) {
150 ckled2001_led led; 150 ckled2001_led led;
151 if (index >= 0 && index < DRIVER_LED_TOTAL) { 151 if (index >= 0 && index < LED_MATRIX_LED_COUNT) {
152 memcpy_P(&led, (&g_ckled2001_leds[index]), sizeof(led)); 152 memcpy_P(&led, (&g_ckled2001_leds[index]), sizeof(led));
153 153
154 g_pwm_buffer[led.driver][led.v] = value; 154 g_pwm_buffer[led.driver][led.v] = value;
@@ -157,7 +157,7 @@ void CKLED2001_set_value(int index, uint8_t value) {
157} 157}
158 158
159void CKLED2001_set_value_all(uint8_t value) { 159void CKLED2001_set_value_all(uint8_t value) {
160 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 160 for (int i = 0; i < LED_MATRIX_LED_COUNT; i++) {
161 CKLED2001_set_value(i, value); 161 CKLED2001_set_value(i, value);
162 } 162 }
163} 163}
diff --git a/drivers/led/ckled2001-simple.h b/drivers/led/ckled2001-simple.h
index 731da2e1cd..a56cad3461 100644
--- a/drivers/led/ckled2001-simple.h
+++ b/drivers/led/ckled2001-simple.h
@@ -25,7 +25,7 @@ typedef struct ckled2001_led {
25 uint8_t v; 25 uint8_t v;
26} __attribute__((packed)) ckled2001_led; 26} __attribute__((packed)) ckled2001_led;
27 27
28extern const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL]; 28extern const ckled2001_led PROGMEM g_ckled2001_leds[LED_MATRIX_LED_COUNT];
29 29
30void CKLED2001_init(uint8_t addr); 30void CKLED2001_init(uint8_t addr);
31bool CKLED2001_write_register(uint8_t addr, uint8_t reg, uint8_t data); 31bool CKLED2001_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/ckled2001.c b/drivers/led/ckled2001.c
index b7e7db06cc..1651628175 100644
--- a/drivers/led/ckled2001.c
+++ b/drivers/led/ckled2001.c
@@ -148,7 +148,7 @@ void CKLED2001_init(uint8_t addr) {
148 148
149void CKLED2001_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 149void CKLED2001_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
150 ckled2001_led led; 150 ckled2001_led led;
151 if (index >= 0 && index < DRIVER_LED_TOTAL) { 151 if (index >= 0 && index < RGB_MATRIX_LED_COUNT) {
152 memcpy_P(&led, (&g_ckled2001_leds[index]), sizeof(led)); 152 memcpy_P(&led, (&g_ckled2001_leds[index]), sizeof(led));
153 153
154 g_pwm_buffer[led.driver][led.r] = red; 154 g_pwm_buffer[led.driver][led.r] = red;
@@ -159,7 +159,7 @@ void CKLED2001_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
159} 159}
160 160
161void CKLED2001_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 161void CKLED2001_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
162 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 162 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
163 CKLED2001_set_color(i, red, green, blue); 163 CKLED2001_set_color(i, red, green, blue);
164 } 164 }
165} 165}
diff --git a/drivers/led/ckled2001.h b/drivers/led/ckled2001.h
index 7d5ad34f95..aa70a0623f 100644
--- a/drivers/led/ckled2001.h
+++ b/drivers/led/ckled2001.h
@@ -27,7 +27,7 @@ typedef struct ckled2001_led {
27 uint8_t b; 27 uint8_t b;
28} __attribute__((packed)) ckled2001_led; 28} __attribute__((packed)) ckled2001_led;
29 29
30extern const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL]; 30extern const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT];
31 31
32void CKLED2001_init(uint8_t addr); 32void CKLED2001_init(uint8_t addr);
33bool CKLED2001_write_register(uint8_t addr, uint8_t reg, uint8_t data); 33bool CKLED2001_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/issi/is31fl3731-simple.c b/drivers/led/issi/is31fl3731-simple.c
index 3abe9ea337..84060f9426 100644
--- a/drivers/led/issi/is31fl3731-simple.c
+++ b/drivers/led/issi/is31fl3731-simple.c
@@ -194,7 +194,7 @@ void IS31FL3731_init(uint8_t addr) {
194 194
195void IS31FL3731_set_value(int index, uint8_t value) { 195void IS31FL3731_set_value(int index, uint8_t value) {
196 is31_led led; 196 is31_led led;
197 if (index >= 0 && index < DRIVER_LED_TOTAL) { 197 if (index >= 0 && index < LED_MATRIX_LED_COUNT) {
198 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led)); 198 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
199 199
200 // Subtract 0x24 to get the second index of g_pwm_buffer 200 // Subtract 0x24 to get the second index of g_pwm_buffer
@@ -204,7 +204,7 @@ void IS31FL3731_set_value(int index, uint8_t value) {
204} 204}
205 205
206void IS31FL3731_set_value_all(uint8_t value) { 206void IS31FL3731_set_value_all(uint8_t value) {
207 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 207 for (int i = 0; i < LED_MATRIX_LED_COUNT; i++) {
208 IS31FL3731_set_value(i, value); 208 IS31FL3731_set_value(i, value);
209 } 209 }
210} 210}
diff --git a/drivers/led/issi/is31fl3731-simple.h b/drivers/led/issi/is31fl3731-simple.h
index ded94b0470..1ddadd5209 100644
--- a/drivers/led/issi/is31fl3731-simple.h
+++ b/drivers/led/issi/is31fl3731-simple.h
@@ -27,7 +27,7 @@ typedef struct is31_led {
27 uint8_t v; 27 uint8_t v;
28} __attribute__((packed)) is31_led; 28} __attribute__((packed)) is31_led;
29 29
30extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL]; 30extern const is31_led PROGMEM g_is31_leds[LED_MATRIX_LED_COUNT];
31 31
32void IS31FL3731_init(uint8_t addr); 32void IS31FL3731_init(uint8_t addr);
33void IS31FL3731_write_register(uint8_t addr, uint8_t reg, uint8_t data); 33void IS31FL3731_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/issi/is31fl3731.c b/drivers/led/issi/is31fl3731.c
index 9c6c29f081..fed5354145 100644
--- a/drivers/led/issi/is31fl3731.c
+++ b/drivers/led/issi/is31fl3731.c
@@ -182,7 +182,7 @@ void IS31FL3731_init(uint8_t addr) {
182 182
183void IS31FL3731_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 183void IS31FL3731_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
184 is31_led led; 184 is31_led led;
185 if (index >= 0 && index < DRIVER_LED_TOTAL) { 185 if (index >= 0 && index < RGB_MATRIX_LED_COUNT) {
186 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led)); 186 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
187 187
188 // Subtract 0x24 to get the second index of g_pwm_buffer 188 // Subtract 0x24 to get the second index of g_pwm_buffer
@@ -194,7 +194,7 @@ void IS31FL3731_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
194} 194}
195 195
196void IS31FL3731_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 196void IS31FL3731_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
197 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 197 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
198 IS31FL3731_set_color(i, red, green, blue); 198 IS31FL3731_set_color(i, red, green, blue);
199 } 199 }
200} 200}
diff --git a/drivers/led/issi/is31fl3731.h b/drivers/led/issi/is31fl3731.h
index 6647119eba..6791289c9e 100644
--- a/drivers/led/issi/is31fl3731.h
+++ b/drivers/led/issi/is31fl3731.h
@@ -28,7 +28,7 @@ typedef struct is31_led {
28 uint8_t b; 28 uint8_t b;
29} __attribute__((packed)) is31_led; 29} __attribute__((packed)) is31_led;
30 30
31extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL]; 31extern const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT];
32 32
33void IS31FL3731_init(uint8_t addr); 33void IS31FL3731_init(uint8_t addr);
34void IS31FL3731_write_register(uint8_t addr, uint8_t reg, uint8_t data); 34void IS31FL3731_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/issi/is31fl3733-simple.c b/drivers/led/issi/is31fl3733-simple.c
index 2f41a7b1a9..1e0994d780 100644
--- a/drivers/led/issi/is31fl3733-simple.c
+++ b/drivers/led/issi/is31fl3733-simple.c
@@ -195,7 +195,7 @@ void IS31FL3733_init(uint8_t addr, uint8_t sync) {
195} 195}
196 196
197void IS31FL3733_set_value(int index, uint8_t value) { 197void IS31FL3733_set_value(int index, uint8_t value) {
198 if (index >= 0 && index < DRIVER_LED_TOTAL) { 198 if (index >= 0 && index < LED_MATRIX_LED_COUNT) {
199 is31_led led = g_is31_leds[index]; 199 is31_led led = g_is31_leds[index];
200 200
201 g_pwm_buffer[led.driver][led.v] = value; 201 g_pwm_buffer[led.driver][led.v] = value;
@@ -204,7 +204,7 @@ void IS31FL3733_set_value(int index, uint8_t value) {
204} 204}
205 205
206void IS31FL3733_set_value_all(uint8_t value) { 206void IS31FL3733_set_value_all(uint8_t value) {
207 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 207 for (int i = 0; i < LED_MATRIX_LED_COUNT; i++) {
208 IS31FL3733_set_value(i, value); 208 IS31FL3733_set_value(i, value);
209 } 209 }
210} 210}
diff --git a/drivers/led/issi/is31fl3733-simple.h b/drivers/led/issi/is31fl3733-simple.h
index f5253e3101..f0ea3adca0 100644
--- a/drivers/led/issi/is31fl3733-simple.h
+++ b/drivers/led/issi/is31fl3733-simple.h
@@ -29,7 +29,7 @@ typedef struct is31_led {
29 uint8_t v; 29 uint8_t v;
30} __attribute__((packed)) is31_led; 30} __attribute__((packed)) is31_led;
31 31
32extern const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL]; 32extern const is31_led __flash g_is31_leds[LED_MATRIX_LED_COUNT];
33 33
34void IS31FL3733_init(uint8_t addr, uint8_t sync); 34void IS31FL3733_init(uint8_t addr, uint8_t sync);
35bool IS31FL3733_write_register(uint8_t addr, uint8_t reg, uint8_t data); 35bool IS31FL3733_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/issi/is31fl3733.c b/drivers/led/issi/is31fl3733.c
index add998f256..379eaa0ae3 100644
--- a/drivers/led/issi/is31fl3733.c
+++ b/drivers/led/issi/is31fl3733.c
@@ -186,7 +186,7 @@ void IS31FL3733_init(uint8_t addr, uint8_t sync) {
186 186
187void IS31FL3733_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 187void IS31FL3733_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
188 is31_led led; 188 is31_led led;
189 if (index >= 0 && index < DRIVER_LED_TOTAL) { 189 if (index >= 0 && index < RGB_MATRIX_LED_COUNT) {
190 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led)); 190 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
191 191
192 g_pwm_buffer[led.driver][led.r] = red; 192 g_pwm_buffer[led.driver][led.r] = red;
@@ -197,7 +197,7 @@ void IS31FL3733_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
197} 197}
198 198
199void IS31FL3733_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 199void IS31FL3733_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
200 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 200 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
201 IS31FL3733_set_color(i, red, green, blue); 201 IS31FL3733_set_color(i, red, green, blue);
202 } 202 }
203} 203}
diff --git a/drivers/led/issi/is31fl3733.h b/drivers/led/issi/is31fl3733.h
index 7653dd17c0..29441846ac 100644
--- a/drivers/led/issi/is31fl3733.h
+++ b/drivers/led/issi/is31fl3733.h
@@ -30,7 +30,7 @@ typedef struct is31_led {
30 uint8_t b; 30 uint8_t b;
31} __attribute__((packed)) is31_led; 31} __attribute__((packed)) is31_led;
32 32
33extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL]; 33extern const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT];
34 34
35void IS31FL3733_init(uint8_t addr, uint8_t sync); 35void IS31FL3733_init(uint8_t addr, uint8_t sync);
36bool IS31FL3733_write_register(uint8_t addr, uint8_t reg, uint8_t data); 36bool IS31FL3733_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/issi/is31fl3736.c b/drivers/led/issi/is31fl3736.c
index e9943614d2..82e7ee3d18 100644
--- a/drivers/led/issi/is31fl3736.c
+++ b/drivers/led/issi/is31fl3736.c
@@ -168,7 +168,7 @@ void IS31FL3736_init(uint8_t addr) {
168 168
169void IS31FL3736_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 169void IS31FL3736_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
170 is31_led led; 170 is31_led led;
171 if (index >= 0 && index < DRIVER_LED_TOTAL) { 171 if (index >= 0 && index < RGB_MATRIX_LED_COUNT) {
172 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led)); 172 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
173 173
174 g_pwm_buffer[led.driver][led.r] = red; 174 g_pwm_buffer[led.driver][led.r] = red;
@@ -179,7 +179,7 @@ void IS31FL3736_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
179} 179}
180 180
181void IS31FL3736_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 181void IS31FL3736_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
182 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 182 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
183 IS31FL3736_set_color(i, red, green, blue); 183 IS31FL3736_set_color(i, red, green, blue);
184 } 184 }
185} 185}
diff --git a/drivers/led/issi/is31fl3736.h b/drivers/led/issi/is31fl3736.h
index f126034615..ccb19afbcc 100644
--- a/drivers/led/issi/is31fl3736.h
+++ b/drivers/led/issi/is31fl3736.h
@@ -28,8 +28,8 @@
28# define DRIVER_COUNT 2 28# define DRIVER_COUNT 2
29#endif 29#endif
30 30
31#ifndef DRIVER_LED_TOTAL 31#ifndef RGB_MATRIX_LED_COUNT
32# define DRIVER_LED_TOTAL 96 32# define RGB_MATRIX_LED_COUNT 96
33#endif 33#endif
34 34
35typedef struct is31_led { 35typedef struct is31_led {
@@ -39,7 +39,7 @@ typedef struct is31_led {
39 uint8_t b; 39 uint8_t b;
40} __attribute__((packed)) is31_led; 40} __attribute__((packed)) is31_led;
41 41
42extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL]; 42extern const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT];
43 43
44void IS31FL3736_init(uint8_t addr); 44void IS31FL3736_init(uint8_t addr);
45void IS31FL3736_write_register(uint8_t addr, uint8_t reg, uint8_t data); 45void IS31FL3736_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/issi/is31fl3737.c b/drivers/led/issi/is31fl3737.c
index 932530ac0a..45a20018c5 100644
--- a/drivers/led/issi/is31fl3737.c
+++ b/drivers/led/issi/is31fl3737.c
@@ -175,7 +175,7 @@ void IS31FL3737_init(uint8_t addr) {
175 175
176void IS31FL3737_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 176void IS31FL3737_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
177 is31_led led; 177 is31_led led;
178 if (index >= 0 && index < DRIVER_LED_TOTAL) { 178 if (index >= 0 && index < RGB_MATRIX_LED_COUNT) {
179 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led)); 179 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
180 180
181 g_pwm_buffer[led.driver][led.r] = red; 181 g_pwm_buffer[led.driver][led.r] = red;
@@ -186,7 +186,7 @@ void IS31FL3737_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
186} 186}
187 187
188void IS31FL3737_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 188void IS31FL3737_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
189 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 189 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
190 IS31FL3737_set_color(i, red, green, blue); 190 IS31FL3737_set_color(i, red, green, blue);
191 } 191 }
192} 192}
diff --git a/drivers/led/issi/is31fl3737.h b/drivers/led/issi/is31fl3737.h
index ddb70a9df5..fb0c33420c 100644
--- a/drivers/led/issi/is31fl3737.h
+++ b/drivers/led/issi/is31fl3737.h
@@ -30,7 +30,7 @@ typedef struct is31_led {
30 uint8_t b; 30 uint8_t b;
31} __attribute__((packed)) is31_led; 31} __attribute__((packed)) is31_led;
32 32
33extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL]; 33extern const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT];
34 34
35void IS31FL3737_init(uint8_t addr); 35void IS31FL3737_init(uint8_t addr);
36void IS31FL3737_write_register(uint8_t addr, uint8_t reg, uint8_t data); 36void IS31FL3737_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/issi/is31fl3741.c b/drivers/led/issi/is31fl3741.c
index ba6b6761a3..c2cdd4c46f 100644
--- a/drivers/led/issi/is31fl3741.c
+++ b/drivers/led/issi/is31fl3741.c
@@ -179,7 +179,7 @@ void IS31FL3741_init(uint8_t addr) {
179 179
180void IS31FL3741_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 180void IS31FL3741_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
181 is31_led led; 181 is31_led led;
182 if (index >= 0 && index < DRIVER_LED_TOTAL) { 182 if (index >= 0 && index < RGB_MATRIX_LED_COUNT) {
183 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led)); 183 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
184 184
185 g_pwm_buffer[led.driver][led.r] = red; 185 g_pwm_buffer[led.driver][led.r] = red;
@@ -190,7 +190,7 @@ void IS31FL3741_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
190} 190}
191 191
192void IS31FL3741_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 192void IS31FL3741_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
193 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 193 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
194 IS31FL3741_set_color(i, red, green, blue); 194 IS31FL3741_set_color(i, red, green, blue);
195 } 195 }
196} 196}
diff --git a/drivers/led/issi/is31fl3741.h b/drivers/led/issi/is31fl3741.h
index 3bdb23bd2d..b0089ea5ba 100644
--- a/drivers/led/issi/is31fl3741.h
+++ b/drivers/led/issi/is31fl3741.h
@@ -30,7 +30,7 @@ typedef struct is31_led {
30 uint32_t b : 10; 30 uint32_t b : 10;
31} __attribute__((packed)) is31_led; 31} __attribute__((packed)) is31_led;
32 32
33extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL]; 33extern const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT];
34 34
35void IS31FL3741_init(uint8_t addr); 35void IS31FL3741_init(uint8_t addr);
36void IS31FL3741_write_register(uint8_t addr, uint8_t reg, uint8_t data); 36void IS31FL3741_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/issi/is31flcommon.c b/drivers/led/issi/is31flcommon.c
index 9f4b2123ff..106890a8bf 100644
--- a/drivers/led/issi/is31flcommon.c
+++ b/drivers/led/issi/is31flcommon.c
@@ -135,14 +135,17 @@ void IS31FL_common_update_pwm_register(uint8_t addr, uint8_t index) {
135void IS31FL_set_manual_scaling_buffer(void) { 135void IS31FL_set_manual_scaling_buffer(void) {
136 for (int i = 0; i < ISSI_MANUAL_SCALING; i++) { 136 for (int i = 0; i < ISSI_MANUAL_SCALING; i++) {
137 is31_led scale = g_is31_scaling[i]; 137 is31_led scale = g_is31_scaling[i];
138 if (scale.driver >= 0 && scale.driver < DRIVER_LED_TOTAL) { 138# ifdef RGB_MATRIX_ENABLE
139 if (scale.driver >= 0 && scale.driver < RGB_MATRIX_LED_COUNT) {
139 is31_led led = g_is31_leds[scale.driver]; 140 is31_led led = g_is31_leds[scale.driver];
140 141
141# ifdef RGB_MATRIX_ENABLE
142 g_scaling_buffer[led.driver][led.r] = scale.r; 142 g_scaling_buffer[led.driver][led.r] = scale.r;
143 g_scaling_buffer[led.driver][led.g] = scale.g; 143 g_scaling_buffer[led.driver][led.g] = scale.g;
144 g_scaling_buffer[led.driver][led.b] = scale.b; 144 g_scaling_buffer[led.driver][led.b] = scale.b;
145# elif defined(LED_MATRIX_ENABLE) 145# elif defined(LED_MATRIX_ENABLE)
146 if (scale.driver >= 0 && scale.driver < LED_MATRIX_LED_COUNT) {
147 is31_led led = g_is31_leds[scale.driver];
148
146 g_scaling_buffer[led.driver][led.v] = scale.v; 149 g_scaling_buffer[led.driver][led.v] = scale.v;
147# endif 150# endif
148 g_scaling_buffer_update_required[led.driver] = true; 151 g_scaling_buffer_update_required[led.driver] = true;
@@ -165,7 +168,7 @@ void IS31FL_common_update_scaling_register(uint8_t addr, uint8_t index) {
165#ifdef RGB_MATRIX_ENABLE 168#ifdef RGB_MATRIX_ENABLE
166// Colour is set by adjusting PWM register 169// Colour is set by adjusting PWM register
167void IS31FL_RGB_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 170void IS31FL_RGB_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
168 if (index >= 0 && index < DRIVER_LED_TOTAL) { 171 if (index >= 0 && index < RGB_MATRIX_LED_COUNT) {
169 is31_led led = g_is31_leds[index]; 172 is31_led led = g_is31_leds[index];
170 173
171 g_pwm_buffer[led.driver][led.r] = red; 174 g_pwm_buffer[led.driver][led.r] = red;
@@ -176,7 +179,7 @@ void IS31FL_RGB_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
176} 179}
177 180
178void IS31FL_RGB_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 181void IS31FL_RGB_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
179 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 182 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
180 IS31FL_RGB_set_color(i, red, green, blue); 183 IS31FL_RGB_set_color(i, red, green, blue);
181 } 184 }
182} 185}
@@ -215,7 +218,7 @@ void IS31FL_simple_set_scaling_buffer(uint8_t index, bool value) {
215} 218}
216 219
217void IS31FL_simple_set_brightness(int index, uint8_t value) { 220void IS31FL_simple_set_brightness(int index, uint8_t value) {
218 if (index >= 0 && index < DRIVER_LED_TOTAL) { 221 if (index >= 0 && index < LED_MATRIX_LED_COUNT) {
219 is31_led led = g_is31_leds[index]; 222 is31_led led = g_is31_leds[index];
220 g_pwm_buffer[led.driver][led.v] = value; 223 g_pwm_buffer[led.driver][led.v] = value;
221 g_pwm_buffer_update_required[led.driver] = true; 224 g_pwm_buffer_update_required[led.driver] = true;
@@ -223,7 +226,7 @@ void IS31FL_simple_set_brightness(int index, uint8_t value) {
223} 226}
224 227
225void IS31FL_simple_set_brigntness_all(uint8_t value) { 228void IS31FL_simple_set_brigntness_all(uint8_t value) {
226 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 229 for (int i = 0; i < LED_MATRIX_LED_COUNT; i++) {
227 IS31FL_simple_set_brightness(i, value); 230 IS31FL_simple_set_brightness(i, value);
228 } 231 }
229} 232}
diff --git a/drivers/led/issi/is31flcommon.h b/drivers/led/issi/is31flcommon.h
index 77e9665e32..18432ffc31 100644
--- a/drivers/led/issi/is31flcommon.h
+++ b/drivers/led/issi/is31flcommon.h
@@ -43,11 +43,15 @@ typedef struct is31_led {
43 uint8_t b; 43 uint8_t b;
44} __attribute__((packed)) is31_led; 44} __attribute__((packed)) is31_led;
45 45
46extern const is31_led __flash g_is31_leds[RGB_MATRIX_LED_COUNT];
47
46#elif defined(LED_MATRIX_ENABLE) 48#elif defined(LED_MATRIX_ENABLE)
47typedef struct is31_led { 49typedef struct is31_led {
48 uint8_t driver; 50 uint8_t driver;
49 uint8_t v; 51 uint8_t v;
50} __attribute__((packed)) is31_led; 52} __attribute__((packed)) is31_led;
53
54extern const is31_led __flash g_is31_leds[LED_MATRIX_LED_COUNT];
51#endif 55#endif
52 56
53#ifdef ISSI_MANUAL_SCALING 57#ifdef ISSI_MANUAL_SCALING
@@ -55,8 +59,6 @@ extern const is31_led __flash g_is31_scaling[];
55void IS31FL_set_manual_scaling_buffer(void); 59void IS31FL_set_manual_scaling_buffer(void);
56#endif 60#endif
57 61
58extern const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL];
59
60void IS31FL_write_single_register(uint8_t addr, uint8_t reg, uint8_t data); 62void IS31FL_write_single_register(uint8_t addr, uint8_t reg, uint8_t data);
61bool IS31FL_write_multi_registers(uint8_t addr, uint8_t *source_buffer, uint8_t buffer_size, uint8_t transfer_size, uint8_t start_reg_addr); 63bool IS31FL_write_multi_registers(uint8_t addr, uint8_t *source_buffer, uint8_t buffer_size, uint8_t transfer_size, uint8_t start_reg_addr);
62void IS31FL_unlock_register(uint8_t addr, uint8_t page); 64void IS31FL_unlock_register(uint8_t addr, uint8_t page);
diff --git a/keyboards/1upkeyboards/pi40/config.h b/keyboards/1upkeyboards/pi40/config.h
index 5bda238430..5e0d0e12ae 100644
--- a/keyboards/1upkeyboards/pi40/config.h
+++ b/keyboards/1upkeyboards/pi40/config.h
@@ -29,7 +29,7 @@
29#define ENCODERS_PAD_B { GP13 } 29#define ENCODERS_PAD_B { GP13 }
30 30
31#define RGB_DI_PIN GP0 31#define RGB_DI_PIN GP0
32#define DRIVER_LED_TOTAL 47 32#define RGB_MATRIX_LED_COUNT 47
33#define RGBLED_NUM 47 33#define RGBLED_NUM 47
34# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 34# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
35# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 35# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/1upkeyboards/super16/config.h b/keyboards/1upkeyboards/super16/config.h
index 1a9344cbac..9220655ac2 100644
--- a/keyboards/1upkeyboards/super16/config.h
+++ b/keyboards/1upkeyboards/super16/config.h
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
53#define RGB_DI_PIN D3 53#define RGB_DI_PIN D3
54#ifdef RGB_DI_PIN 54#ifdef RGB_DI_PIN
55# define RGBLED_NUM 16 // Add 12 if attaching the RGB LED ring 55# define RGBLED_NUM 16 // Add 12 if attaching the RGB LED ring
56# define DRIVER_LED_TOTAL RGBLED_NUM 56# define RGB_MATRIX_LED_COUNT RGBLED_NUM
57# ifdef RGBLIGHT_ENABLE 57# ifdef RGBLIGHT_ENABLE
58# define RGBLIGHT_HUE_STEP 8 58# define RGBLIGHT_HUE_STEP 8
59# define RGBLIGHT_SAT_STEP 8 59# define RGBLIGHT_SAT_STEP 8
diff --git a/keyboards/1upkeyboards/super16v2/config.h b/keyboards/1upkeyboards/super16v2/config.h
index cea3c4edb6..a37053a20f 100644
--- a/keyboards/1upkeyboards/super16v2/config.h
+++ b/keyboards/1upkeyboards/super16v2/config.h
@@ -62,7 +62,7 @@
62//#define BACKLIGHT_BREATHING 62//#define BACKLIGHT_BREATHING
63 63
64#define RGB_DI_PIN B5 64#define RGB_DI_PIN B5
65#define DRIVER_LED_TOTAL 20 65#define RGB_MATRIX_LED_COUNT 20
66#ifdef RGB_DI_PIN 66#ifdef RGB_DI_PIN
67# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 67# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
68# define RGBLIGHT_LIMIT_VAL 255 68# define RGBLIGHT_LIMIT_VAL 255
diff --git a/keyboards/3keyecosystem/2key2/config.h b/keyboards/3keyecosystem/2key2/config.h
index 5ccd3f1cd5..bb0a591610 100644
--- a/keyboards/3keyecosystem/2key2/config.h
+++ b/keyboards/3keyecosystem/2key2/config.h
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
34 34
35/* RGB matrix key backlighting */ 35/* RGB matrix key backlighting */
36#define RGB_DI_PIN B2 36#define RGB_DI_PIN B2
37#define DRIVER_LED_TOTAL 2 37#define RGB_MATRIX_LED_COUNT 2
38#define RGB_MATRIX_KEYPRESSES 38#define RGB_MATRIX_KEYPRESSES
39#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE 39#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE
40#define RGB_MATRIX_STARTUP_HUE 90 40#define RGB_MATRIX_STARTUP_HUE 90
diff --git a/keyboards/4pplet/perk60_iso/rev_a/config.h b/keyboards/4pplet/perk60_iso/rev_a/config.h
index bd24723df0..7403803f5d 100644
--- a/keyboards/4pplet/perk60_iso/rev_a/config.h
+++ b/keyboards/4pplet/perk60_iso/rev_a/config.h
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
33 33
34#define DRIVER_ADDR_1 0b1010000 34#define DRIVER_ADDR_1 0b1010000
35#define DRIVER_COUNT 1 35#define DRIVER_COUNT 1
36#define DRIVER_LED_TOTAL 62 36#define RGB_MATRIX_LED_COUNT 62
37#define ISSI_PWM_FREQUENCY 0b010 37#define ISSI_PWM_FREQUENCY 0b010
38 38
39#define RGB_MATRIX_STARTUP_VAL 80 39#define RGB_MATRIX_STARTUP_VAL 80
diff --git a/keyboards/4pplet/perk60_iso/rev_a/rev_a.c b/keyboards/4pplet/perk60_iso/rev_a/rev_a.c
index 8f6ef05cec..72446d39be 100644
--- a/keyboards/4pplet/perk60_iso/rev_a/rev_a.c
+++ b/keyboards/4pplet/perk60_iso/rev_a/rev_a.c
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17#include "rev_a.h" 17#include "rev_a.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 { 0, K_2, J_2, L_2 }, //D402 21 { 0, K_2, J_2, L_2 }, //D402
22 { 0, K_3, J_3, L_3 }, //D403 22 { 0, K_3, J_3, L_3 }, //D403
23 { 0, K_4, J_4, L_4 }, //D404 23 { 0, K_4, J_4, L_4 }, //D404
diff --git a/keyboards/abatskeyboardclub/nayeon/config.h b/keyboards/abatskeyboardclub/nayeon/config.h
index 449f2da113..6be72c6495 100644
--- a/keyboards/abatskeyboardclub/nayeon/config.h
+++ b/keyboards/abatskeyboardclub/nayeon/config.h
@@ -21,6 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21 21
22/* RGB Matrix setup */ 22/* RGB Matrix setup */
23#define RGB_DI_PIN GP19 23#define RGB_DI_PIN GP19
24#define DRIVER_LED_TOTAL 2 24#define RGB_MATRIX_LED_COUNT 2
25#define RGBLED_NUM 2 25#define RGBLED_NUM 2
26#define WS2812_PIO_USE_PIO1 // Force the usage of PIO1 peripheral, by default the WS2812 implementation uses the PIO0 peripheral 26#define WS2812_PIO_USE_PIO1 // Force the usage of PIO1 peripheral, by default the WS2812 implementation uses the PIO0 peripheral
diff --git a/keyboards/acheron/apollo/87h/delta/config.h b/keyboards/acheron/apollo/87h/delta/config.h
index 5df3628db2..8f6e3a87db 100644
--- a/keyboards/acheron/apollo/87h/delta/config.h
+++ b/keyboards/acheron/apollo/87h/delta/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
41#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE 41#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
42 42
43#define RGB_DI_PIN B15 43#define RGB_DI_PIN B15
44#define DRIVER_LED_TOTAL 87 44#define RGB_MATRIX_LED_COUNT 87
45 45
46#define WS2812_PWM_COMPLEMENTARY_OUTPUT 46#define WS2812_PWM_COMPLEMENTARY_OUTPUT
47#define WS2812_PWM_DRIVER PWMD1 47#define WS2812_PWM_DRIVER PWMD1
diff --git a/keyboards/acheron/apollo/87h/gamma/config.h b/keyboards/acheron/apollo/87h/gamma/config.h
index 21fe929409..7adcf7a75b 100644
--- a/keyboards/acheron/apollo/87h/gamma/config.h
+++ b/keyboards/acheron/apollo/87h/gamma/config.h
@@ -45,8 +45,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
45 45
46#define DRIVER_COUNT 1 46#define DRIVER_COUNT 1
47#define DRIVER_1_LED_TOTAL 87 47#define DRIVER_1_LED_TOTAL 87
48#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 48#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
49#define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL 49#define ISSI_DRIVER_TOTAL RGB_MATRIX_LED_COUNT
50 50
51#define RGB_MATRIX_STARTUP_VAL 80 51#define RGB_MATRIX_STARTUP_VAL 80
52#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 52#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/acheron/apollo/87h/gamma/gamma.c b/keyboards/acheron/apollo/87h/gamma/gamma.c
index babad3c11c..89eed483c1 100644
--- a/keyboards/acheron/apollo/87h/gamma/gamma.c
+++ b/keyboards/acheron/apollo/87h/gamma/gamma.c
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18#include "gamma.h" 18#include "gamma.h"
19 19
20#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22/* Refer to IS31 manual for these locations 22/* Refer to IS31 manual for these locations
23 * driver 23 * driver
24 * | R location 24 * | R location
diff --git a/keyboards/acheron/apollo/87htsc/config.h b/keyboards/acheron/apollo/87htsc/config.h
index 30021a51b9..7e2060ab2d 100644
--- a/keyboards/acheron/apollo/87htsc/config.h
+++ b/keyboards/acheron/apollo/87htsc/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
41#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE 41#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
42 42
43#define RGB_DI_PIN B15 43#define RGB_DI_PIN B15
44#define DRIVER_LED_TOTAL 86 44#define RGB_MATRIX_LED_COUNT 86
45 45
46#define WS2812_PWM_COMPLEMENTARY_OUTPUT 46#define WS2812_PWM_COMPLEMENTARY_OUTPUT
47#define WS2812_PWM_DRIVER PWMD1 47#define WS2812_PWM_DRIVER PWMD1
diff --git a/keyboards/acheron/apollo/88htsc/config.h b/keyboards/acheron/apollo/88htsc/config.h
index 5df3628db2..8f6e3a87db 100644
--- a/keyboards/acheron/apollo/88htsc/config.h
+++ b/keyboards/acheron/apollo/88htsc/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
41#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE 41#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
42 42
43#define RGB_DI_PIN B15 43#define RGB_DI_PIN B15
44#define DRIVER_LED_TOTAL 87 44#define RGB_MATRIX_LED_COUNT 87
45 45
46#define WS2812_PWM_COMPLEMENTARY_OUTPUT 46#define WS2812_PWM_COMPLEMENTARY_OUTPUT
47#define WS2812_PWM_DRIVER PWMD1 47#define WS2812_PWM_DRIVER PWMD1
diff --git a/keyboards/adafruit/macropad/config.h b/keyboards/adafruit/macropad/config.h
index cc4cbc940c..568020eec8 100644
--- a/keyboards/adafruit/macropad/config.h
+++ b/keyboards/adafruit/macropad/config.h
@@ -78,7 +78,7 @@
78 78
79 /* RGB Defines */ 79 /* RGB Defines */
80# define RGB_DI_PIN GP19 80# define RGB_DI_PIN GP19
81# define DRIVER_LED_TOTAL 12 81# define RGB_MATRIX_LED_COUNT 12
82# define RGBLED_NUM 12 82# define RGBLED_NUM 12
83 83
84 /* Enable Framebuffer and keypress effects */ 84 /* Enable Framebuffer and keypress effects */
diff --git a/keyboards/adm42/rev4/config.h b/keyboards/adm42/rev4/config.h
index b567c6450e..2a8f9927cd 100644
--- a/keyboards/adm42/rev4/config.h
+++ b/keyboards/adm42/rev4/config.h
@@ -21,7 +21,7 @@
21 21
22#define RGB_DI_PIN B7 22#define RGB_DI_PIN B7
23 23
24#define DRIVER_LED_TOTAL 42 24#define RGB_MATRIX_LED_COUNT 42
25#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170 25#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170
26#define RGB_DISABLE_WHEN_USB_SUSPENDED 26#define RGB_DISABLE_WHEN_USB_SUSPENDED
27#define RGB_MATRIX_LED_PROCESS_LIMIT 21 27#define RGB_MATRIX_LED_PROCESS_LIMIT 21
diff --git a/keyboards/aleblazer/zodiark/config.h b/keyboards/aleblazer/zodiark/config.h
index 2958e8daed..25d6912db2 100644
--- a/keyboards/aleblazer/zodiark/config.h
+++ b/keyboards/aleblazer/zodiark/config.h
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
53#endif 53#endif
54 54
55#ifdef RGB_MATRIX_ENABLE 55#ifdef RGB_MATRIX_ENABLE
56#define DRIVER_LED_TOTAL 68 56#define RGB_MATRIX_LED_COUNT 68
57#define RGB_MATRIX_SPLIT { 34, 34 } 57#define RGB_MATRIX_SPLIT { 34, 34 }
58#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 58#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
59#define RGB_MATRIX_KEYPRESSES 59#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/an_achronism/tetromino/config.h b/keyboards/an_achronism/tetromino/config.h
index 6208224465..e543d7ae24 100644
--- a/keyboards/an_achronism/tetromino/config.h
+++ b/keyboards/an_achronism/tetromino/config.h
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#pragma once 18#pragma once
19#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET 19#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
20#define DRIVER_LED_TOTAL 70 20#define RGB_MATRIX_LED_COUNT 70
21 21
22/* disable debug print */ 22/* disable debug print */
23//#define NO_DEBUG 23//#define NO_DEBUG
diff --git a/keyboards/annepro2/config_led.h b/keyboards/annepro2/config_led.h
index 19a1dd4baa..e6d4dc35fb 100644
--- a/keyboards/annepro2/config_led.h
+++ b/keyboards/annepro2/config_led.h
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21#define DRIVER_LED_TOTAL 61 21#define RGB_MATRIX_LED_COUNT 61
22 22
23/* Limit animations to 62.5 FPS to avoid tearing. (1/.016 = 62.5 FPS). */ 23/* Limit animations to 62.5 FPS to avoid tearing. (1/.016 = 62.5 FPS). */
24#define RGB_MATRIX_LED_FLUSH_LIMIT 16 24#define RGB_MATRIX_LED_FLUSH_LIMIT 16
diff --git a/keyboards/annepro2/rgb_driver.c b/keyboards/annepro2/rgb_driver.c
index 1040e89f98..f1d2a3cd13 100644
--- a/keyboards/annepro2/rgb_driver.c
+++ b/keyboards/annepro2/rgb_driver.c
@@ -19,7 +19,7 @@
19#include "rgb_matrix.h" 19#include "rgb_matrix.h"
20#include "ap2_led.h" 20#include "ap2_led.h"
21 21
22uint8_t led_pos[DRIVER_LED_TOTAL]; 22uint8_t led_pos[RGB_MATRIX_LED_COUNT];
23 23
24void init(void) { 24void init(void) {
25 unsigned int i = 0; 25 unsigned int i = 0;
@@ -52,7 +52,7 @@ void set_color(int index, uint8_t r, uint8_t g, uint8_t b) {
52} 52}
53 53
54void set_color_all(uint8_t r, uint8_t g, uint8_t b) { 54void set_color_all(uint8_t r, uint8_t g, uint8_t b) {
55 for (int i=0; i<DRIVER_LED_TOTAL; i++) 55 for (int i=0; i<RGB_MATRIX_LED_COUNT; i++)
56 set_color(i, r, g, b); 56 set_color(i, r, g, b);
57} 57}
58 58
diff --git a/keyboards/atlantis/ak81_ve/config.h b/keyboards/atlantis/ak81_ve/config.h
index e097c47cb0..baf1b14e7d 100644
--- a/keyboards/atlantis/ak81_ve/config.h
+++ b/keyboards/atlantis/ak81_ve/config.h
@@ -57,7 +57,7 @@
57#define RGB_MATRIX_KEYPRESSES 57#define RGB_MATRIX_KEYPRESSES
58#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 58#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
59#define RGB_DISABLE_WHEN_USB_SUSPENDED true 59#define RGB_DISABLE_WHEN_USB_SUSPENDED true
60#define DRIVER_LED_TOTAL 96 60#define RGB_MATRIX_LED_COUNT 96
61#define RGB_MATRIX_STARTUP_HUE 170 61#define RGB_MATRIX_STARTUP_HUE 170
62#define RGB_MATRIX_STARTUP_SAT 255 62#define RGB_MATRIX_STARTUP_SAT 255
63#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 130 63#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 130
diff --git a/keyboards/axolstudio/yeti/hotswap/config.h b/keyboards/axolstudio/yeti/hotswap/config.h
index 1f0540c9e1..da4085588b 100644
--- a/keyboards/axolstudio/yeti/hotswap/config.h
+++ b/keyboards/axolstudio/yeti/hotswap/config.h
@@ -78,7 +78,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
78# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 78# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
79# define DRIVER_ADDR_1 0b1010000 79# define DRIVER_ADDR_1 0b1010000
80# define DRIVER_COUNT 1 80# define DRIVER_COUNT 1
81# define DRIVER_LED_TOTAL 64 81# define RGB_MATRIX_LED_COUNT 64
82#endif 82#endif
83 83
84/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ 84/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
diff --git a/keyboards/axolstudio/yeti/hotswap/hotswap.c b/keyboards/axolstudio/yeti/hotswap/hotswap.c
index f6d0bc7019..a8ccf7fc43 100644
--- a/keyboards/axolstudio/yeti/hotswap/hotswap.c
+++ b/keyboards/axolstudio/yeti/hotswap/hotswap.c
@@ -17,7 +17,7 @@
17#include "hotswap.h" 17#include "hotswap.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 { 0, B_1, A_1, C_1 }, 21 { 0, B_1, A_1, C_1 },
22 { 0, B_2, A_2, C_2 }, 22 { 0, B_2, A_2, C_2 },
23 { 0, B_3, A_3, C_3 }, 23 { 0, B_3, A_3, C_3 },
diff --git a/keyboards/bandominedoni/config.h b/keyboards/bandominedoni/config.h
index 17f5675f60..ba3a157ced 100644
--- a/keyboards/bandominedoni/config.h
+++ b/keyboards/bandominedoni/config.h
@@ -91,7 +91,7 @@
91#ifdef RGB_MATRIX_ENABLE 91#ifdef RGB_MATRIX_ENABLE
92 92
93/* ws2812 RGB MATRIX */ 93/* ws2812 RGB MATRIX */
94# define DRIVER_LED_TOTAL 76 94# define RGB_MATRIX_LED_COUNT 76
95 95
96 // reacts to keypresses 96 // reacts to keypresses
97# define RGB_MATRIX_KEYPRESSES 97# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/basekeys/trifecta/config.h b/keyboards/basekeys/trifecta/config.h
index 753e3d5a41..4d71a3ea53 100644
--- a/keyboards/basekeys/trifecta/config.h
+++ b/keyboards/basekeys/trifecta/config.h
@@ -36,7 +36,7 @@
36 36
37 37
38#define RGB_DI_PIN E6 38#define RGB_DI_PIN E6
39#define DRIVER_LED_TOTAL 80 39#define RGB_MATRIX_LED_COUNT 80
40 40
41/* RGB LED */ 41/* RGB LED */
42#ifdef RGBLIGHT_ENABLE 42#ifdef RGBLIGHT_ENABLE
@@ -75,7 +75,7 @@
75// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 75// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
76//# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 76//# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
77# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 77# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
78# 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) 78# 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)
79# 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) 79# 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)
80# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 80# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
81# define RGB_MATRIX_HUE_STEP 8 81# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/bastardkb/charybdis/3x5/config.h b/keyboards/bastardkb/charybdis/3x5/config.h
index 6e3b8a7124..1368bce35b 100644
--- a/keyboards/bastardkb/charybdis/3x5/config.h
+++ b/keyboards/bastardkb/charybdis/3x5/config.h
@@ -38,7 +38,7 @@
38/* RGB matrix support. */ 38/* RGB matrix support. */
39#ifdef RGB_MATRIX_ENABLE 39#ifdef RGB_MATRIX_ENABLE
40# define SPLIT_TRANSPORT_MIRROR 40# define SPLIT_TRANSPORT_MIRROR
41# define DRIVER_LED_TOTAL RGBLED_NUM 41# define RGB_MATRIX_LED_COUNT RGBLED_NUM
42# define RGB_MATRIX_SPLIT RGBLED_SPLIT 42# define RGB_MATRIX_SPLIT RGBLED_SPLIT
43# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 43# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
44# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 44# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
diff --git a/keyboards/bastardkb/charybdis/3x6/config.h b/keyboards/bastardkb/charybdis/3x6/config.h
index 6b31a773fc..bf915b4faf 100644
--- a/keyboards/bastardkb/charybdis/3x6/config.h
+++ b/keyboards/bastardkb/charybdis/3x6/config.h
@@ -40,7 +40,7 @@
40/* RGB matrix support. */ 40/* RGB matrix support. */
41#ifdef RGB_MATRIX_ENABLE 41#ifdef RGB_MATRIX_ENABLE
42# define SPLIT_TRANSPORT_MIRROR 42# define SPLIT_TRANSPORT_MIRROR
43# define DRIVER_LED_TOTAL RGBLED_NUM 43# define RGB_MATRIX_LED_COUNT RGBLED_NUM
44# define RGB_MATRIX_SPLIT RGBLED_SPLIT 44# define RGB_MATRIX_SPLIT RGBLED_SPLIT
45# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 45# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
46# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 46# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
diff --git a/keyboards/bastardkb/charybdis/4x6/config.h b/keyboards/bastardkb/charybdis/4x6/config.h
index f557089073..4c0f508948 100644
--- a/keyboards/bastardkb/charybdis/4x6/config.h
+++ b/keyboards/bastardkb/charybdis/4x6/config.h
@@ -38,7 +38,7 @@
38/* RGB matrix support. */ 38/* RGB matrix support. */
39#ifdef RGB_MATRIX_ENABLE 39#ifdef RGB_MATRIX_ENABLE
40# define SPLIT_TRANSPORT_MIRROR 40# define SPLIT_TRANSPORT_MIRROR
41# define DRIVER_LED_TOTAL RGBLED_NUM 41# define RGB_MATRIX_LED_COUNT RGBLED_NUM
42# define RGB_MATRIX_SPLIT RGBLED_SPLIT 42# define RGB_MATRIX_SPLIT RGBLED_SPLIT
43# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 43# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
44# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 44# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
diff --git a/keyboards/bastardkb/scylla/config.h b/keyboards/bastardkb/scylla/config.h
index 777f99197a..84b559a26b 100644
--- a/keyboards/bastardkb/scylla/config.h
+++ b/keyboards/bastardkb/scylla/config.h
@@ -37,7 +37,7 @@
37/* RGB matrix support. */ 37/* RGB matrix support. */
38#ifdef RGB_MATRIX_ENABLE 38#ifdef RGB_MATRIX_ENABLE
39# define SPLIT_TRANSPORT_MIRROR 39# define SPLIT_TRANSPORT_MIRROR
40# define DRIVER_LED_TOTAL RGBLED_NUM 40# define RGB_MATRIX_LED_COUNT RGBLED_NUM
41# define RGB_MATRIX_SPLIT RGBLED_SPLIT 41# define RGB_MATRIX_SPLIT RGBLED_SPLIT
42# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 42# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
43# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 43# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
diff --git a/keyboards/bastardkb/skeletyl/config.h b/keyboards/bastardkb/skeletyl/config.h
index 8494e2bfac..f887d8e0f0 100644
--- a/keyboards/bastardkb/skeletyl/config.h
+++ b/keyboards/bastardkb/skeletyl/config.h
@@ -37,7 +37,7 @@
37/* RGB matrix support. */ 37/* RGB matrix support. */
38#ifdef RGB_MATRIX_ENABLE 38#ifdef RGB_MATRIX_ENABLE
39# define SPLIT_TRANSPORT_MIRROR 39# define SPLIT_TRANSPORT_MIRROR
40# define DRIVER_LED_TOTAL RGBLED_NUM 40# define RGB_MATRIX_LED_COUNT RGBLED_NUM
41# define RGB_MATRIX_SPLIT RGBLED_SPLIT 41# define RGB_MATRIX_SPLIT RGBLED_SPLIT
42# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 42# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
43# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 43# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
diff --git a/keyboards/bastardkb/tbkmini/config.h b/keyboards/bastardkb/tbkmini/config.h
index 0624c4b4a6..867f69319b 100644
--- a/keyboards/bastardkb/tbkmini/config.h
+++ b/keyboards/bastardkb/tbkmini/config.h
@@ -37,7 +37,7 @@
37/* RGB matrix support. */ 37/* RGB matrix support. */
38#ifdef RGB_MATRIX_ENABLE 38#ifdef RGB_MATRIX_ENABLE
39# define SPLIT_TRANSPORT_MIRROR 39# define SPLIT_TRANSPORT_MIRROR
40# define DRIVER_LED_TOTAL RGBLED_NUM 40# define RGB_MATRIX_LED_COUNT RGBLED_NUM
41# define RGB_MATRIX_SPLIT RGBLED_SPLIT 41# define RGB_MATRIX_SPLIT RGBLED_SPLIT
42# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 42# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
43# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 43# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
diff --git a/keyboards/blockboy/ac980mini/config.h b/keyboards/blockboy/ac980mini/config.h
index 695daf901a..4275ffa19e 100644
--- a/keyboards/blockboy/ac980mini/config.h
+++ b/keyboards/blockboy/ac980mini/config.h
@@ -7,7 +7,7 @@
7// RGB configuration 7// RGB configuration
8#define RGB_DI_PIN B7 8#define RGB_DI_PIN B7
9// The number of LEDs connected 9// The number of LEDs connected
10#define DRIVER_LED_TOTAL 81 10#define RGB_MATRIX_LED_COUNT 81
11//#ifdef RGB_DI_PIN 11//#ifdef RGB_DI_PIN
12# define RGBLED_NUM 81 12# define RGBLED_NUM 81
13 13
@@ -17,7 +17,7 @@
17// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 17// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
18# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 18# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
19//# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 19//# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
20// # 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) 20// # 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)
21// # 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) 21// # 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)
22# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 22# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
23# define RGB_MATRIX_HUE_STEP 8 23# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/boardsource/beiwagon/config.h b/keyboards/boardsource/beiwagon/config.h
index 6ce8d2d420..587dda7381 100644
--- a/keyboards/boardsource/beiwagon/config.h
+++ b/keyboards/boardsource/beiwagon/config.h
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#pragma once 18#pragma once
19#define RGB_DI_PIN C6 19#define RGB_DI_PIN C6
20#define DRIVER_LED_TOTAL 18 20#define RGB_MATRIX_LED_COUNT 18
21#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN 21#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
22#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT 22#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
23#define ENABLE_RGB_MATRIX_BREATHING 23#define ENABLE_RGB_MATRIX_BREATHING
diff --git a/keyboards/boardsource/lulu/config.h b/keyboards/boardsource/lulu/config.h
index 8e635a24eb..382b1b6b3f 100644
--- a/keyboards/boardsource/lulu/config.h
+++ b/keyboards/boardsource/lulu/config.h
@@ -3,7 +3,7 @@
3 3
4#pragma once 4#pragma once
5#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 5#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
6#define DRIVER_LED_TOTAL 70 6#define RGB_MATRIX_LED_COUNT 70
7#define RGB_MATRIX_SPLIT { 35, 35 } 7#define RGB_MATRIX_SPLIT { 35, 35 }
8#define ENABLE_RGB_MATRIX_ALPHAS_MODS 8#define ENABLE_RGB_MATRIX_ALPHAS_MODS
9#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN 9#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
diff --git a/keyboards/boardsource/microdox/v2/config.h b/keyboards/boardsource/microdox/v2/config.h
index e6a7ddc16b..4846bf5146 100644
--- a/keyboards/boardsource/microdox/v2/config.h
+++ b/keyboards/boardsource/microdox/v2/config.h
@@ -4,7 +4,7 @@
4 4
5#define RGB_DI_PIN B5 5#define RGB_DI_PIN B5
6#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 6#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
7#define DRIVER_LED_TOTAL 44 7#define RGB_MATRIX_LED_COUNT 44
8#define RGB_MATRIX_SPLIT { 22, 22 } 8#define RGB_MATRIX_SPLIT { 22, 22 }
9#define RGB_DISABLE_WHEN_USB_SUSPENDED 9#define RGB_DISABLE_WHEN_USB_SUSPENDED
10#define ENABLE_RGB_MATRIX_ALPHAS_MODS 10#define ENABLE_RGB_MATRIX_ALPHAS_MODS
diff --git a/keyboards/boardsource/technik_o/config.h b/keyboards/boardsource/technik_o/config.h
index bbaacd33c4..c6edbf1c4e 100644
--- a/keyboards/boardsource/technik_o/config.h
+++ b/keyboards/boardsource/technik_o/config.h
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18#pragma once 18#pragma once
19#define RGB_DI_PIN C6 19#define RGB_DI_PIN C6
20#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 20#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
21#define DRIVER_LED_TOTAL 58 21#define RGB_MATRIX_LED_COUNT 58
22#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN 22#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
23#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT 23#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
24#define ENABLE_RGB_MATRIX_BREATHING 24#define ENABLE_RGB_MATRIX_BREATHING
diff --git a/keyboards/boardsource/technik_s/config.h b/keyboards/boardsource/technik_s/config.h
index 2141a2a0a9..ab4d79147c 100644
--- a/keyboards/boardsource/technik_s/config.h
+++ b/keyboards/boardsource/technik_s/config.h
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18#pragma once 18#pragma once
19#define RGB_DI_PIN C6 19#define RGB_DI_PIN C6
20#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 20#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
21#define DRIVER_LED_TOTAL 55 21#define RGB_MATRIX_LED_COUNT 55
22#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN 22#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
23#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT 23#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
24#define ENABLE_RGB_MATRIX_BREATHING 24#define ENABLE_RGB_MATRIX_BREATHING
diff --git a/keyboards/boardsource/the_mark/config.h b/keyboards/boardsource/the_mark/config.h
index 61628e1821..6d9c9642de 100644
--- a/keyboards/boardsource/the_mark/config.h
+++ b/keyboards/boardsource/the_mark/config.h
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#pragma once 18#pragma once
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20# define DRIVER_LED_TOTAL 24 20# define RGB_MATRIX_LED_COUNT 24
21# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 21# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
22# define RGB_DISABLE_WHEN_USB_SUSPENDED 22# define RGB_DISABLE_WHEN_USB_SUSPENDED
23# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN 23# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
diff --git a/keyboards/boston_meetup/2019/config.h b/keyboards/boston_meetup/2019/config.h
index 7429845958..f69e5f953f 100644
--- a/keyboards/boston_meetup/2019/config.h
+++ b/keyboards/boston_meetup/2019/config.h
@@ -155,7 +155,7 @@
155 155
156#define RGBLED_NUM 10 156#define RGBLED_NUM 10
157#define RGB_DI_PIN B5 157#define RGB_DI_PIN B5
158#define DRIVER_LED_TOTAL RGBLED_NUM 158#define RGB_MATRIX_LED_COUNT RGBLED_NUM
159 159
160#define RGB_MATRIX_KEYPRESSES 160#define RGB_MATRIX_KEYPRESSES
161 161
diff --git a/keyboards/canary/canary60rgb/canary60rgb.c b/keyboards/canary/canary60rgb/canary60rgb.c
index b37a88b32f..c6aca13032 100644
--- a/keyboards/canary/canary60rgb/canary60rgb.c
+++ b/keyboards/canary/canary60rgb/canary60rgb.c
@@ -16,7 +16,7 @@
16 #include "canary60rgb.h" 16 #include "canary60rgb.h"
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 { 0, J_14, K_14, L_14 }, 20 { 0, J_14, K_14, L_14 },
21 { 0, J_13, K_13, L_13 }, 21 { 0, J_13, K_13, L_13 },
22 { 0, J_12, K_12, L_12 }, 22 { 0, J_12, K_12, L_12 },
diff --git a/keyboards/canary/canary60rgb/v1/config.h b/keyboards/canary/canary60rgb/v1/config.h
index 8d3150a5d9..186cf189ae 100644
--- a/keyboards/canary/canary60rgb/v1/config.h
+++ b/keyboards/canary/canary60rgb/v1/config.h
@@ -78,5 +78,5 @@
78# define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH 78# define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
79# define DRIVER_ADDR_1 0b1010000 79# define DRIVER_ADDR_1 0b1010000
80# define DRIVER_COUNT 1 80# define DRIVER_COUNT 1
81# define DRIVER_LED_TOTAL 63 81# define RGB_MATRIX_LED_COUNT 63
82#endif 82#endif
diff --git a/keyboards/capsunlocked/cu80/v2_ansi/config.h b/keyboards/capsunlocked/cu80/v2_ansi/config.h
index 4ff0af5c27..ae8d1cc741 100644
--- a/keyboards/capsunlocked/cu80/v2_ansi/config.h
+++ b/keyboards/capsunlocked/cu80/v2_ansi/config.h
@@ -24,5 +24,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
24#define LOCKING_RESYNC_ENABLE 24#define LOCKING_RESYNC_ENABLE
25 25
26/* Define RGB */ 26/* Define RGB */
27#define DRIVER_LED_TOTAL 87 27#define RGB_MATRIX_LED_COUNT 87
28#define RGBLIGHT_ANIMATIONS 28#define RGBLIGHT_ANIMATIONS
diff --git a/keyboards/capsunlocked/cu80/v2_iso/config.h b/keyboards/capsunlocked/cu80/v2_iso/config.h
index 7980837acf..2411039d93 100644
--- a/keyboards/capsunlocked/cu80/v2_iso/config.h
+++ b/keyboards/capsunlocked/cu80/v2_iso/config.h
@@ -25,5 +25,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
25#define LOCKING_RESYNC_ENABLE 25#define LOCKING_RESYNC_ENABLE
26 26
27/* Define RGB */ 27/* Define RGB */
28#define DRIVER_LED_TOTAL 88 28#define RGB_MATRIX_LED_COUNT 88
29#define RGBLIGHT_ANIMATIONS 29#define RGBLIGHT_ANIMATIONS
diff --git a/keyboards/checkerboards/quark_lp/config.h b/keyboards/checkerboards/quark_lp/config.h
index b4664ec5c2..a1d7533f8a 100644
--- a/keyboards/checkerboards/quark_lp/config.h
+++ b/keyboards/checkerboards/quark_lp/config.h
@@ -41,7 +41,7 @@
41#define RGB_DI_PIN C2 // pin the DI on the ws2812 is hooked-up to 41#define RGB_DI_PIN C2 // pin the DI on the ws2812 is hooked-up to
42 42
43#ifdef RGB_MATRIX_ENABLE 43#ifdef RGB_MATRIX_ENABLE
44#define DRIVER_LED_TOTAL 51 44#define RGB_MATRIX_LED_COUNT 51
45#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 45#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
46#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 46#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
47#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 125 // limits maximum brightness of LEDs to 125 out of 255. Higher may cause the controller to crash. 47#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 125 // limits maximum brightness of LEDs to 125 out of 255. Higher may cause the controller to crash.
diff --git a/keyboards/cherrybstudio/cb87rgb/config.h b/keyboards/cherrybstudio/cb87rgb/config.h
index d915e59c7f..9a9c70167e 100644
--- a/keyboards/cherrybstudio/cb87rgb/config.h
+++ b/keyboards/cherrybstudio/cb87rgb/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
41#define DEBOUNCE 5 41#define DEBOUNCE 5
42 42
43#define RGB_DI_PIN E6 43#define RGB_DI_PIN E6
44#define DRIVER_LED_TOTAL 92 44#define RGB_MATRIX_LED_COUNT 92
45#define RGB_DISABLE_WHEN_USB_SUSPENDED 45#define RGB_DISABLE_WHEN_USB_SUSPENDED
46#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 46#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
47#define RGB_MATRIX_LED_FLUSH_LIMIT 16 47#define RGB_MATRIX_LED_FLUSH_LIMIT 16
diff --git a/keyboards/chromatonemini/config.h b/keyboards/chromatonemini/config.h
index 49b8eef7a8..e92f84ba87 100644
--- a/keyboards/chromatonemini/config.h
+++ b/keyboards/chromatonemini/config.h
@@ -88,7 +88,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
88#ifdef RGB_MATRIX_ENABLE 88#ifdef RGB_MATRIX_ENABLE
89 89
90/* ws2812 RGB MATRIX */ 90/* ws2812 RGB MATRIX */
91# define DRIVER_LED_TOTAL 116 91# define RGB_MATRIX_LED_COUNT 116
92 92
93 // reacts to keypresses 93 // reacts to keypresses
94# define RGB_MATRIX_KEYPRESSES 94# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/chromatonemini/rgb_matrix_kb.inc b/keyboards/chromatonemini/rgb_matrix_kb.inc
index 4fe474e12c..09877e1a31 100644
--- a/keyboards/chromatonemini/rgb_matrix_kb.inc
+++ b/keyboards/chromatonemini/rgb_matrix_kb.inc
@@ -42,7 +42,7 @@ bool my_solid_reactive_col(effect_params_t* params) {
42 RGB rgb = rgb_matrix_hsv_to_rgb(hsv); 42 RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
43 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 43 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
44 } 44 }
45 return led_max < DRIVER_LED_TOTAL; 45 return led_max < RGB_MATRIX_LED_COUNT;
46} 46}
47 47
48bool my_party_rocks(effect_params_t* params) { 48bool my_party_rocks(effect_params_t* params) {
@@ -51,7 +51,7 @@ bool my_party_rocks(effect_params_t* params) {
51 RGB rgb = rgb_matrix_hsv_to_rgb(hsv); 51 RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
52 // rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 52 // rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
53 rgb_matrix_set_color_all(rgb.r, rgb.g, rgb.b); 53 rgb_matrix_set_color_all(rgb.r, rgb.g, rgb.b);
54 return led_max < DRIVER_LED_TOTAL; 54 return led_max < RGB_MATRIX_LED_COUNT;
55} 55}
56 56
57# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS 57# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
diff --git a/keyboards/clueboard/66_hotswap/gen1/config.h b/keyboards/clueboard/66_hotswap/gen1/config.h
index b1bf6b3543..8fce4af364 100644
--- a/keyboards/clueboard/66_hotswap/gen1/config.h
+++ b/keyboards/clueboard/66_hotswap/gen1/config.h
@@ -79,7 +79,7 @@
79#define I2C1_SDA_PIN B9 79#define I2C1_SDA_PIN B9
80 80
81#define LED_DRIVER_COUNT 1 81#define LED_DRIVER_COUNT 1
82#define DRIVER_LED_TOTAL 71 82#define LED_MATRIX_LED_COUNT 71
83 83
84// LED Matrix Animation modes. Explicitly enabled 84// LED Matrix Animation modes. Explicitly enabled
85// For full list of effects, see: 85// For full list of effects, see:
diff --git a/keyboards/clueboard/66_hotswap/gen1/gen1.c b/keyboards/clueboard/66_hotswap/gen1/gen1.c
index 66c40731ec..1d70f8b8b1 100644
--- a/keyboards/clueboard/66_hotswap/gen1/gen1.c
+++ b/keyboards/clueboard/66_hotswap/gen1/gen1.c
@@ -16,7 +16,7 @@
16#include "gen1.h" 16#include "gen1.h"
17 17
18#ifdef LED_MATRIX_ENABLE 18#ifdef LED_MATRIX_ENABLE
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[LED_MATRIX_LED_COUNT] = {
20/* Refer to IS31 manual for these locations 20/* Refer to IS31 manual for these locations
21 * driver 21 * driver
22 * | LED address 22 * | LED address
diff --git a/keyboards/crkbd/keymaps/bermeo/config.h b/keyboards/crkbd/keymaps/bermeo/config.h
index 567497afbe..cc83148d87 100644
--- a/keyboards/crkbd/keymaps/bermeo/config.h
+++ b/keyboards/crkbd/keymaps/bermeo/config.h
@@ -77,7 +77,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
77// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 77// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
78# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 78# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
79# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 79# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
80# 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) 80# 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)
81# 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) 81# 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)
82# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 82# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
83# define RGB_MATRIX_HUE_STEP 8 83# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/crkbd/keymaps/bermeo/keymap.c b/keyboards/crkbd/keymaps/bermeo/keymap.c
index ad1dc92450..8c3d368ca0 100644
--- a/keyboards/crkbd/keymaps/bermeo/keymap.c
+++ b/keyboards/crkbd/keymaps/bermeo/keymap.c
@@ -87,7 +87,7 @@ void rgb_matrix_indicators_user(void) {
87 case _QWERTY: 87 case _QWERTY:
88 isSneaking = false; 88 isSneaking = false;
89 mod_state = get_mods(); 89 mod_state = get_mods();
90 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 90 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
91 if (mod_state & MOD_MASK_SHIFT) { 91 if (mod_state & MOD_MASK_SHIFT) {
92 isBarking = true; 92 isBarking = true;
93 rgb_matrix_set_color(52, 255, 255, 255); 93 rgb_matrix_set_color(52, 255, 255, 255);
@@ -135,7 +135,7 @@ void rgb_matrix_indicators_user(void) {
135 135
136 case _RAISE: 136 case _RAISE:
137 isSneaking = true; 137 isSneaking = true;
138 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 138 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
139 switch (i) { 139 switch (i) {
140 case 7: // B key off 140 case 7: // B key off
141 case 8: // G key off 141 case 8: // G key off
@@ -169,7 +169,7 @@ void rgb_matrix_indicators_user(void) {
169 169
170 case _LOWER: 170 case _LOWER:
171 isSneaking = true; 171 isSneaking = true;
172 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 172 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
173 switch (i) { 173 switch (i) {
174 case 7: // Delete key 174 case 7: // Delete key
175 case 51: // ESC key 175 case 51: // ESC key
@@ -210,7 +210,7 @@ void rgb_matrix_indicators_user(void) {
210 210
211 case _NUMP: 211 case _NUMP:
212 isSneaking = true; 212 isSneaking = true;
213 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 213 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
214 switch (i) { 214 switch (i) {
215 case 12: // RGB speed- 215 case 12: // RGB speed-
216 case 15: // RGB brigthness- 216 case 15: // RGB brigthness-
diff --git a/keyboards/crkbd/keymaps/crkdves/config.h b/keyboards/crkbd/keymaps/crkdves/config.h
index 4e5df394ac..31d23fdff7 100644
--- a/keyboards/crkbd/keymaps/crkdves/config.h
+++ b/keyboards/crkbd/keymaps/crkdves/config.h
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
56// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 56// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
57# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 57# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
58# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 58# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
59# 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) 59# 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)
60# 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) 60# 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)
61# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 61# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
62# define RGB_MATRIX_HUE_STEP 8 62# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/crkbd/keymaps/crkqwes/config.h b/keyboards/crkbd/keymaps/crkqwes/config.h
index aacd9c04f4..7c97ea0831 100644
--- a/keyboards/crkbd/keymaps/crkqwes/config.h
+++ b/keyboards/crkbd/keymaps/crkqwes/config.h
@@ -65,7 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
65// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 65// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
66# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 66# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
67# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 67# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
68# 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) 68# 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)
69# 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) 69# 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)
70# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 70# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
71# define RGB_MATRIX_HUE_STEP 8 71# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/crkbd/keymaps/davidrambo/config.h b/keyboards/crkbd/keymaps/davidrambo/config.h
index df5e0611e1..969ce07c8d 100644
--- a/keyboards/crkbd/keymaps/davidrambo/config.h
+++ b/keyboards/crkbd/keymaps/davidrambo/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
41 // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 41 // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
42# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 42# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
43#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 43#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
44 // # 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) 44 // # 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)
45 // # 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) 45 // # 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)
46 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 46 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
47 #define RGB_MATRIX_HUE_STEP 8 47 #define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/crkbd/keymaps/devdev/config.h b/keyboards/crkbd/keymaps/devdev/config.h
index 4848af2245..c3db01f145 100644
--- a/keyboards/crkbd/keymaps/devdev/config.h
+++ b/keyboards/crkbd/keymaps/devdev/config.h
@@ -73,7 +73,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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 // turn off effects when suspended 74# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
75# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 75# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
76// # 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) 76// # 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)
77// # 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) 77// # 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)
78# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 78# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
79 79
diff --git a/keyboards/crkbd/keymaps/kidbrazil/config.h b/keyboards/crkbd/keymaps/kidbrazil/config.h
index ab67b42829..b82e4c9344 100644
--- a/keyboards/crkbd/keymaps/kidbrazil/config.h
+++ b/keyboards/crkbd/keymaps/kidbrazil/config.h
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
53 // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 53 // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
54 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 54 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
55 #define RGB_MATRIX_FRAMEBUFFER_EFFECTS 55 #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
56 // # 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) 56 // # 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)
57 // # 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) 57 // # 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)
58 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 58 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
59 #define RGB_MATRIX_HUE_STEP 4 59 #define RGB_MATRIX_HUE_STEP 4
diff --git a/keyboards/crkbd/keymaps/ollyhayes/config.h b/keyboards/crkbd/keymaps/ollyhayes/config.h
index b7653e1c9a..d302c0b4ef 100644
--- a/keyboards/crkbd/keymaps/ollyhayes/config.h
+++ b/keyboards/crkbd/keymaps/ollyhayes/config.h
@@ -33,7 +33,7 @@
33// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 33// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
34# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 34# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
35# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 35# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
36// # 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) 36// # 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)
37// # 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) 37// # 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)
38# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 38# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
39# define RGB_MATRIX_HUE_STEP 8 39# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/crkbd/keymaps/rpbaptist/keymap.c b/keyboards/crkbd/keymaps/rpbaptist/keymap.c
index a0186bf28d..cdd0a5dacb 100644
--- a/keyboards/crkbd/keymaps/rpbaptist/keymap.c
+++ b/keyboards/crkbd/keymaps/rpbaptist/keymap.c
@@ -324,7 +324,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t led_
324 } 324 }
325 325
326 RGB rgb = hsv_to_rgb(hsv); 326 RGB rgb = hsv_to_rgb(hsv);
327 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 327 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
328 if (HAS_FLAGS(g_led_config.flags[i], led_type)) { 328 if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
329 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 329 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
330 } 330 }
diff --git a/keyboards/crkbd/keymaps/soundmonster/config.h b/keyboards/crkbd/keymaps/soundmonster/config.h
index 12d62175ae..bafd346111 100644
--- a/keyboards/crkbd/keymaps/soundmonster/config.h
+++ b/keyboards/crkbd/keymaps/soundmonster/config.h
@@ -61,7 +61,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
61// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 61// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
62# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 62# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
63# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 63# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
64# 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) 64# 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)
65# 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) 65# 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)
66# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 66# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
67# define RGB_MATRIX_HUE_STEP 8 67# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/crkbd/keymaps/toinux/config.h b/keyboards/crkbd/keymaps/toinux/config.h
index e7a18800d8..2cd1363a4d 100644
--- a/keyboards/crkbd/keymaps/toinux/config.h
+++ b/keyboards/crkbd/keymaps/toinux/config.h
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
54// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 54// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
55# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 55# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
56# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 56# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
57// # 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) 57// # 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)
58// # 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) 58// # 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)
59# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 59# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
60# define RGB_MATRIX_HUE_STEP 8 60# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/crkbd/keymaps/xyverz/config.h b/keyboards/crkbd/keymaps/xyverz/config.h
index fc5b2bd74c..5ac13a6646 100644
--- a/keyboards/crkbd/keymaps/xyverz/config.h
+++ b/keyboards/crkbd/keymaps/xyverz/config.h
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
48 48
49#ifdef RGB_MATRIX_ENABLE 49#ifdef RGB_MATRIX_ENABLE
50 #define RGBLED_NUM 54 // Number of LEDs 50 #define RGBLED_NUM 54 // Number of LEDs
51 #define DRIVER_LED_TOTAL RGBLED_NUM 51 #define RGB_MATRIX_LED_COUNT RGBLED_NUM
52#endif 52#endif
53 53
54#define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c" 54#define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c"
diff --git a/keyboards/crkbd/r2g/config.h b/keyboards/crkbd/r2g/config.h
index 877a59fcc6..450b62cd8f 100644
--- a/keyboards/crkbd/r2g/config.h
+++ b/keyboards/crkbd/r2g/config.h
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
44 44
45#ifdef RGB_MATRIX_ENABLE 45#ifdef RGB_MATRIX_ENABLE
46# define RGBLED_NUM 54 // Number of LEDs 46# define RGBLED_NUM 54 // Number of LEDs
47# define DRIVER_LED_TOTAL RGBLED_NUM 47# define RGB_MATRIX_LED_COUNT RGBLED_NUM
48# define RGB_MATRIX_SPLIT \ 48# define RGB_MATRIX_SPLIT \
49 { 27, 27 } 49 { 27, 27 }
50# define SPLIT_TRANSPORT_MIRROR 50# define SPLIT_TRANSPORT_MIRROR
diff --git a/keyboards/crkbd/readme.md b/keyboards/crkbd/readme.md
index 6c0e859663..3e8d8f8ba4 100644
--- a/keyboards/crkbd/readme.md
+++ b/keyboards/crkbd/readme.md
@@ -46,7 +46,7 @@ And in your `config.h` file, add the following:
46// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 46// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
47# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 47# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
48# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 48# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
49// # 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) 49// # 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)
50// # 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) 50// # 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)
51# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 51# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
52# define RGB_MATRIX_HUE_STEP 8 52# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/crkbd/rev1/config.h b/keyboards/crkbd/rev1/config.h
index d2a5a6b2c8..c764f1a40e 100644
--- a/keyboards/crkbd/rev1/config.h
+++ b/keyboards/crkbd/rev1/config.h
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
32 32
33#ifdef RGB_MATRIX_ENABLE 33#ifdef RGB_MATRIX_ENABLE
34# define RGBLED_NUM 54 // Number of LEDs 34# define RGBLED_NUM 54 // Number of LEDs
35# define DRIVER_LED_TOTAL RGBLED_NUM 35# define RGB_MATRIX_LED_COUNT RGBLED_NUM
36# define RGB_MATRIX_SPLIT \ 36# define RGB_MATRIX_SPLIT \
37 { 27, 27 } 37 { 27, 27 }
38# define SPLIT_TRANSPORT_MIRROR 38# define SPLIT_TRANSPORT_MIRROR
diff --git a/keyboards/dekunukem/duckypad/config.h b/keyboards/dekunukem/duckypad/config.h
index ca339f6e1b..2a92a2b205 100644
--- a/keyboards/dekunukem/duckypad/config.h
+++ b/keyboards/dekunukem/duckypad/config.h
@@ -29,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
29 29
30#define RGB_DI_PIN A10 30#define RGB_DI_PIN A10
31#define RGBLED_NUM 15 31#define RGBLED_NUM 15
32#define DRIVER_LED_TOTAL 15 32#define RGB_MATRIX_LED_COUNT 15
33 33
34#ifdef RGB_MATRIX_ENABLE 34#ifdef RGB_MATRIX_ENABLE
35 35
diff --git a/keyboards/doio/kb16/config.h b/keyboards/doio/kb16/config.h
index 911ba9d3d5..1c37ece514 100644
--- a/keyboards/doio/kb16/config.h
+++ b/keyboards/doio/kb16/config.h
@@ -49,7 +49,7 @@
49#ifdef RGB_MATRIX_ENABLE 49#ifdef RGB_MATRIX_ENABLE
50 /* RGB Matrix config */ 50 /* RGB Matrix config */
51 #define RGB_DI_PIN F6 51 #define RGB_DI_PIN F6
52 #define DRIVER_LED_TOTAL 16 52 #define RGB_MATRIX_LED_COUNT 16
53 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 53 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
54 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 54 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
55 #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_UP_DOWN 55 #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_UP_DOWN
diff --git a/keyboards/doro67/rgb/config.h b/keyboards/doro67/rgb/config.h
index dfd0cde6d8..cc43b08fbf 100644
--- a/keyboards/doro67/rgb/config.h
+++ b/keyboards/doro67/rgb/config.h
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
45// The pin connected to the data pin of the LEDs 45// The pin connected to the data pin of the LEDs
46#define RGB_DI_PIN B7 46#define RGB_DI_PIN B7
47// The number of LEDs connected 47// The number of LEDs connected
48#define DRIVER_LED_TOTAL 67 48#define RGB_MATRIX_LED_COUNT 67
49 49
50#define RGB_MATRIX_KEYPRESSES 50#define RGB_MATRIX_KEYPRESSES
51// RGB Matrix Animation modes. Explicitly enabled 51// RGB Matrix Animation modes. Explicitly enabled
diff --git a/keyboards/dp60/config.h b/keyboards/dp60/config.h
index ad7fee9009..d5198176b7 100644
--- a/keyboards/dp60/config.h
+++ b/keyboards/dp60/config.h
@@ -50,7 +50,7 @@
50#define DRIVER_COUNT 2 50#define DRIVER_COUNT 2
51#define DRIVER_1_LED_TOTAL 36 51#define DRIVER_1_LED_TOTAL 36
52#define DRIVER_2_LED_TOTAL 36 52#define DRIVER_2_LED_TOTAL 36
53#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 53#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
54// RGB Matrix Animation modes. Explicitly enabled 54// RGB Matrix Animation modes. Explicitly enabled
55// For full list of effects, see: 55// For full list of effects, see:
56// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects 56// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
diff --git a/keyboards/dp60/dp60.c b/keyboards/dp60/dp60.c
index 16aac75fa5..5612568779 100644
--- a/keyboards/dp60/dp60.c
+++ b/keyboards/dp60/dp60.c
@@ -17,7 +17,7 @@
17#include "dp60.h" 17#include "dp60.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/dtisaac/dosa40rgb/config.h b/keyboards/dtisaac/dosa40rgb/config.h
index 2651a4d9b5..60e5b1fcf3 100644
--- a/keyboards/dtisaac/dosa40rgb/config.h
+++ b/keyboards/dtisaac/dosa40rgb/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
41 41
42#ifdef RGB_MATRIX_ENABLE 42#ifdef RGB_MATRIX_ENABLE
43#define RGB_DI_PIN D0 43#define RGB_DI_PIN D0
44#define DRIVER_LED_TOTAL 42 44#define RGB_MATRIX_LED_COUNT 42
45#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 45#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
46#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 46#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
47#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 47#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/durgod/dgk6x/config.h b/keyboards/durgod/dgk6x/config.h
index bfb3f2ba9d..70247fd745 100644
--- a/keyboards/durgod/dgk6x/config.h
+++ b/keyboards/durgod/dgk6x/config.h
@@ -62,7 +62,7 @@
62#define DRIVER_ADDR_2 0b1010011 62#define DRIVER_ADDR_2 0b1010011
63 63
64#define DRIVER_COUNT 2 64#define DRIVER_COUNT 2
65#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 65#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
66 66
67/* I2C Alternate function settings */ 67/* I2C Alternate function settings */
68#define I2C1_SCL_PAL_MODE 1 68#define I2C1_SCL_PAL_MODE 1
diff --git a/keyboards/durgod/dgk6x/galaxy/galaxy.c b/keyboards/durgod/dgk6x/galaxy/galaxy.c
index 86aef1bced..dac96e04f3 100644
--- a/keyboards/durgod/dgk6x/galaxy/galaxy.c
+++ b/keyboards/durgod/dgk6x/galaxy/galaxy.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22/* Refer to IS31 manual for these locations 22/* Refer to IS31 manual for these locations
23 * driver 23 * driver
24 * | R location 24 * | R location
diff --git a/keyboards/durgod/dgk6x/hades/hades.c b/keyboards/durgod/dgk6x/hades/hades.c
index 2f2f9e650f..3d39f6d1ec 100644
--- a/keyboards/durgod/dgk6x/hades/hades.c
+++ b/keyboards/durgod/dgk6x/hades/hades.c
@@ -19,7 +19,7 @@
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21 21
22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
23/* Refer to IS31 manual for these locations 23/* Refer to IS31 manual for these locations
24 * driver 24 * driver
25 * | R location 25 * | R location
diff --git a/keyboards/durgod/dgk6x/venus/venus.c b/keyboards/durgod/dgk6x/venus/venus.c
index 0b7fbd12f3..1f26191a91 100644
--- a/keyboards/durgod/dgk6x/venus/venus.c
+++ b/keyboards/durgod/dgk6x/venus/venus.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22/* Refer to IS31 manual for these locations 22/* Refer to IS31 manual for these locations
23 * driver 23 * driver
24 * | R location 24 * | R location
diff --git a/keyboards/dztech/dz60rgb/dz60rgb.c b/keyboards/dztech/dz60rgb/dz60rgb.c
index 81f4846c2c..0a7a2adfc6 100644
--- a/keyboards/dztech/dz60rgb/dz60rgb.c
+++ b/keyboards/dztech/dz60rgb/dz60rgb.c
@@ -1,7 +1,7 @@
1#include "dz60rgb.h" 1#include "dz60rgb.h"
2 2
3#ifdef RGB_MATRIX_ENABLE 3#ifdef RGB_MATRIX_ENABLE
4const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
5 { 0, K_14, J_14, L_14 }, 5 { 0, K_14, J_14, L_14 },
6 { 0, K_13, J_13, L_13 }, 6 { 0, K_13, J_13, L_13 },
7 { 0, K_12, J_12, L_12 }, 7 { 0, K_12, J_12, L_12 },
diff --git a/keyboards/dztech/dz60rgb/keymaps/mekanist/keymap.c b/keyboards/dztech/dz60rgb/keymaps/mekanist/keymap.c
index 3fe99fd61b..d2905af49f 100644
--- a/keyboards/dztech/dz60rgb/keymaps/mekanist/keymap.c
+++ b/keyboards/dztech/dz60rgb/keymaps/mekanist/keymap.c
@@ -50,7 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50 50
51 51
52void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { 52void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) {
53 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 53 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
54 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { 54 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
55 rgb_matrix_set_color( i, red, green, blue ); 55 rgb_matrix_set_color( i, red, green, blue );
56 } 56 }
diff --git a/keyboards/dztech/dz60rgb/keymaps/perseid/keymap.c b/keyboards/dztech/dz60rgb/keymaps/perseid/keymap.c
index eeffe66f40..191789199a 100644
--- a/keyboards/dztech/dz60rgb/keymaps/perseid/keymap.c
+++ b/keyboards/dztech/dz60rgb/keymaps/perseid/keymap.c
@@ -27,7 +27,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27}; 27};
28 28
29void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { 29void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) {
30 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 30 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
31 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { 31 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
32 rgb_matrix_set_color( i, red, green, blue ); 32 rgb_matrix_set_color( i, red, green, blue );
33 } 33 }
diff --git a/keyboards/dztech/dz60rgb/v1/config.h b/keyboards/dztech/dz60rgb/v1/config.h
index b150e4a162..5933d23ea3 100644
--- a/keyboards/dztech/dz60rgb/v1/config.h
+++ b/keyboards/dztech/dz60rgb/v1/config.h
@@ -81,5 +81,5 @@
81# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 81# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
82# define DRIVER_ADDR_1 0b1010000 82# define DRIVER_ADDR_1 0b1010000
83# define DRIVER_COUNT 1 83# define DRIVER_COUNT 1
84# define DRIVER_LED_TOTAL 63 84# define RGB_MATRIX_LED_COUNT 63
85#endif 85#endif
diff --git a/keyboards/dztech/dz60rgb/v2/config.h b/keyboards/dztech/dz60rgb/v2/config.h
index 3c6d07121b..296e68a8b4 100644
--- a/keyboards/dztech/dz60rgb/v2/config.h
+++ b/keyboards/dztech/dz60rgb/v2/config.h
@@ -79,5 +79,5 @@
79 79
80# define DRIVER_ADDR_1 0b1010000 80# define DRIVER_ADDR_1 0b1010000
81# define DRIVER_COUNT 1 81# define DRIVER_COUNT 1
82# define DRIVER_LED_TOTAL 63 82# define RGB_MATRIX_LED_COUNT 63
83#endif 83#endif
diff --git a/keyboards/dztech/dz60rgb/v2_1/config.h b/keyboards/dztech/dz60rgb/v2_1/config.h
index 2079390a3b..ffbc547d38 100644
--- a/keyboards/dztech/dz60rgb/v2_1/config.h
+++ b/keyboards/dztech/dz60rgb/v2_1/config.h
@@ -95,5 +95,5 @@
95 95
96# define DRIVER_ADDR_1 0b1010000 96# define DRIVER_ADDR_1 0b1010000
97# define DRIVER_COUNT 1 97# define DRIVER_COUNT 1
98# define DRIVER_LED_TOTAL 63 98# define RGB_MATRIX_LED_COUNT 63
99#endif 99#endif
diff --git a/keyboards/dztech/dz60rgb_ansi/dz60rgb_ansi.c b/keyboards/dztech/dz60rgb_ansi/dz60rgb_ansi.c
index 0929ddbf47..ea4fa429ac 100644
--- a/keyboards/dztech/dz60rgb_ansi/dz60rgb_ansi.c
+++ b/keyboards/dztech/dz60rgb_ansi/dz60rgb_ansi.c
@@ -1,7 +1,7 @@
1#include "dz60rgb_ansi.h" 1#include "dz60rgb_ansi.h"
2 2
3#ifdef RGB_MATRIX_ENABLE 3#ifdef RGB_MATRIX_ENABLE
4const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
5 { 0, K_14, J_14, L_14 }, 5 { 0, K_14, J_14, L_14 },
6 { 0, K_13, J_13, L_13 }, 6 { 0, K_13, J_13, L_13 },
7 { 0, K_12, J_12, L_12 }, 7 { 0, K_12, J_12, L_12 },
diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/keymap.c b/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/keymap.c
index aae1173988..239e4ea8ba 100644
--- a/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/keymap.c
+++ b/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/keymap.c
@@ -74,7 +74,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
74}; 74};
75 75
76void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { 76void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) {
77 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 77 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
78 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { 78 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
79 rgb_matrix_set_color( i, red, green, blue ); 79 rgb_matrix_set_color( i, red, green, blue );
80 } 80 }
diff --git a/keyboards/dztech/dz60rgb_ansi/v1/config.h b/keyboards/dztech/dz60rgb_ansi/v1/config.h
index 9b31f27f2f..3148c745ef 100644
--- a/keyboards/dztech/dz60rgb_ansi/v1/config.h
+++ b/keyboards/dztech/dz60rgb_ansi/v1/config.h
@@ -81,5 +81,5 @@
81# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 81# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
82# define DRIVER_ADDR_1 0b1010000 82# define DRIVER_ADDR_1 0b1010000
83# define DRIVER_COUNT 1 83# define DRIVER_COUNT 1
84# define DRIVER_LED_TOTAL 61 84# define RGB_MATRIX_LED_COUNT 61
85#endif 85#endif
diff --git a/keyboards/dztech/dz60rgb_ansi/v2/config.h b/keyboards/dztech/dz60rgb_ansi/v2/config.h
index 92fcd17c88..c7baf23c5a 100644
--- a/keyboards/dztech/dz60rgb_ansi/v2/config.h
+++ b/keyboards/dztech/dz60rgb_ansi/v2/config.h
@@ -79,5 +79,5 @@
79 79
80# define DRIVER_ADDR_1 0b1010000 80# define DRIVER_ADDR_1 0b1010000
81# define DRIVER_COUNT 1 81# define DRIVER_COUNT 1
82# define DRIVER_LED_TOTAL 61 82# define RGB_MATRIX_LED_COUNT 61
83#endif 83#endif
diff --git a/keyboards/dztech/dz60rgb_ansi/v2_1/config.h b/keyboards/dztech/dz60rgb_ansi/v2_1/config.h
index 7ec226c30b..27bf2270c8 100644
--- a/keyboards/dztech/dz60rgb_ansi/v2_1/config.h
+++ b/keyboards/dztech/dz60rgb_ansi/v2_1/config.h
@@ -95,5 +95,5 @@
95 95
96# define DRIVER_ADDR_1 0b1010000 96# define DRIVER_ADDR_1 0b1010000
97# define DRIVER_COUNT 1 97# define DRIVER_COUNT 1
98# define DRIVER_LED_TOTAL 61 98# define RGB_MATRIX_LED_COUNT 61
99#endif 99#endif
diff --git a/keyboards/dztech/dz60rgb_wkl/dz60rgb_wkl.c b/keyboards/dztech/dz60rgb_wkl/dz60rgb_wkl.c
index 83feb58456..53d0e9fa14 100644
--- a/keyboards/dztech/dz60rgb_wkl/dz60rgb_wkl.c
+++ b/keyboards/dztech/dz60rgb_wkl/dz60rgb_wkl.c
@@ -1,7 +1,7 @@
1#include "dz60rgb_wkl.h" 1#include "dz60rgb_wkl.h"
2 2
3#ifdef RGB_MATRIX_ENABLE 3#ifdef RGB_MATRIX_ENABLE
4const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
5 { 0, H_15, G_15, I_15 }, 5 { 0, H_15, G_15, I_15 },
6 { 0, K_14, J_14, L_14 }, 6 { 0, K_14, J_14, L_14 },
7 { 0, K_13, J_13, L_13 }, 7 { 0, K_13, J_13, L_13 },
diff --git a/keyboards/dztech/dz60rgb_wkl/v1/config.h b/keyboards/dztech/dz60rgb_wkl/v1/config.h
index d7d8c3a0a1..ba747af060 100644
--- a/keyboards/dztech/dz60rgb_wkl/v1/config.h
+++ b/keyboards/dztech/dz60rgb_wkl/v1/config.h
@@ -81,5 +81,5 @@
81# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 81# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
82# define DRIVER_ADDR_1 0b1010000 82# define DRIVER_ADDR_1 0b1010000
83# define DRIVER_COUNT 1 83# define DRIVER_COUNT 1
84# define DRIVER_LED_TOTAL 62 84# define RGB_MATRIX_LED_COUNT 62
85#endif 85#endif
diff --git a/keyboards/dztech/dz60rgb_wkl/v2/config.h b/keyboards/dztech/dz60rgb_wkl/v2/config.h
index a4416e806c..67b6d61b0a 100644
--- a/keyboards/dztech/dz60rgb_wkl/v2/config.h
+++ b/keyboards/dztech/dz60rgb_wkl/v2/config.h
@@ -76,5 +76,5 @@
76 76
77# define DRIVER_ADDR_1 0b1010000 77# define DRIVER_ADDR_1 0b1010000
78# define DRIVER_COUNT 1 78# define DRIVER_COUNT 1
79# define DRIVER_LED_TOTAL 62 79# define RGB_MATRIX_LED_COUNT 62
80#endif 80#endif
diff --git a/keyboards/dztech/dz60rgb_wkl/v2_1/config.h b/keyboards/dztech/dz60rgb_wkl/v2_1/config.h
index 3803b4834f..24ce267e1b 100644
--- a/keyboards/dztech/dz60rgb_wkl/v2_1/config.h
+++ b/keyboards/dztech/dz60rgb_wkl/v2_1/config.h
@@ -95,5 +95,5 @@
95 95
96# define DRIVER_ADDR_1 0b1010000 96# define DRIVER_ADDR_1 0b1010000
97# define DRIVER_COUNT 1 97# define DRIVER_COUNT 1
98# define DRIVER_LED_TOTAL 62 98# define RGB_MATRIX_LED_COUNT 62
99#endif 99#endif
diff --git a/keyboards/dztech/dz64rgb/config.h b/keyboards/dztech/dz64rgb/config.h
index 11f623c1bd..c90b14a5f5 100644
--- a/keyboards/dztech/dz64rgb/config.h
+++ b/keyboards/dztech/dz64rgb/config.h
@@ -59,6 +59,6 @@
59#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 59#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
60#define DRIVER_ADDR_1 0b1010000 60#define DRIVER_ADDR_1 0b1010000
61#define DRIVER_COUNT 1 61#define DRIVER_COUNT 1
62#define DRIVER_LED_TOTAL 64 62#define RGB_MATRIX_LED_COUNT 64
63#endif 63#endif
64#define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2 64#define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2
diff --git a/keyboards/dztech/dz64rgb/dz64rgb.c b/keyboards/dztech/dz64rgb/dz64rgb.c
index 3850dbe276..e6b218fea6 100644
--- a/keyboards/dztech/dz64rgb/dz64rgb.c
+++ b/keyboards/dztech/dz64rgb/dz64rgb.c
@@ -17,7 +17,7 @@
17#include "dz64rgb.h" 17#include "dz64rgb.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 { 0, K_14, J_14, L_14 }, 21 { 0, K_14, J_14, L_14 },
22 { 0, K_13, J_13, L_13 }, 22 { 0, K_13, J_13, L_13 },
23 { 0, K_12, J_12, L_12 }, 23 { 0, K_12, J_12, L_12 },
diff --git a/keyboards/dztech/dz65rgb/v1/config.h b/keyboards/dztech/dz65rgb/v1/config.h
index 0ae5173051..09ae7b81f5 100644
--- a/keyboards/dztech/dz65rgb/v1/config.h
+++ b/keyboards/dztech/dz65rgb/v1/config.h
@@ -97,5 +97,5 @@
97# define DRIVER_COUNT 2 97# define DRIVER_COUNT 2
98# define DRIVER_1_LED_TOTAL 35 98# define DRIVER_1_LED_TOTAL 35
99# define DRIVER_2_LED_TOTAL 33 99# define DRIVER_2_LED_TOTAL 33
100# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 100# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
101#endif 101#endif
diff --git a/keyboards/dztech/dz65rgb/v1/v1.c b/keyboards/dztech/dz65rgb/v1/v1.c
index 8caced800b..e0f12bb6cd 100644
--- a/keyboards/dztech/dz65rgb/v1/v1.c
+++ b/keyboards/dztech/dz65rgb/v1/v1.c
@@ -16,7 +16,7 @@
16#include "v1.h" 16#include "v1.h"
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 { 0, C8_8, C7_8, C6_8 }, 20 { 0, C8_8, C7_8, C6_8 },
21 { 0, C9_8, C7_7, C6_7 }, 21 { 0, C9_8, C7_7, C6_7 },
22 { 0, C9_7, C8_7, C6_6 }, 22 { 0, C9_7, C8_7, C6_6 },
diff --git a/keyboards/dztech/dz65rgb/v2/config.h b/keyboards/dztech/dz65rgb/v2/config.h
index d2dec023ef..043796456d 100644
--- a/keyboards/dztech/dz65rgb/v2/config.h
+++ b/keyboards/dztech/dz65rgb/v2/config.h
@@ -97,5 +97,5 @@
97# define DRIVER_COUNT 2 97# define DRIVER_COUNT 2
98# define DRIVER_1_LED_TOTAL 35 98# define DRIVER_1_LED_TOTAL 35
99# define DRIVER_2_LED_TOTAL 33 99# define DRIVER_2_LED_TOTAL 33
100# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 100# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
101#endif 101#endif
diff --git a/keyboards/dztech/dz65rgb/v2/v2.c b/keyboards/dztech/dz65rgb/v2/v2.c
index db8e968cc4..f9833b2142 100644
--- a/keyboards/dztech/dz65rgb/v2/v2.c
+++ b/keyboards/dztech/dz65rgb/v2/v2.c
@@ -16,7 +16,7 @@
16#include "v2.h" 16#include "v2.h"
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 { 0, C8_8, C7_8, C6_8 }, 20 { 0, C8_8, C7_8, C6_8 },
21 { 0, C9_8, C7_7, C6_7 }, 21 { 0, C9_8, C7_7, C6_7 },
22 { 0, C9_7, C8_7, C6_6 }, 22 { 0, C9_7, C8_7, C6_6 },
diff --git a/keyboards/dztech/dz65rgb/v3/config.h b/keyboards/dztech/dz65rgb/v3/config.h
index ed7775a74b..04c813cad5 100755
--- a/keyboards/dztech/dz65rgb/v3/config.h
+++ b/keyboards/dztech/dz65rgb/v3/config.h
@@ -89,6 +89,6 @@
89# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 89# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
90# define DRIVER_ADDR_1 0b0110000 90# define DRIVER_ADDR_1 0b0110000
91# define DRIVER_COUNT 1 91# define DRIVER_COUNT 1
92# define DRIVER_LED_TOTAL 68 92# define RGB_MATRIX_LED_COUNT 68
93# define DRIVER_INDICATOR_LED_TOTAL 0 93# define DRIVER_INDICATOR_LED_TOTAL 0
94#endif 94#endif
diff --git a/keyboards/dztech/dz65rgb/v3/v3.c b/keyboards/dztech/dz65rgb/v3/v3.c
index 18f87dc00b..c3562c7c5d 100755
--- a/keyboards/dztech/dz65rgb/v3/v3.c
+++ b/keyboards/dztech/dz65rgb/v3/v3.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS21_SW1, CS20_SW1, CS19_SW1}, 22 {0, CS21_SW1, CS20_SW1, CS19_SW1},
23 {0, CS21_SW2, CS20_SW2, CS19_SW2}, 23 {0, CS21_SW2, CS20_SW2, CS19_SW2},
24 {0, CS21_SW3, CS20_SW3, CS19_SW3}, 24 {0, CS21_SW3, CS20_SW3, CS19_SW3},
diff --git a/keyboards/eek/config.h b/keyboards/eek/config.h
index e183afa0be..a4c74fc794 100644
--- a/keyboards/eek/config.h
+++ b/keyboards/eek/config.h
@@ -59,7 +59,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
59 #endif 59 #endif
60 60
61 #ifdef RGB_MATRIX_ENABLE 61 #ifdef RGB_MATRIX_ENABLE
62 #define DRIVER_LED_TOTAL 36 62 #define RGB_MATRIX_LED_COUNT 36
63 #define RGB_MATRIX_LED_FLUSH_LIMIT 16 63 #define RGB_MATRIX_LED_FLUSH_LIMIT 16
64 #define RGB_MATRIX_STARTUP_VAL 150 64 #define RGB_MATRIX_STARTUP_VAL 150
65 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 65 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
diff --git a/keyboards/ein_60/config.h b/keyboards/ein_60/config.h
index 91311dea37..ad62eb96df 100644
--- a/keyboards/ein_60/config.h
+++ b/keyboards/ein_60/config.h
@@ -73,7 +73,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
73#endif 73#endif
74 74
75#ifdef RGB_MATRIX_ENABLE 75#ifdef RGB_MATRIX_ENABLE
76# define DRIVER_LED_TOTAL 38 76# define RGB_MATRIX_LED_COUNT 38
77# define RGB_MATRIX_LED_FLUSH_LIMIT 16 77# define RGB_MATRIX_LED_FLUSH_LIMIT 16
78# define RGB_MATRIX_STARTUP_VAL 150 78# define RGB_MATRIX_STARTUP_VAL 150
79# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 79# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
diff --git a/keyboards/elephant42/config.h b/keyboards/elephant42/config.h
index 26d9daba4e..a1c4d21c11 100644
--- a/keyboards/elephant42/config.h
+++ b/keyboards/elephant42/config.h
@@ -65,7 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
65 65
66#ifdef RGB_MATRIX_ENABLE 66#ifdef RGB_MATRIX_ENABLE
67# define SPLIT_TRANSPORT_MIRROR 67# define SPLIT_TRANSPORT_MIRROR
68# define DRIVER_LED_TOTAL RGBLED_NUM 68# define RGB_MATRIX_LED_COUNT RGBLED_NUM
69# define RGB_MATRIX_SPLIT RGBLED_SPLIT 69# define RGB_MATRIX_SPLIT RGBLED_SPLIT
70# define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL 70# define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
71# define RGB_MATRIX_HUE_STEP RGBLIGHT_HUE_STEP 71# define RGB_MATRIX_HUE_STEP RGBLIGHT_HUE_STEP
diff --git a/keyboards/ergodox_ez/config.h b/keyboards/ergodox_ez/config.h
index 8a3f4eb7dc..0890127074 100644
--- a/keyboards/ergodox_ez/config.h
+++ b/keyboards/ergodox_ez/config.h
@@ -119,7 +119,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
119#define DRIVER_COUNT 2 119#define DRIVER_COUNT 2
120#define DRIVER_1_LED_TOTAL 24 120#define DRIVER_1_LED_TOTAL 24
121#define DRIVER_2_LED_TOTAL 24 121#define DRIVER_2_LED_TOTAL 24
122#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 122#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
123 123
124#define RGB_MATRIX_LED_PROCESS_LIMIT 5 124#define RGB_MATRIX_LED_PROCESS_LIMIT 5
125#define RGB_MATRIX_LED_FLUSH_LIMIT 26 125#define RGB_MATRIX_LED_FLUSH_LIMIT 26
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index 8d3790088d..7b9d9d3bad 100644
--- a/keyboards/ergodox_ez/ergodox_ez.c
+++ b/keyboards/ergodox_ez/ergodox_ez.c
@@ -243,7 +243,7 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
243 243
244#ifdef RGB_MATRIX_ENABLE 244#ifdef RGB_MATRIX_ENABLE
245// clang-format off 245// clang-format off
246const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 246const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
247/* driver 247/* driver
248 * | R location 248 * | R location
249 * | | G location 249 * | | G location
diff --git a/keyboards/evyd13/atom47/rev5/config.h b/keyboards/evyd13/atom47/rev5/config.h
index d16ac9404f..b9df73ce5e 100644
--- a/keyboards/evyd13/atom47/rev5/config.h
+++ b/keyboards/evyd13/atom47/rev5/config.h
@@ -146,7 +146,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
146// The result is: 0b101(ADDR2)(ADDR1) 146// The result is: 0b101(ADDR2)(ADDR1)
147#define DRIVER_ADDR_1 0b1010000 147#define DRIVER_ADDR_1 0b1010000
148#define DRIVER_COUNT 1 148#define DRIVER_COUNT 1
149#define DRIVER_LED_TOTAL 64 149#define RGB_MATRIX_LED_COUNT 64
150 150
151// RGB Matrix Animation modes. Explicitly enabled 151// RGB Matrix Animation modes. Explicitly enabled
152// For full list of effects, see: 152// For full list of effects, see:
diff --git a/keyboards/evyd13/atom47/rev5/rev5.c b/keyboards/evyd13/atom47/rev5/rev5.c
index f972b78867..4506a69aa7 100644
--- a/keyboards/evyd13/atom47/rev5/rev5.c
+++ b/keyboards/evyd13/atom47/rev5/rev5.c
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#include "rev5.h" 18#include "rev5.h"
19 19
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/exclusive/e6_rgb/config.h b/keyboards/exclusive/e6_rgb/config.h
index c4765ce93c..aea0dfc8f6 100644
--- a/keyboards/exclusive/e6_rgb/config.h
+++ b/keyboards/exclusive/e6_rgb/config.h
@@ -25,4 +25,4 @@
25#define DRIVER_ADDR_1 0b1010000 25#define DRIVER_ADDR_1 0b1010000
26 26
27#define DRIVER_COUNT 1 27#define DRIVER_COUNT 1
28#define DRIVER_LED_TOTAL 63 28#define RGB_MATRIX_LED_COUNT 63
diff --git a/keyboards/exclusive/e6_rgb/e6_rgb.c b/keyboards/exclusive/e6_rgb/e6_rgb.c
index 11d313e9a3..ec17e414f3 100644
--- a/keyboards/exclusive/e6_rgb/e6_rgb.c
+++ b/keyboards/exclusive/e6_rgb/e6_rgb.c
@@ -11,7 +11,7 @@ void matrix_init_kb(void) {
11 matrix_init_user(); 11 matrix_init_user();
12} 12}
13 13
14const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 14const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
15/* Refer to IS31 manual for these locations 15/* Refer to IS31 manual for these locations
16 * driver 16 * driver
17 * | R location 17 * | R location
diff --git a/keyboards/fallacy/config.h b/keyboards/fallacy/config.h
index 4aa7aaf348..80c2c986f3 100755
--- a/keyboards/fallacy/config.h
+++ b/keyboards/fallacy/config.h
@@ -36,7 +36,7 @@
36 */ 36 */
37#define LED_DRIVER_ADDR_1 0b1110100 37#define LED_DRIVER_ADDR_1 0b1110100
38#define LED_DRIVER_COUNT 1 38#define LED_DRIVER_COUNT 1
39#define DRIVER_LED_TOTAL 3 39#define LED_MATRIX_LED_COUNT 3
40 40
41/* Set 0 if debouncing isn't needed 41/* Set 0 if debouncing isn't needed
42 */ 42 */
diff --git a/keyboards/fallacy/indicators.c b/keyboards/fallacy/indicators.c
index c577bc9a8a..8686f292fc 100755
--- a/keyboards/fallacy/indicators.c
+++ b/keyboards/fallacy/indicators.c
@@ -25,7 +25,7 @@ void init_fallacy_leds(void) {
25 i2c_init(); 25 i2c_init();
26 IS31FL3731_init(LED_DRIVER_ADDR_1); 26 IS31FL3731_init(LED_DRIVER_ADDR_1);
27 27
28 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 28 for (int i = 0; i < LED_MATRIX_LED_COUNT; i++) {
29 IS31FL3731_set_led_control_register(i, true); 29 IS31FL3731_set_led_control_register(i, true);
30 } 30 }
31 31
@@ -54,7 +54,7 @@ void set_fallacy_led(int index, bool state) {
54 54
55/* define LED matrix 55/* define LED matrix
56 */ 56 */
57const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 57const is31_led PROGMEM g_is31_leds[LED_MATRIX_LED_COUNT] = {
58 {0, C1_1}, 58 {0, C1_1},
59 {0, C2_1}, 59 {0, C2_1},
60 {0, C3_1}, 60 {0, C3_1},
diff --git a/keyboards/feker/ik75/config.h b/keyboards/feker/ik75/config.h
index 541fb86b73..1c086b3551 100644
--- a/keyboards/feker/ik75/config.h
+++ b/keyboards/feker/ik75/config.h
@@ -46,7 +46,7 @@
46#endif 46#endif
47 47
48#ifdef RGB_MATRIX_ENABLE 48#ifdef RGB_MATRIX_ENABLE
49 #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 49 #define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
50 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 50 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
51 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 51 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
52 #define RGB_MATRIX_KEYPRESSES 52 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/feker/ik75/ik75.c b/keyboards/feker/ik75/ik75.c
index 58464e1934..af7d12fedc 100644
--- a/keyboards/feker/ik75/ik75.c
+++ b/keyboards/feker/ik75/ik75.c
@@ -18,7 +18,7 @@
18#include "ik75.h" 18#include "ik75.h"
19 19
20#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22/* Refer to IS31 manual for these locations 22/* Refer to IS31 manual for these locations
23 * driver 23 * driver
24 * | G location 24 * | G location
diff --git a/keyboards/ferris/0_2/bling/bling.c b/keyboards/ferris/0_2/bling/bling.c
index e4d0bdbf7e..8af1d33e85 100644
--- a/keyboards/ferris/0_2/bling/bling.c
+++ b/keyboards/ferris/0_2/bling/bling.c
@@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
27| | 4 | | || | | 4 | | 27| | 4 | | || | | 4 | |
28| 6 | | | 2 || 2 | | | 5 | 28| 6 | | | 2 || 2 | | | 5 |
29*/ 29*/
30const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 30const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
31 /* Refer to IS31 manual for these locations 31 /* Refer to IS31 manual for these locations
32 * driver 32 * driver
33 * | R location 33 * | R location
diff --git a/keyboards/ferris/0_2/bling/config.h b/keyboards/ferris/0_2/bling/config.h
index ceb02e737b..cbb3b11c90 100644
--- a/keyboards/ferris/0_2/bling/config.h
+++ b/keyboards/ferris/0_2/bling/config.h
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
23#define DRIVER_COUNT 2 23#define DRIVER_COUNT 2
24#define DRIVER_1_LED_TOTAL 7 24#define DRIVER_1_LED_TOTAL 7
25#define DRIVER_2_LED_TOTAL 7 25#define DRIVER_2_LED_TOTAL 7
26#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 26#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
27 27
28// RGB Matrix Animation modes. Explicitly enabled 28// RGB Matrix Animation modes. Explicitly enabled
29// For full list of effects, see: 29// For full list of effects, see:
diff --git a/keyboards/frooastboard/walnut/config.h b/keyboards/frooastboard/walnut/config.h
index 081a084d16..3015201d42 100644
--- a/keyboards/frooastboard/walnut/config.h
+++ b/keyboards/frooastboard/walnut/config.h
@@ -12,7 +12,7 @@
12#define ISSI_SWPULLUP PUR_0R 12#define ISSI_SWPULLUP PUR_0R
13#define ISSI_CSPULLUP PUR_0R 13#define ISSI_CSPULLUP PUR_0R
14#define DRIVER_COUNT 1 14#define DRIVER_COUNT 1
15#define DRIVER_LED_TOTAL 48 15#define RGB_MATRIX_LED_COUNT 48
16#define DRIVER_ADDR_1 0b1010000 16#define DRIVER_ADDR_1 0b1010000
17 17
18#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 191 18#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 191
diff --git a/keyboards/frooastboard/walnut/walnut.c b/keyboards/frooastboard/walnut/walnut.c
index 0b84d3c577..da398205a0 100644
--- a/keyboards/frooastboard/walnut/walnut.c
+++ b/keyboards/frooastboard/walnut/walnut.c
@@ -5,7 +5,7 @@
5 5
6#if defined(RGB_MATRIX_ENABLE) 6#if defined(RGB_MATRIX_ENABLE)
7 7
8const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 8const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
9/* Refer to IS31 manual for these locations 9/* Refer to IS31 manual for these locations
10 * driver 10 * driver
11 * | R location 11 * | R location
diff --git a/keyboards/geekboards/macropad_v2/config.h b/keyboards/geekboards/macropad_v2/config.h
index 7ddbefea2a..b9096da1d7 100644
--- a/keyboards/geekboards/macropad_v2/config.h
+++ b/keyboards/geekboards/macropad_v2/config.h
@@ -22,7 +22,7 @@
22#define DIRECT_PINS {{B13, B15, B3, B5}, {B12, B14, A13, B7}} 22#define DIRECT_PINS {{B13, B15, B3, B5}, {B12, B14, A13, B7}}
23 23
24#define RGBLED_NUM 42 24#define RGBLED_NUM 42
25#define DRIVER_LED_TOTAL 42 25#define RGB_MATRIX_LED_COUNT 42
26#define RGB_DI_PIN A7 26#define RGB_DI_PIN A7
27 27
28// PWM RGB Underglow Defines 28// PWM RGB Underglow Defines
diff --git a/keyboards/geekboards/tester/config.h b/keyboards/geekboards/tester/config.h
index bdf2d39c98..aee0b1294f 100644
--- a/keyboards/geekboards/tester/config.h
+++ b/keyboards/geekboards/tester/config.h
@@ -71,5 +71,5 @@
71# define DRIVER_COUNT 2 71# define DRIVER_COUNT 2
72# define DRIVER_1_LED_TOTAL 8 72# define DRIVER_1_LED_TOTAL 8
73# define DRIVER_2_LED_TOTAL 0 73# define DRIVER_2_LED_TOTAL 0
74# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 74# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
75#endif 75#endif
diff --git a/keyboards/geekboards/tester/tester.c b/keyboards/geekboards/tester/tester.c
index 70865c461f..f2d2301ec9 100644
--- a/keyboards/geekboards/tester/tester.c
+++ b/keyboards/geekboards/tester/tester.c
@@ -1,5 +1,5 @@
1#include "tester.h" 1#include "tester.h"
2const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 2const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
3/* Refer to IS31 manual for these locations 3/* Refer to IS31 manual for these locations
4 * driver 4 * driver
5 * | R location 5 * | R location
diff --git a/keyboards/giabalanai/config.h b/keyboards/giabalanai/config.h
index efad053aae..7f7751897f 100644
--- a/keyboards/giabalanai/config.h
+++ b/keyboards/giabalanai/config.h
@@ -108,7 +108,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
108 108
109#ifdef RGB_MATRIX_ENABLE 109#ifdef RGB_MATRIX_ENABLE
110/* ws2812 RGB MATRIX */ 110/* ws2812 RGB MATRIX */
111# define DRIVER_LED_TOTAL 123 111# define RGB_MATRIX_LED_COUNT 123
112# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 112# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
113 113
114// for all fingers used at once. 114// for all fingers used at once.
diff --git a/keyboards/giabalanai/keymaps/party/rgb_matrix_user.inc b/keyboards/giabalanai/keymaps/party/rgb_matrix_user.inc
index 40ce7148d3..6159968a69 100644
--- a/keyboards/giabalanai/keymaps/party/rgb_matrix_user.inc
+++ b/keyboards/giabalanai/keymaps/party/rgb_matrix_user.inc
@@ -40,7 +40,7 @@ bool my_solid_reactive_with_CnoteIndicator(effect_params_t* params) {
40 RGB rgb = rgb_matrix_hsv_to_rgb(hsv); 40 RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
41 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 41 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
42 } 42 }
43 return led_max < DRIVER_LED_TOTAL; 43 return led_max < RGB_MATRIX_LED_COUNT;
44} 44}
45 45
46bool my_party_rocks(effect_params_t* params) { 46bool my_party_rocks(effect_params_t* params) {
@@ -49,7 +49,7 @@ bool my_party_rocks(effect_params_t* params) {
49 RGB rgb = rgb_matrix_hsv_to_rgb(hsv); 49 RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
50 // rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 50 // rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
51 rgb_matrix_set_color_all(rgb.r, rgb.g, rgb.b); 51 rgb_matrix_set_color_all(rgb.r, rgb.g, rgb.b);
52 return led_max < DRIVER_LED_TOTAL; 52 return led_max < RGB_MATRIX_LED_COUNT;
53} 53}
54 54
55 55
diff --git a/keyboards/gizmo_engineering/gk6/config.h b/keyboards/gizmo_engineering/gk6/config.h
index 1a8bf51312..3fa2d120bc 100755
--- a/keyboards/gizmo_engineering/gk6/config.h
+++ b/keyboards/gizmo_engineering/gk6/config.h
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
46#define DRIVER_COUNT 2 46#define DRIVER_COUNT 2
47#define DRIVER_1_LED_TOTAL 32 47#define DRIVER_1_LED_TOTAL 32
48#define DRIVER_2_LED_TOTAL 32 48#define DRIVER_2_LED_TOTAL 32
49#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 49#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
50 50
51#define RGB_MATRIX_KEYPRESSES 51#define RGB_MATRIX_KEYPRESSES
52#define RGB_DISABLE_WHEN_USB_SUSPENDED 52#define RGB_DISABLE_WHEN_USB_SUSPENDED
diff --git a/keyboards/gizmo_engineering/gk6/gk6.c b/keyboards/gizmo_engineering/gk6/gk6.c
index 9066fc85a5..390213ef26 100755
--- a/keyboards/gizmo_engineering/gk6/gk6.c
+++ b/keyboards/gizmo_engineering/gk6/gk6.c
@@ -17,7 +17,7 @@
17#include "gk6.h" 17#include "gk6.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 {0, C1_8, C2_8, C3_8}, //0 led1 21 {0, C1_8, C2_8, C3_8}, //0 led1
22 {0, C1_7, C2_7, C3_7}, //1 led2 22 {0, C1_7, C2_7, C3_7}, //1 led2
23 {0, C1_6, C2_6, C3_6}, //2 led3 23 {0, C1_6, C2_6, C3_6}, //2 led3
diff --git a/keyboards/gl516/j73gl/keymaps/via_rgb_matrix/config.h b/keyboards/gl516/j73gl/keymaps/via_rgb_matrix/config.h
index ef0643ce94..75e321507d 100644
--- a/keyboards/gl516/j73gl/keymaps/via_rgb_matrix/config.h
+++ b/keyboards/gl516/j73gl/keymaps/via_rgb_matrix/config.h
@@ -25,7 +25,7 @@
25 #undef RGBLED_NUM 25 #undef RGBLED_NUM
26#endif 26#endif
27 27
28#define DRIVER_LED_TOTAL 73 28#define RGB_MATRIX_LED_COUNT 73
29 29
30#ifdef RGB_MATRIX_ENABLE 30#ifdef RGB_MATRIX_ENABLE
31 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses 31 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
@@ -34,7 +34,7 @@
34// #define RGB_DISABLE_TIMEOUT 0 // number of milliseconds to wait until rgb automatically turns off 34// #define RGB_DISABLE_TIMEOUT 0 // number of milliseconds to wait until rgb automatically turns off
35// #define RGB_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects 35// #define RGB_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects
36 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 36 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
37 #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) 37 #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)
38 #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) 38 #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)
39 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 39 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
40// #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set 40// #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
diff --git a/keyboards/gmmk/gmmk2/p65/ansi/ansi.c b/keyboards/gmmk/gmmk2/p65/ansi/ansi.c
index 437b50648e..28033da538 100644
--- a/keyboards/gmmk/gmmk2/p65/ansi/ansi.c
+++ b/keyboards/gmmk/gmmk2/p65/ansi/ansi.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 21const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
22/* Refer to IS31 manual for these locations 22/* Refer to IS31 manual for these locations
23 * driver 23 * driver
24 * | R location 24 * | R location
diff --git a/keyboards/gmmk/gmmk2/p65/config.h b/keyboards/gmmk/gmmk2/p65/config.h
index 6a6c22c6f0..840a402dcf 100644
--- a/keyboards/gmmk/gmmk2/p65/config.h
+++ b/keyboards/gmmk/gmmk2/p65/config.h
@@ -57,7 +57,7 @@
57#define DRIVER_COUNT 2 57#define DRIVER_COUNT 2
58#define DRIVER_1_LED_TOTAL 54 58#define DRIVER_1_LED_TOTAL 54
59#define DRIVER_2_LED_TOTAL 34 59#define DRIVER_2_LED_TOTAL 34
60#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 60#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
61 61
62// RGB Matrix Animation modes. Explicitly enabled 62// RGB Matrix Animation modes. Explicitly enabled
63// For full list of effects, see: 63// For full list of effects, see:
diff --git a/keyboards/gmmk/gmmk2/p65/iso/iso.c b/keyboards/gmmk/gmmk2/p65/iso/iso.c
index 651a612a58..1a70353829 100644
--- a/keyboards/gmmk/gmmk2/p65/iso/iso.c
+++ b/keyboards/gmmk/gmmk2/p65/iso/iso.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 21const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
22/* Refer to IS31 manual for these locations 22/* Refer to IS31 manual for these locations
23 * driver 23 * driver
24 * | R location 24 * | R location
diff --git a/keyboards/gmmk/gmmk2/p96/ansi/ansi.c b/keyboards/gmmk/gmmk2/p96/ansi/ansi.c
index 455a598982..808b175555 100644
--- a/keyboards/gmmk/gmmk2/p96/ansi/ansi.c
+++ b/keyboards/gmmk/gmmk2/p96/ansi/ansi.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 21const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
22/* Refer to IS31 manual for these locations 22/* Refer to IS31 manual for these locations
23 * driver 23 * driver
24 * | R location 24 * | R location
diff --git a/keyboards/gmmk/gmmk2/p96/config.h b/keyboards/gmmk/gmmk2/p96/config.h
index 03a7f58538..aa7e59ef98 100644
--- a/keyboards/gmmk/gmmk2/p96/config.h
+++ b/keyboards/gmmk/gmmk2/p96/config.h
@@ -61,7 +61,7 @@
61#define DRIVER_COUNT 2 61#define DRIVER_COUNT 2
62#define DRIVER_1_LED_TOTAL 66 62#define DRIVER_1_LED_TOTAL 66
63#define DRIVER_2_LED_TOTAL 54 63#define DRIVER_2_LED_TOTAL 54
64#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 64#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
65 65
66// RGB Matrix Animation modes. Explicitly enabled 66// RGB Matrix Animation modes. Explicitly enabled
67// For full list of effects, see: 67// For full list of effects, see:
diff --git a/keyboards/gmmk/gmmk2/p96/iso/iso.c b/keyboards/gmmk/gmmk2/p96/iso/iso.c
index e1fee18079..dc9f7be682 100644
--- a/keyboards/gmmk/gmmk2/p96/iso/iso.c
+++ b/keyboards/gmmk/gmmk2/p96/iso/iso.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 21const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
22/* Refer to IS31 manual for these locations 22/* Refer to IS31 manual for these locations
23 * driver 23 * driver
24 * | R location 24 * | R location
diff --git a/keyboards/gmmk/pro/rev1/ansi/ansi.c b/keyboards/gmmk/pro/rev1/ansi/ansi.c
index 1df3319fd2..3fc45d61d0 100644
--- a/keyboards/gmmk/pro/rev1/ansi/ansi.c
+++ b/keyboards/gmmk/pro/rev1/ansi/ansi.c
@@ -136,7 +136,7 @@ led_config_t g_led_config = {{
136 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4 136 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4
137}}; 137}};
138 138
139const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 139const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
140 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13 140 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13
141 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16 141 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16
142 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11 142 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11
diff --git a/keyboards/gmmk/pro/rev1/ansi/config.h b/keyboards/gmmk/pro/rev1/ansi/config.h
index 7c68375b2f..8e5518e1b9 100644
--- a/keyboards/gmmk/pro/rev1/ansi/config.h
+++ b/keyboards/gmmk/pro/rev1/ansi/config.h
@@ -20,4 +20,4 @@
20 20
21#define DRIVER_1_LED_TOTAL 66 21#define DRIVER_1_LED_TOTAL 66
22#define DRIVER_2_LED_TOTAL 32 22#define DRIVER_2_LED_TOTAL 32
23#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 23#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/cedrikl/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/cedrikl/keymap.c
index 3aa3fd828e..ec20922842 100644
--- a/keyboards/gmmk/pro/rev1/ansi/keymaps/cedrikl/keymap.c
+++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/cedrikl/keymap.c
@@ -79,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
79// 79//
80// 80//
81// 81//
82// for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 82// for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
83// HSV hsv = { 83// HSV hsv = {
84// .h = (*l)[i][0], 84// .h = (*l)[i][0],
85// .s = (*l)[i][1], 85// .s = (*l)[i][1],
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/gigahawk/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/gigahawk/keymap.c
index 8eedeb6e00..50a0a81769 100644
--- a/keyboards/gmmk/pro/rev1/ansi/keymaps/gigahawk/keymap.c
+++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/gigahawk/keymap.c
@@ -65,7 +65,7 @@ void rgb_matrix_indicators_user(void) {
65 } 65 }
66 66
67 if (host_keyboard_led_state().caps_lock) { 67 if (host_keyboard_led_state().caps_lock) {
68 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 68 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
69 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 69 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
70 rgb_matrix_set_color(i, _CAPS_COLOR_RGB); 70 rgb_matrix_set_color(i, _CAPS_COLOR_RGB);
71 } 71 }
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/ansi.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/ansi.c
index 52c9dfdf99..a7ab0c9cc3 100644
--- a/keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/ansi.c
+++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/ansi.c
@@ -136,7 +136,7 @@ led_config_t PROGMEM g_led_config = {{
136 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4 136 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4
137}}; 137}};
138 138
139const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 139const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
140 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13 140 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13
141 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16 141 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16
142 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11 142 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/helpers.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/helpers.c
index f3f443cedb..d30224636b 100644
--- a/keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/helpers.c
+++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/mattgauf/helpers.c
@@ -17,7 +17,7 @@
17#include "rgb_matrix.h" 17#include "rgb_matrix.h"
18 18
19void rgb_matrix_set_color_flags(uint8_t red, uint8_t green, uint8_t blue, uint8_t flags) { 19void rgb_matrix_set_color_flags(uint8_t red, uint8_t green, uint8_t blue, uint8_t flags) {
20 for (uint8_t ii = 0; ii < DRIVER_LED_TOTAL; ii++) { 20 for (uint8_t ii = 0; ii < RGB_MATRIX_LED_COUNT; ii++) {
21 if (g_led_config.flags[ii] & flags) { 21 if (g_led_config.flags[ii] & flags) {
22 rgb_matrix_set_color(ii, red, green, blue); 22 rgb_matrix_set_color(ii, red, green, blue);
23 } 23 }
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c
index 6f4d333ede..d59b5cffc8 100644
--- a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c
+++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c
@@ -44,7 +44,7 @@ void set_layer_rgb(uint8_t led_min, uint8_t led_max, int layer) {
44 44
45 uint8_t val = rgb_matrix_get_val(); 45 uint8_t val = rgb_matrix_get_val();
46 46
47 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 47 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
48 HSV hsv = { 48 HSV hsv = {
49 .h = (*l)[i][0], 49 .h = (*l)[i][0],
50 .s = (*l)[i][1], 50 .s = (*l)[i][1],
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.h b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.h
index eace217d18..b9b06309b2 100644
--- a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.h
+++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.h
@@ -48,7 +48,7 @@
48 ka4, k73 \ 48 ka4, k73 \
49 } 49 }
50// clang-format on 50// clang-format on
51typedef uint8_t ledmap[DRIVER_LED_TOTAL][3]; 51typedef uint8_t ledmap[RGB_MATRIX_LED_COUNT][3];
52extern const ledmap ledmaps[]; 52extern const ledmap ledmaps[];
53 53
54void set_layer_rgb(uint8_t led_min, uint8_t led_max, int layer); 54void set_layer_rgb(uint8_t led_min, uint8_t led_max, int layer);
diff --git a/keyboards/gmmk/pro/rev1/iso/config.h b/keyboards/gmmk/pro/rev1/iso/config.h
index 26626ccfc1..d8074af06c 100644
--- a/keyboards/gmmk/pro/rev1/iso/config.h
+++ b/keyboards/gmmk/pro/rev1/iso/config.h
@@ -20,4 +20,4 @@
20 20
21#define DRIVER_1_LED_TOTAL 66 21#define DRIVER_1_LED_TOTAL 66
22#define DRIVER_2_LED_TOTAL 33 22#define DRIVER_2_LED_TOTAL 33
23#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 23#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
diff --git a/keyboards/gmmk/pro/rev1/iso/iso.c b/keyboards/gmmk/pro/rev1/iso/iso.c
index fa57f1ca92..babb6bd6c7 100644
--- a/keyboards/gmmk/pro/rev1/iso/iso.c
+++ b/keyboards/gmmk/pro/rev1/iso/iso.c
@@ -137,7 +137,7 @@ led_config_t g_led_config = {{
137 2, 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4 137 2, 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4
138}}; 138}};
139 139
140const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 140const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
141 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13 141 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13
142 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16 142 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16
143 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11 143 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11
diff --git a/keyboards/gmmk/pro/rev2/ansi/ansi.c b/keyboards/gmmk/pro/rev2/ansi/ansi.c
index 9cf28e4648..c22fbc796d 100644
--- a/keyboards/gmmk/pro/rev2/ansi/ansi.c
+++ b/keyboards/gmmk/pro/rev2/ansi/ansi.c
@@ -136,7 +136,7 @@ led_config_t g_led_config = {{
136 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4 136 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4
137}}; 137}};
138 138
139const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 139const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
140 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13 140 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13
141 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16 141 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16
142 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11 142 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11
diff --git a/keyboards/gmmk/pro/rev2/ansi/config.h b/keyboards/gmmk/pro/rev2/ansi/config.h
index 996ee21afc..6803bd8ced 100644
--- a/keyboards/gmmk/pro/rev2/ansi/config.h
+++ b/keyboards/gmmk/pro/rev2/ansi/config.h
@@ -20,4 +20,4 @@
20 20
21#define DRIVER_1_LED_TOTAL 66 21#define DRIVER_1_LED_TOTAL 66
22#define DRIVER_2_LED_TOTAL 32 22#define DRIVER_2_LED_TOTAL 32
23#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 23#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
diff --git a/keyboards/gmmk/pro/rev2/iso/config.h b/keyboards/gmmk/pro/rev2/iso/config.h
index 82390fc147..0b2e0a4cb2 100644
--- a/keyboards/gmmk/pro/rev2/iso/config.h
+++ b/keyboards/gmmk/pro/rev2/iso/config.h
@@ -20,4 +20,4 @@
20 20
21#define DRIVER_1_LED_TOTAL 66 21#define DRIVER_1_LED_TOTAL 66
22#define DRIVER_2_LED_TOTAL 33 22#define DRIVER_2_LED_TOTAL 33
23#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 23#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
diff --git a/keyboards/gmmk/pro/rev2/iso/iso.c b/keyboards/gmmk/pro/rev2/iso/iso.c
index 3567a52d0d..20626ff9c5 100644
--- a/keyboards/gmmk/pro/rev2/iso/iso.c
+++ b/keyboards/gmmk/pro/rev2/iso/iso.c
@@ -137,7 +137,7 @@ led_config_t g_led_config = {{
137 2, 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4 137 2, 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4
138}}; 138}};
139 139
140const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 140const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
141 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13 141 {0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13
142 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16 142 {0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16
143 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11 143 {0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11
diff --git a/keyboards/gopolar/gg86/config.h b/keyboards/gopolar/gg86/config.h
index 7964834623..d1c75d0c79 100644
--- a/keyboards/gopolar/gg86/config.h
+++ b/keyboards/gopolar/gg86/config.h
@@ -41,7 +41,7 @@
41#ifdef RGB_MATRIX_ENABLE 41#ifdef RGB_MATRIX_ENABLE
42 /* RGB Matrix config */ 42 /* RGB Matrix config */
43 #define RGB_DI_PIN E2 43 #define RGB_DI_PIN E2
44 #define DRIVER_LED_TOTAL 100 44 #define RGB_MATRIX_LED_COUNT 100
45 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 45 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
46 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 46 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
47 #define RGB_MATRIX_KEYPRESSES 47 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/gopolar/gg86/keymaps/horrortroll/led/custom_gradient.c b/keyboards/gopolar/gg86/keymaps/horrortroll/led/custom_gradient.c
index fcedf777eb..951884b456 100644
--- a/keyboards/gopolar/gg86/keymaps/horrortroll/led/custom_gradient.c
+++ b/keyboards/gopolar/gg86/keymaps/horrortroll/led/custom_gradient.c
@@ -70,5 +70,5 @@ static bool CUSTOM_GRADIENT(effect_params_t* params) {
70 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 70 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
71 } 71 }
72 72
73 return led_max < DRIVER_LED_TOTAL; 73 return led_max < RGB_MATRIX_LED_COUNT;
74} \ No newline at end of file 74} \ No newline at end of file
diff --git a/keyboards/gopolar/gg86/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h b/keyboards/gopolar/gg86/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h
index 5b610716e0..9fff344664 100644
--- a/keyboards/gopolar/gg86/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h
+++ b/keyboards/gopolar/gg86/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h
@@ -41,5 +41,5 @@ bool effect_rainbow_reactive(effect_params_t* params, rainbow_reactive_f effect_
41 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 41 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
42 } 42 }
43 43
44 return led_max < DRIVER_LED_TOTAL; 44 return led_max < RGB_MATRIX_LED_COUNT;
45} \ No newline at end of file 45} \ No newline at end of file
diff --git a/keyboards/gopolar/gg86/keymaps/horrortroll/led/random_breath_rainbow.c b/keyboards/gopolar/gg86/keymaps/horrortroll/led/random_breath_rainbow.c
index e5f399cdd3..b5ffef665f 100644
--- a/keyboards/gopolar/gg86/keymaps/horrortroll/led/random_breath_rainbow.c
+++ b/keyboards/gopolar/gg86/keymaps/horrortroll/led/random_breath_rainbow.c
@@ -14,7 +14,7 @@
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
17static uint8_t offset[DRIVER_LED_TOTAL]; 17static uint8_t offset[RGB_MATRIX_LED_COUNT];
18 18
19static void doRandom_breath_rainbow(int i, effect_params_t* params) { 19static void doRandom_breath_rainbow(int i, effect_params_t* params) {
20 if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return; 20 if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return;
@@ -41,7 +41,7 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
41 41
42 if (!params->init) { 42 if (!params->init) {
43 // Change one LED every tick, make sure speed is not 0 43 // Change one LED every tick, make sure speed is not 0
44 doRandom_breath_rainbow(rand() % DRIVER_LED_TOTAL, params); 44 doRandom_breath_rainbow(rand() % RGB_MATRIX_LED_COUNT, params);
45 return false; 45 return false;
46 } 46 }
47 47
@@ -51,5 +51,5 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
51 doRandom_breath_rainbow(i, params); 51 doRandom_breath_rainbow(i, params);
52 } 52 }
53 53
54 return led_max < DRIVER_LED_TOTAL; 54 return led_max < RGB_MATRIX_LED_COUNT;
55} \ No newline at end of file 55} \ No newline at end of file
diff --git a/keyboards/hadron/ver3/config.h b/keyboards/hadron/ver3/config.h
index f130189b58..0a06f3ec7c 100644
--- a/keyboards/hadron/ver3/config.h
+++ b/keyboards/hadron/ver3/config.h
@@ -166,7 +166,7 @@
166 166
167#define RGBLED_NUM 10 167#define RGBLED_NUM 10
168#define RGB_DI_PIN B5 168#define RGB_DI_PIN B5
169#define DRIVER_LED_TOTAL RGBLED_NUM 169#define RGB_MATRIX_LED_COUNT RGBLED_NUM
170 170
171// #define RGB_MATRIX_KEYPRESSES 171// #define RGB_MATRIX_KEYPRESSES
172 172
diff --git a/keyboards/handwired/6macro/config.h b/keyboards/handwired/6macro/config.h
index 1e8c296855..a117fc65aa 100644
--- a/keyboards/handwired/6macro/config.h
+++ b/keyboards/handwired/6macro/config.h
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
32 32
33#define RGB_DI_PIN D2 33#define RGB_DI_PIN D2
34#define RGBLED_NUM 10 34#define RGBLED_NUM 10
35#define DRIVER_LED_TOTAL RGBLED_NUM 35#define RGB_MATRIX_LED_COUNT RGBLED_NUM
36#define RGBLIGHT_HUE_STEP 10 36#define RGBLIGHT_HUE_STEP 10
37#define RGBLIGHT_SAT_STEP 17 37#define RGBLIGHT_SAT_STEP 17
38#define RGBLIGHT_VAL_STEP 17 38#define RGBLIGHT_VAL_STEP 17
diff --git a/keyboards/handwired/co60/rev7/config.h b/keyboards/handwired/co60/rev7/config.h
index 150da56dc6..deed36713b 100644
--- a/keyboards/handwired/co60/rev7/config.h
+++ b/keyboards/handwired/co60/rev7/config.h
@@ -53,6 +53,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
53 53
54#define RGBLED_NUM 16 54#define RGBLED_NUM 16
55#define RGB_DI_PIN A7 55#define RGB_DI_PIN A7
56#define DRIVER_LED_TOTAL RGBLED_NUM 56#define RGB_MATRIX_LED_COUNT RGBLED_NUM
57 57
58#define RGB_MATRIX_KEYPRESSES 58#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/handwired/colorlice/config.h b/keyboards/handwired/colorlice/config.h
index a941ea493d..39ff7ffe17 100644
--- a/keyboards/handwired/colorlice/config.h
+++ b/keyboards/handwired/colorlice/config.h
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
46#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 46#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
47#define RGB_MATRIX_LED_PROCESS_LIMIT 4 47#define RGB_MATRIX_LED_PROCESS_LIMIT 4
48#define RGB_MATRIX_LED_FLUSH_LIMIT 26 48#define RGB_MATRIX_LED_FLUSH_LIMIT 26
49#define DRIVER_LED_TOTAL 70 49#define RGB_MATRIX_LED_COUNT 70
50 50
51// RGB Matrix Animation modes. Explicitly enabled 51// RGB Matrix Animation modes. Explicitly enabled
52// For full list of effects, see: 52// For full list of effects, see:
diff --git a/keyboards/handwired/dactyl_manuform/3x5_3/config.h b/keyboards/handwired/dactyl_manuform/3x5_3/config.h
index ccd9d0cdc4..9f73d8bcec 100644
--- a/keyboards/handwired/dactyl_manuform/3x5_3/config.h
+++ b/keyboards/handwired/dactyl_manuform/3x5_3/config.h
@@ -31,7 +31,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
31 31
32// WS2812 RGB LED strip input and number of LEDs 32// WS2812 RGB LED strip input and number of LEDs
33#define RGB_DI_PIN D3 33#define RGB_DI_PIN D3
34#define DRIVER_LED_TOTAL 36 34#define RGB_MATRIX_LED_COUNT 36
35#define RGB_MATRIX_SPLIT { 18, 18 } 35#define RGB_MATRIX_SPLIT { 18, 18 }
36#define RGB_MATRIX_CENTER { 133, 54 } 36#define RGB_MATRIX_CENTER { 133, 54 }
37 37
diff --git a/keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/config.h b/keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/config.h
index fac9353959..6aa4f4817f 100644
--- a/keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/config.h
+++ b/keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/config.h
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
45#ifdef RGB_MATRIX_ENABLE 45#ifdef RGB_MATRIX_ENABLE
46// # define RGB_DISABLE_TIMEOUT 300000 // number of milliseconds to wait until disabling effects 46// # define RGB_DISABLE_TIMEOUT 300000 // number of milliseconds to wait until disabling effects
47// # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 47// # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
48# 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) 48# 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)
49# 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) 49# 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)
50# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 50# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
51# define RGB_MATRIX_HUE_STEP 8 51# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/handwired/dactyl_manuform/5x6/keymaps/thattolleyguy/config.h b/keyboards/handwired/dactyl_manuform/5x6/keymaps/thattolleyguy/config.h
index 8625389eba..c598952e94 100644
--- a/keyboards/handwired/dactyl_manuform/5x6/keymaps/thattolleyguy/config.h
+++ b/keyboards/handwired/dactyl_manuform/5x6/keymaps/thattolleyguy/config.h
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
28 28
29#undef SOFT_SERIAL_PIN 29#undef SOFT_SERIAL_PIN
30#define SOFT_SERIAL_PIN D0 30#define SOFT_SERIAL_PIN D0
31// #define DRIVER_LED_TOTAL 32 31// #define RGB_MATRIX_LED_COUNT 32
32 32
33#define RGB_MATRIX_KEYPRESSES 33#define RGB_MATRIX_KEYPRESSES
34 34
@@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
36#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 80 36#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 80
37#undef RGBLED_NUM 37#undef RGBLED_NUM
38#define RGBLED_NUM 64 // Number of LEDs 38#define RGBLED_NUM 64 // Number of LEDs
39#define DRIVER_LED_TOTAL RGBLED_NUM 39#define RGB_MATRIX_LED_COUNT RGBLED_NUM
40#define RGB_MATRIX_SPLIT \ 40#define RGB_MATRIX_SPLIT \
41 { 32, 32 } 41 { 32, 32 }
42#define SPLIT_TRANSPORT_MIRROR 42#define SPLIT_TRANSPORT_MIRROR
diff --git a/keyboards/handwired/dygma/raise/ansi/ansi.c b/keyboards/handwired/dygma/raise/ansi/ansi.c
index 652b6551d2..466cdc523e 100644
--- a/keyboards/handwired/dygma/raise/ansi/ansi.c
+++ b/keyboards/handwired/dygma/raise/ansi/ansi.c
@@ -23,7 +23,7 @@
23#define LHK 33 23#define LHK 33
24#define LPH 72 24#define LPH 72
25 25
26const uint8_t led_map[DRIVER_LED_TOTAL] = { 26const uint8_t led_map[RGB_MATRIX_LED_COUNT] = {
27 // left side - 32 keys includes LP: key 19 is missing for ANSI layout 27 // left side - 32 keys includes LP: key 19 is missing for ANSI layout
28 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 0xff, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 68, 69, 28 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 0xff, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 68, 69,
29 29
diff --git a/keyboards/handwired/dygma/raise/config.h b/keyboards/handwired/dygma/raise/config.h
index 64c6bad8e8..032875b67b 100644
--- a/keyboards/handwired/dygma/raise/config.h
+++ b/keyboards/handwired/dygma/raise/config.h
@@ -24,4 +24,4 @@
24/* The scanners already debounce for us */ 24/* The scanners already debounce for us */
25#define DEBOUNCE 0 25#define DEBOUNCE 0
26 26
27#define DRIVER_LED_TOTAL 132 27#define RGB_MATRIX_LED_COUNT 132
diff --git a/keyboards/handwired/dygma/raise/iso/iso.c b/keyboards/handwired/dygma/raise/iso/iso.c
index ec2607d06c..81c180b612 100644
--- a/keyboards/handwired/dygma/raise/iso/iso.c
+++ b/keyboards/handwired/dygma/raise/iso/iso.c
@@ -23,7 +23,7 @@
23#define LHK 33 23#define LHK 33
24#define LPH 72 24#define LPH 72
25 25
26const uint8_t led_map[DRIVER_LED_TOTAL] = { 26const uint8_t led_map[RGB_MATRIX_LED_COUNT] = {
27 // left side - 33 keys 27 // left side - 33 keys
28 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 68, 69, 28 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 68, 69,
29 29
diff --git a/keyboards/handwired/dygma/raise/leds.c b/keyboards/handwired/dygma/raise/leds.c
index 3f6037cbfa..4ff87ca941 100644
--- a/keyboards/handwired/dygma/raise/leds.c
+++ b/keyboards/handwired/dygma/raise/leds.c
@@ -71,7 +71,7 @@ static void set_color(int index, uint8_t r, uint8_t g, uint8_t b) {
71} 71}
72 72
73static void set_color_all(uint8_t r, uint8_t g, uint8_t b) { 73static void set_color_all(uint8_t r, uint8_t g, uint8_t b) {
74 for (int i = 0; i < DRIVER_LED_TOTAL; i++) set_color(i, r, g, b); 74 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) set_color(i, r, g, b);
75} 75}
76 76
77static void init(void) {} 77static void init(void) {}
diff --git a/keyboards/handwired/dygma/raise/leds.h b/keyboards/handwired/dygma/raise/leds.h
index 8d70ed70b2..c25a4326a9 100644
--- a/keyboards/handwired/dygma/raise/leds.h
+++ b/keyboards/handwired/dygma/raise/leds.h
@@ -19,7 +19,7 @@
19#include "quantum.h" 19#include "quantum.h"
20#include "rgb_matrix.h" 20#include "rgb_matrix.h"
21 21
22extern const uint8_t led_map[DRIVER_LED_TOTAL]; 22extern const uint8_t led_map[RGB_MATRIX_LED_COUNT];
23 23
24void set_all_leds_to(uint8_t r, uint8_t g, uint8_t b); 24void set_all_leds_to(uint8_t r, uint8_t g, uint8_t b);
25void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b); 25void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b);
diff --git a/keyboards/handwired/hnah108/config.h b/keyboards/handwired/hnah108/config.h
index 825edd40ca..913b19af5a 100644
--- a/keyboards/handwired/hnah108/config.h
+++ b/keyboards/handwired/hnah108/config.h
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
47#define BACKLIGHT_LEVELS 4 47#define BACKLIGHT_LEVELS 4
48 48
49#define RGB_DI_PIN E2 49#define RGB_DI_PIN E2
50#define DRIVER_LED_TOTAL 31 50#define RGB_MATRIX_LED_COUNT 31
51// RGB Matrix Animation modes. Explicitly enabled 51// RGB Matrix Animation modes. Explicitly enabled
52// For full list of effects, see: 52// For full list of effects, see:
53// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects 53// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
diff --git a/keyboards/handwired/hnah40rgb/config.h b/keyboards/handwired/hnah40rgb/config.h
index 916fe15a20..85b5e0673f 100644
--- a/keyboards/handwired/hnah40rgb/config.h
+++ b/keyboards/handwired/hnah40rgb/config.h
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
48 48
49#ifdef RGB_MATRIX_ENABLE 49#ifdef RGB_MATRIX_ENABLE
50#define RGB_DI_PIN E2 50#define RGB_DI_PIN E2
51#define DRIVER_LED_TOTAL 50 51#define RGB_MATRIX_LED_COUNT 50
52#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 52#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
53#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 53#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
54#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 54#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/handwired/p65rgb/config.h b/keyboards/handwired/p65rgb/config.h
index abb5efc284..384b0bc547 100644
--- a/keyboards/handwired/p65rgb/config.h
+++ b/keyboards/handwired/p65rgb/config.h
@@ -37,7 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
37#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 37#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
38#define RGB_MATRIX_LED_PROCESS_LIMIT 4 38#define RGB_MATRIX_LED_PROCESS_LIMIT 4
39#define RGB_MATRIX_LED_FLUSH_LIMIT 26 39#define RGB_MATRIX_LED_FLUSH_LIMIT 26
40#define DRIVER_LED_TOTAL 83 40#define RGB_MATRIX_LED_COUNT 83
41#define RGBLIGHT_LIMIT_VAL 180 41#define RGBLIGHT_LIMIT_VAL 180
42// RGB Matrix Animation modes. Explicitly enabled 42// RGB Matrix Animation modes. Explicitly enabled
43// For full list of effects, see: 43// For full list of effects, see:
diff --git a/keyboards/handwired/steamvan/rev1/config.h b/keyboards/handwired/steamvan/rev1/config.h
index 2a33f1fc13..81c58c977e 100644
--- a/keyboards/handwired/steamvan/rev1/config.h
+++ b/keyboards/handwired/steamvan/rev1/config.h
@@ -52,6 +52,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
52 52
53#define RGBLED_NUM 16 53#define RGBLED_NUM 16
54#define RGB_DI_PIN A7 54#define RGB_DI_PIN A7
55#define DRIVER_LED_TOTAL RGBLED_NUM 55#define RGB_MATRIX_LED_COUNT RGBLED_NUM
56 56
57#define RGB_MATRIX_KEYPRESSES 57#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/handwired/tractyl_manuform/4x6_right/config.h b/keyboards/handwired/tractyl_manuform/4x6_right/config.h
index 0e15056baf..ffc75d00cf 100644
--- a/keyboards/handwired/tractyl_manuform/4x6_right/config.h
+++ b/keyboards/handwired/tractyl_manuform/4x6_right/config.h
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
33 33
34// WS2812 RGB LED strip input and number of LEDs 34// WS2812 RGB LED strip input and number of LEDs
35#define RGB_DI_PIN E7 35#define RGB_DI_PIN E7
36#define DRIVER_LED_TOTAL 62 36#define RGB_MATRIX_LED_COUNT 62
37#define RGB_MATRIX_SPLIT { 32, 30 } 37#define RGB_MATRIX_SPLIT { 32, 30 }
38#define RGB_DISABLE_WHEN_USB_SUSPENDED 38#define RGB_DISABLE_WHEN_USB_SUSPENDED
39#define RGB_MATRIX_KEYPRESSES 39#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/helix/rev3_4rows/config.h b/keyboards/helix/rev3_4rows/config.h
index 5050599075..e5f49d7788 100644
--- a/keyboards/helix/rev3_4rows/config.h
+++ b/keyboards/helix/rev3_4rows/config.h
@@ -56,13 +56,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
56#define RGBLED_NUM 50 // Number of LEDs 56#define RGBLED_NUM 50 // Number of LEDs
57 57
58#ifdef RGB_MATRIX_ENABLE 58#ifdef RGB_MATRIX_ENABLE
59 #define DRIVER_LED_TOTAL RGBLED_NUM 59 #define RGB_MATRIX_LED_COUNT RGBLED_NUM
60# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 60# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
61// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 61// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
62// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 62// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
63# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 63# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
64# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 64# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
65// # 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) 65// # 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)
66// # 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) 66// # 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)
67# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 67# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
68# define RGB_MATRIX_HUE_STEP 8 68# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/helix/rev3_5rows/config.h b/keyboards/helix/rev3_5rows/config.h
index 489eeded06..8838bd6bde 100644
--- a/keyboards/helix/rev3_5rows/config.h
+++ b/keyboards/helix/rev3_5rows/config.h
@@ -56,13 +56,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
56#define RGBLED_NUM 64 // Number of LEDs 56#define RGBLED_NUM 64 // Number of LEDs
57 57
58#ifdef RGB_MATRIX_ENABLE 58#ifdef RGB_MATRIX_ENABLE
59 #define DRIVER_LED_TOTAL RGBLED_NUM 59 #define RGB_MATRIX_LED_COUNT RGBLED_NUM
60# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 60# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
61// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 61// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
62// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 62// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
63# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 63# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
64# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 64# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
65// # 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) 65// # 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)
66// # 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) 66// # 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)
67# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 67# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
68# define RGB_MATRIX_HUE_STEP 8 68# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/horrortroll/chinese_pcb/devil68_pro/config.h b/keyboards/horrortroll/chinese_pcb/devil68_pro/config.h
index 8a227f3c49..1acd13498f 100644
--- a/keyboards/horrortroll/chinese_pcb/devil68_pro/config.h
+++ b/keyboards/horrortroll/chinese_pcb/devil68_pro/config.h
@@ -39,7 +39,7 @@
39#define FORCE_NKRO 39#define FORCE_NKRO
40 40
41#ifdef RGB_MATRIX_ENABLE 41#ifdef RGB_MATRIX_ENABLE
42 #define DRIVER_LED_TOTAL 86 42 #define RGB_MATRIX_LED_COUNT 86
43 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 43 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
44 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 44 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
45 #define RGB_MATRIX_KEYPRESSES 45 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/horrortroll/handwired_k552/config.h b/keyboards/horrortroll/handwired_k552/config.h
index d3c385f64e..227fad06ec 100644
--- a/keyboards/horrortroll/handwired_k552/config.h
+++ b/keyboards/horrortroll/handwired_k552/config.h
@@ -62,7 +62,7 @@
62#endif 62#endif
63 63
64#ifdef RGB_MATRIX_ENABLE 64#ifdef RGB_MATRIX_ENABLE
65 #define DRIVER_LED_TOTAL 24 65 #define RGB_MATRIX_LED_COUNT 24
66 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 66 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
67 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 67 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
68 68
diff --git a/keyboards/horrortroll/handwired_k552/keymaps/default/led/custom_gradient.c b/keyboards/horrortroll/handwired_k552/keymaps/default/led/custom_gradient.c
index 49e4a242fb..0d7acd7e8b 100644
--- a/keyboards/horrortroll/handwired_k552/keymaps/default/led/custom_gradient.c
+++ b/keyboards/horrortroll/handwired_k552/keymaps/default/led/custom_gradient.c
@@ -70,5 +70,5 @@ static bool CUSTOM_GRADIENT(effect_params_t* params) {
70 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 70 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
71 } 71 }
72 72
73 return led_max < DRIVER_LED_TOTAL; 73 return led_max < RGB_MATRIX_LED_COUNT;
74} 74}
diff --git a/keyboards/horrortroll/handwired_k552/keymaps/default/led/random_breath_rainbow.c b/keyboards/horrortroll/handwired_k552/keymaps/default/led/random_breath_rainbow.c
index 041417477b..29c447c61a 100644
--- a/keyboards/horrortroll/handwired_k552/keymaps/default/led/random_breath_rainbow.c
+++ b/keyboards/horrortroll/handwired_k552/keymaps/default/led/random_breath_rainbow.c
@@ -14,7 +14,7 @@
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
17static uint8_t offset[DRIVER_LED_TOTAL]; 17static uint8_t offset[RGB_MATRIX_LED_COUNT];
18 18
19static void doRandom_breath_rainbow(int i, effect_params_t* params) { 19static void doRandom_breath_rainbow(int i, effect_params_t* params) {
20 if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return; 20 if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return;
@@ -41,7 +41,7 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
41 41
42 if (!params->init) { 42 if (!params->init) {
43 // Change one LED every tick, make sure speed is not 0 43 // Change one LED every tick, make sure speed is not 0
44 doRandom_breath_rainbow(rand() % DRIVER_LED_TOTAL, params); 44 doRandom_breath_rainbow(rand() % RGB_MATRIX_LED_COUNT, params);
45 return false; 45 return false;
46 } 46 }
47 47
@@ -51,5 +51,5 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
51 doRandom_breath_rainbow(i, params); 51 doRandom_breath_rainbow(i, params);
52 } 52 }
53 53
54 return led_max < DRIVER_LED_TOTAL; 54 return led_max < RGB_MATRIX_LED_COUNT;
55} 55}
diff --git a/keyboards/horrortroll/handwired_k552/keymaps/via/led/custom_gradient.c b/keyboards/horrortroll/handwired_k552/keymaps/via/led/custom_gradient.c
index 49e4a242fb..0d7acd7e8b 100644
--- a/keyboards/horrortroll/handwired_k552/keymaps/via/led/custom_gradient.c
+++ b/keyboards/horrortroll/handwired_k552/keymaps/via/led/custom_gradient.c
@@ -70,5 +70,5 @@ static bool CUSTOM_GRADIENT(effect_params_t* params) {
70 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 70 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
71 } 71 }
72 72
73 return led_max < DRIVER_LED_TOTAL; 73 return led_max < RGB_MATRIX_LED_COUNT;
74} 74}
diff --git a/keyboards/horrortroll/handwired_k552/keymaps/via/led/random_breath_rainbow.c b/keyboards/horrortroll/handwired_k552/keymaps/via/led/random_breath_rainbow.c
index 041417477b..29c447c61a 100644
--- a/keyboards/horrortroll/handwired_k552/keymaps/via/led/random_breath_rainbow.c
+++ b/keyboards/horrortroll/handwired_k552/keymaps/via/led/random_breath_rainbow.c
@@ -14,7 +14,7 @@
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
17static uint8_t offset[DRIVER_LED_TOTAL]; 17static uint8_t offset[RGB_MATRIX_LED_COUNT];
18 18
19static void doRandom_breath_rainbow(int i, effect_params_t* params) { 19static void doRandom_breath_rainbow(int i, effect_params_t* params) {
20 if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return; 20 if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return;
@@ -41,7 +41,7 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
41 41
42 if (!params->init) { 42 if (!params->init) {
43 // Change one LED every tick, make sure speed is not 0 43 // Change one LED every tick, make sure speed is not 0
44 doRandom_breath_rainbow(rand() % DRIVER_LED_TOTAL, params); 44 doRandom_breath_rainbow(rand() % RGB_MATRIX_LED_COUNT, params);
45 return false; 45 return false;
46 } 46 }
47 47
@@ -51,5 +51,5 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
51 doRandom_breath_rainbow(i, params); 51 doRandom_breath_rainbow(i, params);
52 } 52 }
53 53
54 return led_max < DRIVER_LED_TOTAL; 54 return led_max < RGB_MATRIX_LED_COUNT;
55} 55}
diff --git a/keyboards/hs60/v1/config.h b/keyboards/hs60/v1/config.h
index adc6f94f1f..6c942680f5 100644
--- a/keyboards/hs60/v1/config.h
+++ b/keyboards/hs60/v1/config.h
@@ -125,7 +125,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
125#define DRIVER_2_LED_TOTAL 32 125#define DRIVER_2_LED_TOTAL 32
126#endif 126#endif
127 127
128#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 128#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
129 129
130// RGB Matrix Animation modes. Explicitly enabled 130// RGB Matrix Animation modes. Explicitly enabled
131// For full list of effects, see: 131// For full list of effects, see:
diff --git a/keyboards/hs60/v1/v1.c b/keyboards/hs60/v1/v1.c
index f96eb7c320..466cfeeaf5 100644
--- a/keyboards/hs60/v1/v1.c
+++ b/keyboards/hs60/v1/v1.c
@@ -91,7 +91,7 @@ void raw_hid_receive( uint8_t *data, uint8_t length )
91 91
92#ifdef HS60_ANSI 92#ifdef HS60_ANSI
93 93
94const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 94const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
95/* Refer to IS31 manual for these locations 95/* Refer to IS31 manual for these locations
96 * driver 96 * driver
97 * | R location 97 * | R location
@@ -199,7 +199,7 @@ led_config_t g_led_config = { {
199 199
200#else 200#else
201 201
202const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 202const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
203/* Refer to IS31 manual for these locations 203/* Refer to IS31 manual for these locations
204 * driver 204 * driver
205 * | R location 205 * | R location
diff --git a/keyboards/hs60/v2/ansi/config.h b/keyboards/hs60/v2/ansi/config.h
index 04c7d8c701..509661db8d 100644
--- a/keyboards/hs60/v2/ansi/config.h
+++ b/keyboards/hs60/v2/ansi/config.h
@@ -114,7 +114,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
114#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } 114#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
115 115
116#define DRIVER_COUNT 2 116#define DRIVER_COUNT 2
117#define DRIVER_LED_TOTAL 64 117#define RGB_MATRIX_LED_COUNT 64
118 118
119// These define which keys in the matrix are alphas/mods 119// These define which keys in the matrix are alphas/mods
120// Used for backlight effects so colors are different for 120// Used for backlight effects so colors are different for
diff --git a/keyboards/hs60/v2/hhkb/config.h b/keyboards/hs60/v2/hhkb/config.h
index 4dac657b39..46090673db 100644
--- a/keyboards/hs60/v2/hhkb/config.h
+++ b/keyboards/hs60/v2/hhkb/config.h
@@ -114,7 +114,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
114#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } 114#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
115 115
116#define DRIVER_COUNT 2 116#define DRIVER_COUNT 2
117#define DRIVER_LED_TOTAL 64 117#define RGB_MATRIX_LED_COUNT 64
118 118
119// These define which keys in the matrix are alphas/mods 119// These define which keys in the matrix are alphas/mods
120// Used for backlight effects so colors are different for 120// Used for backlight effects so colors are different for
diff --git a/keyboards/hs60/v2/iso/config.h b/keyboards/hs60/v2/iso/config.h
index da918955c3..cf43e3dd94 100644
--- a/keyboards/hs60/v2/iso/config.h
+++ b/keyboards/hs60/v2/iso/config.h
@@ -112,7 +112,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
112#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } 112#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
113 113
114#define DRIVER_COUNT 2 114#define DRIVER_COUNT 2
115#define DRIVER_LED_TOTAL 64 115#define RGB_MATRIX_LED_COUNT 64
116 116
117// These define which keys in the matrix are alphas/mods 117// These define which keys in the matrix are alphas/mods
118// Used for backlight effects so colors are different for 118// Used for backlight effects so colors are different for
diff --git a/keyboards/hub20/config.h b/keyboards/hub20/config.h
index 24bcdb0061..8452eab0c9 100644
--- a/keyboards/hub20/config.h
+++ b/keyboards/hub20/config.h
@@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
36#define RGB_DI_PIN B15 36#define RGB_DI_PIN B15
37#define RGBLED_NUM 27 37#define RGBLED_NUM 27
38 38
39#define DRIVER_LED_TOTAL 27 39#define RGB_MATRIX_LED_COUNT 27
40#ifdef RGB_DI_PIN 40#ifdef RGB_DI_PIN
41 #define RGBLED_NUM 27 41 #define RGBLED_NUM 27
42#endif 42#endif
diff --git a/keyboards/idobao/id42/config.h b/keyboards/idobao/id42/config.h
index a95578a9b3..bef9120005 100755
--- a/keyboards/idobao/id42/config.h
+++ b/keyboards/idobao/id42/config.h
@@ -19,7 +19,7 @@
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21 #define RGB_DI_PIN B3 21 #define RGB_DI_PIN B3
22 #define DRIVER_LED_TOTAL 42 22 #define RGB_MATRIX_LED_COUNT 42
23 23
24 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 24 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
25 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // limits maximum brightness of LEDs to x out of 255. If not defined maximum brightness is set to 255 25 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // limits maximum brightness of LEDs to x out of 255. If not defined maximum brightness is set to 255
diff --git a/keyboards/idobao/id42/id42.c b/keyboards/idobao/id42/id42.c
index ea3dccdfed..15cc0b41b0 100755
--- a/keyboards/idobao/id42/id42.c
+++ b/keyboards/idobao/id42/id42.c
@@ -20,7 +20,7 @@
20 */ 20 */
21led_config_t g_led_config = { { 21led_config_t g_led_config = { {
22 // Key Matrix to LED Index 22 // Key Matrix to LED Index
23 // WS2812 LED strings are addressed from 0 (1st) to DRIVER_LED_TOTAL-1 (last) 23 // WS2812 LED strings are addressed from 0 (1st) to RGB_MATRIX_LED_COUNT-1 (last)
24 { 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30 }, 24 { 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30 },
25 { 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, __, 19 }, 25 { 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, __, 19 },
26 { 18, 17, 16, 15, 14, 13, 12, 11, 10, __, 9, 8 }, 26 { 18, 17, 16, 15, 14, 13, 12, 11, 10, __, 9, 8 },
diff --git a/keyboards/idobao/id63/config.h b/keyboards/idobao/id63/config.h
index 10fb9d5f08..052f7f3bad 100644
--- a/keyboards/idobao/id63/config.h
+++ b/keyboards/idobao/id63/config.h
@@ -22,9 +22,9 @@
22 * 22 *
23 * */ 23 * */
24 #ifndef ID63_DISABLE_UNDERGLOW 24 #ifndef ID63_DISABLE_UNDERGLOW
25 #define DRIVER_LED_TOTAL 75 25 #define RGB_MATRIX_LED_COUNT 75
26 #else 26 #else
27 #define DRIVER_LED_TOTAL (75 - 12) 27 #define RGB_MATRIX_LED_COUNT (75 - 12)
28 #endif 28 #endif
29 29
30 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 30 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
diff --git a/keyboards/idobao/id67/config.h b/keyboards/idobao/id67/config.h
index 59e34654b5..dcb2de2a32 100644
--- a/keyboards/idobao/id67/config.h
+++ b/keyboards/idobao/id67/config.h
@@ -12,9 +12,9 @@
12// RGB Matrix config 12// RGB Matrix config
13#if defined(RGB_MATRIX_ENABLE) 13#if defined(RGB_MATRIX_ENABLE)
14 #ifndef ID67_DISABLE_UNDERGLOW 14 #ifndef ID67_DISABLE_UNDERGLOW
15 #define DRIVER_LED_TOTAL 77 15 #define RGB_MATRIX_LED_COUNT 77
16 #else 16 #else
17 #define DRIVER_LED_TOTAL (77 - 10) 17 #define RGB_MATRIX_LED_COUNT (77 - 10)
18 #endif 18 #endif
19 19
20 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 20 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
diff --git a/keyboards/idobao/id67/keymaps/thewerther/keymap.c b/keyboards/idobao/id67/keymaps/thewerther/keymap.c
index ef37b210f5..a47a54db37 100644
--- a/keyboards/idobao/id67/keymaps/thewerther/keymap.c
+++ b/keyboards/idobao/id67/keymaps/thewerther/keymap.c
@@ -34,7 +34,7 @@ void matrix_scan_user(void) {
34 if (current_effect >= RGB_MATRIX_SOLID_REACTIVE_SIMPLE && current_effect <= RGB_MATRIX_SOLID_MULTISPLASH) { 34 if (current_effect >= RGB_MATRIX_SOLID_REACTIVE_SIMPLE && current_effect <= RGB_MATRIX_SOLID_MULTISPLASH) {
35 // set all underglow leds to current color 35 // set all underglow leds to current color
36 RGB current_color = hsv_to_rgb(rgb_matrix_get_hsv()); 36 RGB current_color = hsv_to_rgb(rgb_matrix_get_hsv());
37 for (int i = DRIVER_LED_TOTAL - DRIVER_LED_UNDERGLOW; i < DRIVER_LED_TOTAL; i++) { 37 for (int i = RGB_MATRIX_LED_COUNT - DRIVER_LED_UNDERGLOW; i < RGB_MATRIX_LED_COUNT; i++) {
38 rgb_matrix_set_color(i, current_color.r, current_color.g, current_color.b); 38 rgb_matrix_set_color(i, current_color.r, current_color.g, current_color.b);
39 } 39 }
40 } 40 }
diff --git a/keyboards/idobao/id67/keymaps/vinorodrigues/keymap.c b/keyboards/idobao/id67/keymaps/vinorodrigues/keymap.c
index 1bf6971730..c0b79631d2 100644
--- a/keyboards/idobao/id67/keymaps/vinorodrigues/keymap.c
+++ b/keyboards/idobao/id67/keymaps/vinorodrigues/keymap.c
@@ -129,7 +129,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
129#define LED_FLAG_ALPHA_KEY 0x10 // Alpha keys (for Caps Lock) 129#define LED_FLAG_ALPHA_KEY 0x10 // Alpha keys (for Caps Lock)
130#define LED_FLAG_LAYER_IND 0x20 // Layer indicator 130#define LED_FLAG_LAYER_IND 0x20 // Layer indicator
131 131
132const uint8_t g_led_config_new_flags[DRIVER_LED_TOTAL] = { 132const uint8_t g_led_config_new_flags[RGB_MATRIX_LED_COUNT] = {
133 // Extended LED Index to Flag 133 // Extended LED Index to Flag
134 // ** Remember: on ID67 this is in reverse order 134 // ** Remember: on ID67 this is in reverse order
135 0x21, 0x01, 0x01, 0x01, 0x01, 0x04, 0x01, 0x01, 0x21, // Spc row 135 0x21, 0x01, 0x01, 0x01, 0x01, 0x04, 0x01, 0x01, 0x21, // Spc row
@@ -147,7 +147,7 @@ static uint16_t recording_timer;
147 147
148void keyboard_pre_init_user(void) { 148void keyboard_pre_init_user(void) {
149 // override `config.h` flags with new values 149 // override `config.h` flags with new values
150 for (int i = 0; i < DRIVER_LED_TOTAL; i++) g_led_config.flags[i] = g_led_config_new_flags[i]; 150 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) g_led_config.flags[i] = g_led_config_new_flags[i];
151} 151}
152 152
153void keyboard_post_init_user(void) { 153void keyboard_post_init_user(void) {
diff --git a/keyboards/idobao/id75/v2/config.h b/keyboards/idobao/id75/v2/config.h
index 4029d80bf8..62c25486c5 100644
--- a/keyboards/idobao/id75/v2/config.h
+++ b/keyboards/idobao/id75/v2/config.h
@@ -41,7 +41,7 @@
41#undef RGB_DI_PIN 41#undef RGB_DI_PIN
42#define RGB_DI_PIN F0 42#define RGB_DI_PIN F0
43#ifdef RGB_MATRIX_ENABLE 43#ifdef RGB_MATRIX_ENABLE
44# define DRIVER_LED_TOTAL 85 /* 10 Bottom 75 top*/ 44# define RGB_MATRIX_LED_COUNT 85 /* 10 Bottom 75 top*/
45// RGB Matrix Animation modes. Explicitly enabled 45// RGB Matrix Animation modes. Explicitly enabled
46// For full list of effects, see: 46// For full list of effects, see:
47// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects 47// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
diff --git a/keyboards/idobao/id80/v3/ansi/config.h b/keyboards/idobao/id80/v3/ansi/config.h
index 1b99fd7908..50ca039a06 100644
--- a/keyboards/idobao/id80/v3/ansi/config.h
+++ b/keyboards/idobao/id80/v3/ansi/config.h
@@ -22,7 +22,7 @@
22// RGB Matrix config 22// RGB Matrix config
23#if defined(RGB_DI_PIN) && defined(RGB_MATRIX_ENABLE) 23#if defined(RGB_DI_PIN) && defined(RGB_MATRIX_ENABLE)
24 24
25 #define DRIVER_LED_TOTAL 94 25 #define RGB_MATRIX_LED_COUNT 94
26 26
27 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 27 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
28 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // limits maximum brightness of LEDs to x out of 255. If not defined maximum brightness is set to 255 28 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // limits maximum brightness of LEDs to x out of 255. If not defined maximum brightness is set to 255
diff --git a/keyboards/idobao/id87/v2/config.h b/keyboards/idobao/id87/v2/config.h
index 8f1a9ddf03..08ce4f0af4 100644
--- a/keyboards/idobao/id87/v2/config.h
+++ b/keyboards/idobao/id87/v2/config.h
@@ -14,7 +14,7 @@
14// RGB Matrix config 14// RGB Matrix config
15#if defined(RGB_MATRIX_ENABLE) 15#if defined(RGB_MATRIX_ENABLE)
16 16
17 #define DRIVER_LED_TOTAL 103 17 #define RGB_MATRIX_LED_COUNT 103
18 18
19 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 19 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
20 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // limits maximum brightness of LEDs to x out of 255. If not defined maximum brightness is set to 255 20 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // limits maximum brightness of LEDs to x out of 255. If not defined maximum brightness is set to 255
diff --git a/keyboards/idobao/montex/v1rgb/config.h b/keyboards/idobao/montex/v1rgb/config.h
index 670b43462b..8a3b3029d4 100755
--- a/keyboards/idobao/montex/v1rgb/config.h
+++ b/keyboards/idobao/montex/v1rgb/config.h
@@ -28,7 +28,7 @@
28#if defined(RGB_DI_PIN) && defined(RGB_MATRIX_ENABLE) 28#if defined(RGB_DI_PIN) && defined(RGB_MATRIX_ENABLE)
29 29
30 // The number of LEDs connected 30 // The number of LEDs connected
31 #define DRIVER_LED_TOTAL 31 31 #define RGB_MATRIX_LED_COUNT 31
32 32
33 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses 33 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
34 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value 34 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
diff --git a/keyboards/idobao/montex/v2/config.h b/keyboards/idobao/montex/v2/config.h
index 98ba567203..eaed5dde7a 100755
--- a/keyboards/idobao/montex/v2/config.h
+++ b/keyboards/idobao/montex/v2/config.h
@@ -10,9 +10,9 @@
10 10
11#if defined(RGB_DI_PIN) && defined(RGB_MATRIX_ENABLE) 11#if defined(RGB_DI_PIN) && defined(RGB_MATRIX_ENABLE)
12 #ifndef ID27_DISABLE_UNDERGLOW 12 #ifndef ID27_DISABLE_UNDERGLOW
13 #define DRIVER_LED_TOTAL 31 // The number of LEDs connected 13 #define RGB_MATRIX_LED_COUNT 31 // The number of LEDs connected
14 #else 14 #else
15 #define DRIVER_LED_TOTAL 27 // -4 disabled underglow LEDs 15 #define RGB_MATRIX_LED_COUNT 27 // -4 disabled underglow LEDs
16 #endif 16 #endif
17 17
18 // #define RGB_MATRIX_FRAMEBUFFER_EFFECTS // don't use, too few key to make it look good 18 // #define RGB_MATRIX_FRAMEBUFFER_EFFECTS // don't use, too few key to make it look good
diff --git a/keyboards/ilumkb/simpler61/config.h b/keyboards/ilumkb/simpler61/config.h
index 0b952c25e5..ee26a0ff23 100644
--- a/keyboards/ilumkb/simpler61/config.h
+++ b/keyboards/ilumkb/simpler61/config.h
@@ -40,7 +40,7 @@
40#define DRIVER_ADDR_1 0b0110000 40#define DRIVER_ADDR_1 0b0110000
41#define DRIVER_COUNT 1 41#define DRIVER_COUNT 1
42#define DRIVER_1_LED_TOTAL 61 42#define DRIVER_1_LED_TOTAL 61
43#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 43#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
44#define DRIVER_INDICATOR_LED_TOTAL 0 44#define DRIVER_INDICATOR_LED_TOTAL 0
45 45
46// For full list of effects, see: 46// For full list of effects, see:
diff --git a/keyboards/ilumkb/simpler61/simpler61.c b/keyboards/ilumkb/simpler61/simpler61.c
index 20a40e9169..4fcc5c9245 100644
--- a/keyboards/ilumkb/simpler61/simpler61.c
+++ b/keyboards/ilumkb/simpler61/simpler61.c
@@ -17,7 +17,7 @@
17#include "simpler61.h" 17#include "simpler61.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 {0, CS3_SW1, CS2_SW1, CS1_SW1}, 21 {0, CS3_SW1, CS2_SW1, CS1_SW1},
22 {0, CS3_SW2, CS2_SW2, CS1_SW2}, 22 {0, CS3_SW2, CS2_SW2, CS1_SW2},
23 {0, CS3_SW3, CS2_SW3, CS1_SW3}, 23 {0, CS3_SW3, CS2_SW3, CS1_SW3},
diff --git a/keyboards/ilumkb/simpler64/config.h b/keyboards/ilumkb/simpler64/config.h
index 324745efa8..463f94aeae 100644
--- a/keyboards/ilumkb/simpler64/config.h
+++ b/keyboards/ilumkb/simpler64/config.h
@@ -40,7 +40,7 @@
40#define DRIVER_ADDR_1 0b0110000 40#define DRIVER_ADDR_1 0b0110000
41#define DRIVER_COUNT 1 41#define DRIVER_COUNT 1
42#define DRIVER_1_LED_TOTAL 64 42#define DRIVER_1_LED_TOTAL 64
43#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 43#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
44#define DRIVER_INDICATOR_LED_TOTAL 0 44#define DRIVER_INDICATOR_LED_TOTAL 0
45 45
46 46
diff --git a/keyboards/ilumkb/simpler64/simpler64.c b/keyboards/ilumkb/simpler64/simpler64.c
index 8ab72caaca..c42a444576 100644
--- a/keyboards/ilumkb/simpler64/simpler64.c
+++ b/keyboards/ilumkb/simpler64/simpler64.c
@@ -17,7 +17,7 @@
17#include "simpler64.h" 17#include "simpler64.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 {0, CS3_SW1, CS2_SW1, CS1_SW1}, 21 {0, CS3_SW1, CS2_SW1, CS1_SW1},
22 {0, CS3_SW2, CS2_SW2, CS1_SW2}, 22 {0, CS3_SW2, CS2_SW2, CS1_SW2},
23 {0, CS3_SW3, CS2_SW3, CS1_SW3}, 23 {0, CS3_SW3, CS2_SW3, CS1_SW3},
diff --git a/keyboards/inett_studio/sqx/hotswap/config.h b/keyboards/inett_studio/sqx/hotswap/config.h
index af9c4ecbe2..f55cf34eb5 100644
--- a/keyboards/inett_studio/sqx/hotswap/config.h
+++ b/keyboards/inett_studio/sqx/hotswap/config.h
@@ -57,7 +57,7 @@
57#define DRIVER_ADDR_1 0b1110100 57#define DRIVER_ADDR_1 0b1110100
58#define DRIVER_ADDR_2 0b1110111 58#define DRIVER_ADDR_2 0b1110111
59#define DRIVER_COUNT 2 59#define DRIVER_COUNT 2
60#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 60#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
61 61
62#if defined(RGB_MATRIX_ENABLE) && defined(RGBLIGHT_ENABLE) 62#if defined(RGB_MATRIX_ENABLE) && defined(RGBLIGHT_ENABLE)
63 #define RGB_MATRIX_DISABLE_KEYCODES 63 #define RGB_MATRIX_DISABLE_KEYCODES
diff --git a/keyboards/inett_studio/sqx/hotswap/hotswap.c b/keyboards/inett_studio/sqx/hotswap/hotswap.c
index c8e7d87846..055e918f6d 100644
--- a/keyboards/inett_studio/sqx/hotswap/hotswap.c
+++ b/keyboards/inett_studio/sqx/hotswap/hotswap.c
@@ -20,7 +20,7 @@
20#include "hotswap.h" 20#include "hotswap.h"
21 21
22#ifdef RGB_MATRIX_ENABLE 22#ifdef RGB_MATRIX_ENABLE
23const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 23const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
24/* Refer to IS31 manual for these locations 24/* Refer to IS31 manual for these locations
25 * driver 25 * driver
26 * | R location 26 * | R location
diff --git a/keyboards/inett_studio/sqx/universal/config.h b/keyboards/inett_studio/sqx/universal/config.h
index 8c2405e644..d9bbb1c9fc 100644
--- a/keyboards/inett_studio/sqx/universal/config.h
+++ b/keyboards/inett_studio/sqx/universal/config.h
@@ -57,7 +57,7 @@
57#define DRIVER_ADDR_1 0b1110100 57#define DRIVER_ADDR_1 0b1110100
58#define DRIVER_ADDR_2 0b1110111 58#define DRIVER_ADDR_2 0b1110111
59#define DRIVER_COUNT 2 59#define DRIVER_COUNT 2
60#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 60#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
61 61
62#if defined(RGB_MATRIX_ENABLE) && defined(RGBLIGHT_ENABLE) 62#if defined(RGB_MATRIX_ENABLE) && defined(RGBLIGHT_ENABLE)
63# define RGB_MATRIX_DISABLE_KEYCODES 63# define RGB_MATRIX_DISABLE_KEYCODES
diff --git a/keyboards/inett_studio/sqx/universal/universal.c b/keyboards/inett_studio/sqx/universal/universal.c
index 06cfbd3654..e03d7395e5 100644
--- a/keyboards/inett_studio/sqx/universal/universal.c
+++ b/keyboards/inett_studio/sqx/universal/universal.c
@@ -20,7 +20,7 @@
20#include "universal.h" 20#include "universal.h"
21 21
22#ifdef RGB_MATRIX_ENABLE 22#ifdef RGB_MATRIX_ENABLE
23const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 23const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
24/* Refer to IS31 manual for these locations 24/* Refer to IS31 manual for these locations
25 * driver 25 * driver
26 * | R location 26 * | R location
diff --git a/keyboards/input_club/ergodox_infinity/config.h b/keyboards/input_club/ergodox_infinity/config.h
index 00dd0bd1f3..19a777e615 100644
--- a/keyboards/input_club/ergodox_infinity/config.h
+++ b/keyboards/input_club/ergodox_infinity/config.h
@@ -67,7 +67,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
67/* LED matrix driver */ 67/* LED matrix driver */
68#define LED_DRIVER_ADDR_1 0x74 68#define LED_DRIVER_ADDR_1 0x74
69#define LED_DRIVER_COUNT 1 69#define LED_DRIVER_COUNT 1
70#define DRIVER_LED_TOTAL 76 70#define LED_MATRIX_LED_COUNT 76
71#define LED_MATRIX_SPLIT { 38, 38 } 71#define LED_MATRIX_SPLIT { 38, 38 }
72#define LED_DISABLE_WHEN_USB_SUSPENDED 72#define LED_DISABLE_WHEN_USB_SUSPENDED
73 73
diff --git a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c
index e6ac2c4559..d699d76333 100644
--- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c
+++ b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c
@@ -174,7 +174,7 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
174#endif 174#endif
175 175
176#ifdef LED_MATRIX_ENABLE 176#ifdef LED_MATRIX_ENABLE
177const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 177const is31_led PROGMEM g_is31_leds[LED_MATRIX_LED_COUNT] = {
178// The numbers in the comments are the led numbers DXX on the PCB 178// The numbers in the comments are the led numbers DXX on the PCB
179/* Refer to IS31 manual for these locations 179/* Refer to IS31 manual for these locations
180 * driver 180 * driver
diff --git a/keyboards/input_club/k_type/config.h b/keyboards/input_club/k_type/config.h
index 12cda14a3a..b58f0f2973 100644
--- a/keyboards/input_club/k_type/config.h
+++ b/keyboards/input_club/k_type/config.h
@@ -170,5 +170,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
170# define DRIVER_COUNT 2 170# define DRIVER_COUNT 2
171# define DRIVER_1_LED_TOTAL 64 171# define DRIVER_1_LED_TOTAL 64
172# define DRIVER_2_LED_TOTAL 55 172# define DRIVER_2_LED_TOTAL 55
173# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 173# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
174#endif 174#endif
diff --git a/keyboards/input_club/k_type/is31fl3733-dual.c b/keyboards/input_club/k_type/is31fl3733-dual.c
index e76479b01a..3898016875 100644
--- a/keyboards/input_club/k_type/is31fl3733-dual.c
+++ b/keyboards/input_club/k_type/is31fl3733-dual.c
@@ -160,7 +160,7 @@ void IS31FL3733_init(uint8_t bus, uint8_t addr, uint8_t sync) {
160} 160}
161 161
162void IS31FL3733_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 162void IS31FL3733_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
163 if (index >= 0 && index < DRIVER_LED_TOTAL) { 163 if (index >= 0 && index < RGB_MATRIX_LED_COUNT) {
164 is31_led led = g_is31_leds[index]; 164 is31_led led = g_is31_leds[index];
165 165
166 g_pwm_buffer[led.driver][led.r] = red; 166 g_pwm_buffer[led.driver][led.r] = red;
@@ -171,7 +171,7 @@ void IS31FL3733_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
171} 171}
172 172
173void IS31FL3733_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 173void IS31FL3733_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
174 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 174 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
175 IS31FL3733_set_color(i, red, green, blue); 175 IS31FL3733_set_color(i, red, green, blue);
176 } 176 }
177} 177}
diff --git a/keyboards/input_club/k_type/is31fl3733-dual.h b/keyboards/input_club/k_type/is31fl3733-dual.h
index d4af1848fb..16586714b8 100644
--- a/keyboards/input_club/k_type/is31fl3733-dual.h
+++ b/keyboards/input_club/k_type/is31fl3733-dual.h
@@ -29,7 +29,7 @@ typedef struct is31_led {
29 uint8_t b; 29 uint8_t b;
30} __attribute__((packed)) is31_led; 30} __attribute__((packed)) is31_led;
31 31
32extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL]; 32extern const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT];
33 33
34void IS31FL3733_init(uint8_t bus, uint8_t addr, uint8_t sync); 34void IS31FL3733_init(uint8_t bus, uint8_t addr, uint8_t sync);
35bool IS31FL3733_write_register(uint8_t index, uint8_t addr, uint8_t reg, uint8_t data); 35bool IS31FL3733_write_register(uint8_t index, uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/keyboards/input_club/k_type/k_type-rgbdriver.c b/keyboards/input_club/k_type/k_type-rgbdriver.c
index 5ae132d63a..e663c224c4 100644
--- a/keyboards/input_club/k_type/k_type-rgbdriver.c
+++ b/keyboards/input_club/k_type/k_type-rgbdriver.c
@@ -29,7 +29,7 @@ static void init(void) {
29 i2c_init(&I2CD2, I2C2_SCL_PIN, I2C2_SDA_PIN); 29 i2c_init(&I2CD2, I2C2_SCL_PIN, I2C2_SDA_PIN);
30 IS31FL3733_init(1, DRIVER_ADDR_2, 0); 30 IS31FL3733_init(1, DRIVER_ADDR_2, 0);
31# endif 31# endif
32 for (int index = 0; index < DRIVER_LED_TOTAL; index++) { 32 for (int index = 0; index < RGB_MATRIX_LED_COUNT; index++) {
33 bool enabled = true; 33 bool enabled = true;
34 // This only caches it for later 34 // This only caches it for later
35 IS31FL3733_set_led_control_register(index, enabled, enabled, enabled); 35 IS31FL3733_set_led_control_register(index, enabled, enabled, enabled);
diff --git a/keyboards/input_club/k_type/k_type.c b/keyboards/input_club/k_type/k_type.c
index 0e10710cb1..3f67b4b10d 100644
--- a/keyboards/input_club/k_type/k_type.c
+++ b/keyboards/input_club/k_type/k_type.c
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
23#include "is31fl3733-dual.h" 23#include "is31fl3733-dual.h"
24 24
25 25
26const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 26const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
27 { 0, B_1, A_1, C_1 }, 27 { 0, B_1, A_1, C_1 },
28 { 0, B_2, A_2, C_2 }, 28 { 0, B_2, A_2, C_2 },
29 { 0, B_3, A_3, C_3 }, 29 { 0, B_3, A_3, C_3 },
diff --git a/keyboards/input_club/k_type/keymaps/andrew-fahmy/config.h b/keyboards/input_club/k_type/keymaps/andrew-fahmy/config.h
index c035255de6..31e4bff4b6 100644
--- a/keyboards/input_club/k_type/keymaps/andrew-fahmy/config.h
+++ b/keyboards/input_club/k_type/keymaps/andrew-fahmy/config.h
@@ -48,5 +48,5 @@
48# define DRIVER_COUNT 2 48# define DRIVER_COUNT 2
49# define DRIVER_1_LED_TOTAL 64 49# define DRIVER_1_LED_TOTAL 64
50# define DRIVER_2_LED_TOTAL 55 50# define DRIVER_2_LED_TOTAL 55
51# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 51# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
52#endif 52#endif
diff --git a/keyboards/input_club/whitefox/config.h b/keyboards/input_club/whitefox/config.h
index 2c2e8c6324..dd20f2fe06 100644
--- a/keyboards/input_club/whitefox/config.h
+++ b/keyboards/input_club/whitefox/config.h
@@ -57,7 +57,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
57/* LED matrix driver */ 57/* LED matrix driver */
58#define LED_DRIVER_ADDR_1 0x74 58#define LED_DRIVER_ADDR_1 0x74
59#define LED_DRIVER_COUNT 1 59#define LED_DRIVER_COUNT 1
60#define DRIVER_LED_TOTAL 71 60#define LED_MATRIX_LED_COUNT 71
61#define LED_DISABLE_WHEN_USB_SUSPENDED 61#define LED_DISABLE_WHEN_USB_SUSPENDED
62 62
63/* i2c (for LED matrix) */ 63/* i2c (for LED matrix) */
diff --git a/keyboards/input_club/whitefox/whitefox.c b/keyboards/input_club/whitefox/whitefox.c
index 99c59f7732..8d92aa8d2f 100644
--- a/keyboards/input_club/whitefox/whitefox.c
+++ b/keyboards/input_club/whitefox/whitefox.c
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18#include "whitefox.h" 18#include "whitefox.h"
19 19
20#ifdef LED_MATRIX_ENABLE 20#ifdef LED_MATRIX_ENABLE
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[LED_MATRIX_LED_COUNT] = {
22// The numbers in the comments are the led numbers DXX on the PCB 22// The numbers in the comments are the led numbers DXX on the PCB
23/* Refer to IS31 manual for these locations 23/* Refer to IS31 manual for these locations
24 * driver 24 * driver
diff --git a/keyboards/jacky_studio/bear_65/config.h b/keyboards/jacky_studio/bear_65/config.h
index 92a6a5b60a..dc7e9c6158 100644
--- a/keyboards/jacky_studio/bear_65/config.h
+++ b/keyboards/jacky_studio/bear_65/config.h
@@ -74,5 +74,5 @@
74#define RGB_MATRIX_KEYPRESSES 74#define RGB_MATRIX_KEYPRESSES
75#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 220 75#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 220
76#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 76#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
77#define DRIVER_LED_TOTAL 12 // Number of LEDs 77#define RGB_MATRIX_LED_COUNT 12 // Number of LEDs
78#endif 78#endif
diff --git a/keyboards/jadookb/jkb65/config.h b/keyboards/jadookb/jkb65/config.h
index a3fd5a0fa7..c82b44b482 100644
--- a/keyboards/jadookb/jkb65/config.h
+++ b/keyboards/jadookb/jkb65/config.h
@@ -25,7 +25,7 @@
25 25
26#define RGB_DI_PIN F0 26#define RGB_DI_PIN F0
27 27
28#define DRIVER_LED_TOTAL 67 28#define RGB_MATRIX_LED_COUNT 67
29 29
30#define RGB_DISABLE_WHEN_USB_SUSPENDED 30#define RGB_DISABLE_WHEN_USB_SUSPENDED
31#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 31#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/jkeys_design/gentleman65/config.h b/keyboards/jkeys_design/gentleman65/config.h
index eed1d351a7..7b0a723cbc 100644
--- a/keyboards/jkeys_design/gentleman65/config.h
+++ b/keyboards/jkeys_design/gentleman65/config.h
@@ -48,4 +48,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
48#define ENCODERS_PAD_B { F5 } 48#define ENCODERS_PAD_B { F5 }
49#define ENCODER_RESOLUTION 4 49#define ENCODER_RESOLUTION 4
50 50
51#define DRIVER_LED_TOTAL 14 51#define RGB_MATRIX_LED_COUNT 14
diff --git a/keyboards/jkeys_design/gentleman65_se_s/config.h b/keyboards/jkeys_design/gentleman65_se_s/config.h
index effdb281e6..f5ecb8f5de 100644
--- a/keyboards/jkeys_design/gentleman65_se_s/config.h
+++ b/keyboards/jkeys_design/gentleman65_se_s/config.h
@@ -49,4 +49,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
49#define ENCODERS_PAD_B { B1 } 49#define ENCODERS_PAD_B { B1 }
50#define ENCODER_RESOLUTION 4 50#define ENCODER_RESOLUTION 4
51 51
52#define DRIVER_LED_TOTAL 14 52#define RGB_MATRIX_LED_COUNT 14
diff --git a/keyboards/kapl/rev1/config.h b/keyboards/kapl/rev1/config.h
index ae88c86572..37e49d3d60 100644
--- a/keyboards/kapl/rev1/config.h
+++ b/keyboards/kapl/rev1/config.h
@@ -31,7 +31,7 @@
31#define RGBLIGHT_SPLIT 31#define RGBLIGHT_SPLIT
32#define RGBLIGHT_LIMIT_VAL 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 32#define RGBLIGHT_LIMIT_VAL 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
33 33
34#define DRIVER_LED_TOTAL 88 34#define RGB_MATRIX_LED_COUNT 88
35#define RGB_MATRIX_SPLIT { 44, 44 } 35#define RGB_MATRIX_SPLIT { 44, 44 }
36#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 36#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
37#define SPLIT_TRANSPORT_MIRROR 37#define SPLIT_TRANSPORT_MIRROR
diff --git a/keyboards/kbdfans/baguette66/rgb/config.h b/keyboards/kbdfans/baguette66/rgb/config.h
index 4f23460964..2dd8182ddd 100644
--- a/keyboards/kbdfans/baguette66/rgb/config.h
+++ b/keyboards/kbdfans/baguette66/rgb/config.h
@@ -34,7 +34,7 @@
34 34
35#define RGB_DI_PIN E6 35#define RGB_DI_PIN E6
36#define RGBLED_NUM 66 36#define RGBLED_NUM 66
37#define DRIVER_LED_TOTAL RGBLED_NUM 37#define RGB_MATRIX_LED_COUNT RGBLED_NUM
38#define RGBLIGHT_EFFECT_BREATHING 38#define RGBLIGHT_EFFECT_BREATHING
39#define RGBLIGHT_EFFECT_RAINBOW_MOOD 39#define RGBLIGHT_EFFECT_RAINBOW_MOOD
40#define RGBLIGHT_EFFECT_RAINBOW_SWIRL 40#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
diff --git a/keyboards/kbdfans/bella/rgb/config.h b/keyboards/kbdfans/bella/rgb/config.h
index 837701c7c4..326f1fe19f 100644
--- a/keyboards/kbdfans/bella/rgb/config.h
+++ b/keyboards/kbdfans/bella/rgb/config.h
@@ -86,7 +86,7 @@
86#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 86#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
87#define DRIVER_ADDR_1 0b0110000 87#define DRIVER_ADDR_1 0b0110000
88#define DRIVER_COUNT 1 88#define DRIVER_COUNT 1
89#define DRIVER_LED_TOTAL 108 89#define RGB_MATRIX_LED_COUNT 108
90#define DRIVER_INDICATOR_LED_TOTAL 0 90#define DRIVER_INDICATOR_LED_TOTAL 0
91#endif 91#endif
92#define DYNAMIC_KEYMAP_LAYER_COUNT 2 92#define DYNAMIC_KEYMAP_LAYER_COUNT 2
diff --git a/keyboards/kbdfans/bella/rgb/rgb.c b/keyboards/kbdfans/bella/rgb/rgb.c
index 4353cae1be..90bbda0f7f 100644
--- a/keyboards/kbdfans/bella/rgb/rgb.c
+++ b/keyboards/kbdfans/bella/rgb/rgb.c
@@ -15,7 +15,7 @@
15 */ 15 */
16#include "rgb.h" 16#include "rgb.h"
17#ifdef RGB_MATRIX_ENABLE 17#ifdef RGB_MATRIX_ENABLE
18const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 18const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
19 {0, CS18_SW1, CS17_SW1, CS16_SW1}, /* RGB6 */ 19 {0, CS18_SW1, CS17_SW1, CS16_SW1}, /* RGB6 */
20 {0, CS18_SW3, CS17_SW3, CS16_SW3}, /* RGB32 */ 20 {0, CS18_SW3, CS17_SW3, CS16_SW3}, /* RGB32 */
21 {0, CS18_SW4, CS17_SW4, CS16_SW4}, /* RGB45 */ 21 {0, CS18_SW4, CS17_SW4, CS16_SW4}, /* RGB45 */
diff --git a/keyboards/kbdfans/bella/rgb_iso/config.h b/keyboards/kbdfans/bella/rgb_iso/config.h
index b1024b4e21..78ae4f21e1 100644
--- a/keyboards/kbdfans/bella/rgb_iso/config.h
+++ b/keyboards/kbdfans/bella/rgb_iso/config.h
@@ -86,7 +86,7 @@
86#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 86#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
87#define DRIVER_ADDR_1 0b0110000 87#define DRIVER_ADDR_1 0b0110000
88#define DRIVER_COUNT 1 88#define DRIVER_COUNT 1
89#define DRIVER_LED_TOTAL 109 89#define RGB_MATRIX_LED_COUNT 109
90#define DRIVER_INDICATOR_LED_TOTAL 0 90#define DRIVER_INDICATOR_LED_TOTAL 0
91#endif 91#endif
92#define DYNAMIC_KEYMAP_LAYER_COUNT 2 92#define DYNAMIC_KEYMAP_LAYER_COUNT 2
diff --git a/keyboards/kbdfans/bella/rgb_iso/rgb_iso.c b/keyboards/kbdfans/bella/rgb_iso/rgb_iso.c
index 072501045a..417c76cca6 100644
--- a/keyboards/kbdfans/bella/rgb_iso/rgb_iso.c
+++ b/keyboards/kbdfans/bella/rgb_iso/rgb_iso.c
@@ -15,7 +15,7 @@
15 */ 15 */
16#include "rgb_iso.h" 16#include "rgb_iso.h"
17#ifdef RGB_MATRIX_ENABLE 17#ifdef RGB_MATRIX_ENABLE
18const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 18const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
19 {0, CS18_SW1, CS17_SW1, CS16_SW1}, /* RGB6 */ 19 {0, CS18_SW1, CS17_SW1, CS16_SW1}, /* RGB6 */
20 {0, CS18_SW3, CS17_SW3, CS16_SW3}, /* RGB32 */ 20 {0, CS18_SW3, CS17_SW3, CS16_SW3}, /* RGB32 */
21 {0, CS18_SW4, CS17_SW4, CS16_SW4}, /* RGB45 */ 21 {0, CS18_SW4, CS17_SW4, CS16_SW4}, /* RGB45 */
diff --git a/keyboards/kbdfans/boop65/rgb/config.h b/keyboards/kbdfans/boop65/rgb/config.h
index 2d4cbe4e85..fea42a4266 100644
--- a/keyboards/kbdfans/boop65/rgb/config.h
+++ b/keyboards/kbdfans/boop65/rgb/config.h
@@ -43,7 +43,7 @@
43# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 43# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
44# define DRIVER_ADDR_1 0b0110000 44# define DRIVER_ADDR_1 0b0110000
45# define DRIVER_COUNT 1 45# define DRIVER_COUNT 1
46# define DRIVER_LED_TOTAL 83 46# define RGB_MATRIX_LED_COUNT 83
47# define DRIVER_INDICATOR_LED_TOTAL 0 47# define DRIVER_INDICATOR_LED_TOTAL 0
48#define ENABLE_RGB_MATRIX_ALPHAS_MODS 48#define ENABLE_RGB_MATRIX_ALPHAS_MODS
49#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN 49#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
diff --git a/keyboards/kbdfans/boop65/rgb/rgb.c b/keyboards/kbdfans/boop65/rgb/rgb.c
index 3e9c66f457..a0a1778fd8 100644
--- a/keyboards/kbdfans/boop65/rgb/rgb.c
+++ b/keyboards/kbdfans/boop65/rgb/rgb.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS21_SW1, CS20_SW1, CS19_SW1}, 22 {0, CS21_SW1, CS20_SW1, CS19_SW1},
23 {0, CS21_SW2, CS20_SW2, CS19_SW2}, 23 {0, CS21_SW2, CS20_SW2, CS19_SW2},
24 {0, CS21_SW3, CS20_SW3, CS19_SW3}, 24 {0, CS21_SW3, CS20_SW3, CS19_SW3},
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h b/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h
index a6a56cdced..944ddbddc2 100644
--- a/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h
+++ b/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h
@@ -69,4 +69,4 @@
69#define DRIVER_COUNT 2 69#define DRIVER_COUNT 2
70#define DRIVER_1_LED_TOTAL 35 70#define DRIVER_1_LED_TOTAL 35
71#define DRIVER_2_LED_TOTAL 32 71#define DRIVER_2_LED_TOTAL 32
72#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 72#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v1/v1.c b/keyboards/kbdfans/kbd67/mkiirgb/v1/v1.c
index f003673871..f034350b7c 100644
--- a/keyboards/kbdfans/kbd67/mkiirgb/v1/v1.c
+++ b/keyboards/kbdfans/kbd67/mkiirgb/v1/v1.c
@@ -16,7 +16,7 @@
16 16
17#include "v1.h" 17#include "v1.h"
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 20
21 {0, C8_8, C7_8, C6_8}, // LA17 21 {0, C8_8, C7_8, C6_8}, // LA17
22 {0, C9_8, C7_7, C6_7}, // LA16 22 {0, C9_8, C7_7, C6_7}, // LA16
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h b/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h
index a5dfdae5ed..855f7210db 100644
--- a/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h
+++ b/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h
@@ -68,5 +68,5 @@
68# define DRIVER_COUNT 2 68# define DRIVER_COUNT 2
69# define DRIVER_1_LED_TOTAL 35 69# define DRIVER_1_LED_TOTAL 35
70# define DRIVER_2_LED_TOTAL 32 70# define DRIVER_2_LED_TOTAL 32
71# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 71# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
72#endif 72#endif
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v2/v2.c b/keyboards/kbdfans/kbd67/mkiirgb/v2/v2.c
index 37972c2500..1da1c66747 100644
--- a/keyboards/kbdfans/kbd67/mkiirgb/v2/v2.c
+++ b/keyboards/kbdfans/kbd67/mkiirgb/v2/v2.c
@@ -16,7 +16,7 @@
16 16
17#include "v2.h" 17#include "v2.h"
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 20
21 {0, C8_8, C7_8, C6_8}, // LA17 21 {0, C8_8, C7_8, C6_8}, // LA17
22 {0, C9_8, C7_7, C6_7}, // LA16 22 {0, C9_8, C7_7, C6_7}, // LA16
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v3/config.h b/keyboards/kbdfans/kbd67/mkiirgb/v3/config.h
index cb847e9b45..c65819be8d 100755
--- a/keyboards/kbdfans/kbd67/mkiirgb/v3/config.h
+++ b/keyboards/kbdfans/kbd67/mkiirgb/v3/config.h
@@ -89,6 +89,6 @@
89#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 89#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
90#define DRIVER_ADDR_1 0b0110000 90#define DRIVER_ADDR_1 0b0110000
91#define DRIVER_COUNT 1 91#define DRIVER_COUNT 1
92#define DRIVER_LED_TOTAL 67 92#define RGB_MATRIX_LED_COUNT 67
93#define DRIVER_INDICATOR_LED_TOTAL 0 93#define DRIVER_INDICATOR_LED_TOTAL 0
94#endif 94#endif
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v3/v3.c b/keyboards/kbdfans/kbd67/mkiirgb/v3/v3.c
index 306c22615f..8089ee1f8c 100755
--- a/keyboards/kbdfans/kbd67/mkiirgb/v3/v3.c
+++ b/keyboards/kbdfans/kbd67/mkiirgb/v3/v3.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS21_SW1, CS20_SW1, CS19_SW1}, 22 {0, CS21_SW1, CS20_SW1, CS19_SW1},
23 {0, CS21_SW2, CS20_SW2, CS19_SW2}, 23 {0, CS21_SW2, CS20_SW2, CS19_SW2},
24 {0, CS21_SW3, CS20_SW3, CS19_SW3}, 24 {0, CS21_SW3, CS20_SW3, CS19_SW3},
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v4/config.h b/keyboards/kbdfans/kbd67/mkiirgb/v4/config.h
index f7e0e06278..4d3d08a513 100644
--- a/keyboards/kbdfans/kbd67/mkiirgb/v4/config.h
+++ b/keyboards/kbdfans/kbd67/mkiirgb/v4/config.h
@@ -33,7 +33,7 @@
33 33
34#define RGB_DI_PIN C7 34#define RGB_DI_PIN C7
35#define RGBLED_NUM 68 35#define RGBLED_NUM 68
36#define DRIVER_LED_TOTAL RGBLED_NUM 36#define RGB_MATRIX_LED_COUNT RGBLED_NUM
37#define RGBLIGHT_EFFECT_BREATHING 37#define RGBLIGHT_EFFECT_BREATHING
38#define RGBLIGHT_EFFECT_RAINBOW_MOOD 38#define RGBLIGHT_EFFECT_RAINBOW_MOOD
39#define RGBLIGHT_EFFECT_RAINBOW_SWIRL 39#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
diff --git a/keyboards/kbdfans/kbd67/mkiirgb_iso/config.h b/keyboards/kbdfans/kbd67/mkiirgb_iso/config.h
index 415da00b48..afca6e996b 100644
--- a/keyboards/kbdfans/kbd67/mkiirgb_iso/config.h
+++ b/keyboards/kbdfans/kbd67/mkiirgb_iso/config.h
@@ -32,7 +32,7 @@
32#define USB_SUSPEND_WAKEUP_DELAY 5000 32#define USB_SUSPEND_WAKEUP_DELAY 5000
33 33
34#define RGB_DI_PIN C7 34#define RGB_DI_PIN C7
35#define DRIVER_LED_TOTAL 68 35#define RGB_MATRIX_LED_COUNT 68
36 36
37#ifdef RGB_MATRIX_ENABLE 37#ifdef RGB_MATRIX_ENABLE
38# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 38# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
diff --git a/keyboards/kbdfans/kbd75rgb/config.h b/keyboards/kbdfans/kbd75rgb/config.h
index eff9c8eae1..ba2b1e96b8 100644
--- a/keyboards/kbdfans/kbd75rgb/config.h
+++ b/keyboards/kbdfans/kbd75rgb/config.h
@@ -34,7 +34,7 @@
34 34
35#define RGB_DI_PIN C7 35#define RGB_DI_PIN C7
36#define RGBLED_NUM 84 36#define RGBLED_NUM 84
37#define DRIVER_LED_TOTAL RGBLED_NUM 37#define RGB_MATRIX_LED_COUNT RGBLED_NUM
38#define RGBLIGHT_EFFECT_BREATHING 38#define RGBLIGHT_EFFECT_BREATHING
39#define RGBLIGHT_EFFECT_RAINBOW_MOOD 39#define RGBLIGHT_EFFECT_RAINBOW_MOOD
40#define RGBLIGHT_EFFECT_RAINBOW_SWIRL 40#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
diff --git a/keyboards/kbdfans/kbdmini/config.h b/keyboards/kbdfans/kbdmini/config.h
index 1f7d095e9f..0eaf7a50ff 100644
--- a/keyboards/kbdfans/kbdmini/config.h
+++ b/keyboards/kbdfans/kbdmini/config.h
@@ -81,5 +81,5 @@
81 81
82#define DRIVER_ADDR_1 0b1010000 82#define DRIVER_ADDR_1 0b1010000
83#define DRIVER_COUNT 1 83#define DRIVER_COUNT 1
84#define DRIVER_LED_TOTAL 52 84#define RGB_MATRIX_LED_COUNT 52
85#endif 85#endif
diff --git a/keyboards/kbdfans/kbdmini/kbdmini.c b/keyboards/kbdfans/kbdmini/kbdmini.c
index 03c0096c70..80ba687b6d 100644
--- a/keyboards/kbdfans/kbdmini/kbdmini.c
+++ b/keyboards/kbdfans/kbdmini/kbdmini.c
@@ -1,6 +1,6 @@
1#include "kbdmini.h" 1#include "kbdmini.h"
2 2
3const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
4 { 0, B_9, A_9, C_9 }, //LA33 4 { 0, B_9, A_9, C_9 }, //LA33
5 { 0, B_10, A_10, C_10 }, //LA37 5 { 0, B_10, A_10, C_10 }, //LA37
6 { 0, B_11, A_11, C_11 }, //LA41 6 { 0, B_11, A_11, C_11 }, //LA41
diff --git a/keyboards/kbdfans/maja/config.h b/keyboards/kbdfans/maja/config.h
index 0800de1ece..f98b7c3116 100755
--- a/keyboards/kbdfans/maja/config.h
+++ b/keyboards/kbdfans/maja/config.h
@@ -69,4 +69,4 @@
69#define DRIVER_COUNT 2 69#define DRIVER_COUNT 2
70#define DRIVER_1_LED_TOTAL 36 70#define DRIVER_1_LED_TOTAL 36
71#define DRIVER_2_LED_TOTAL 31 71#define DRIVER_2_LED_TOTAL 31
72#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 72#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
diff --git a/keyboards/kbdfans/maja/maja.c b/keyboards/kbdfans/maja/maja.c
index d257212750..6bb23f4739 100755
--- a/keyboards/kbdfans/maja/maja.c
+++ b/keyboards/kbdfans/maja/maja.c
@@ -1,6 +1,6 @@
1#include "maja.h" 1#include "maja.h"
2 2
3const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
4 {0, C2_1, C3_1, C4_1}, // LA0 4 {0, C2_1, C3_1, C4_1}, // LA0
5 {0, C1_1, C3_2, C4_2}, // LA1 5 {0, C1_1, C3_2, C4_2}, // LA1
6 {0, C1_2, C2_2, C4_3}, // LA2 6 {0, C1_2, C2_2, C4_3}, // LA2
diff --git a/keyboards/kbdfans/odin/rgb/config.h b/keyboards/kbdfans/odin/rgb/config.h
index 571f6d0d1c..9f15473877 100644
--- a/keyboards/kbdfans/odin/rgb/config.h
+++ b/keyboards/kbdfans/odin/rgb/config.h
@@ -25,7 +25,7 @@
25 25
26#define DEBOUNCE 5 26#define DEBOUNCE 5
27#define RGBLED_NUM 110 27#define RGBLED_NUM 110
28#define DRIVER_LED_TOTAL 110 28#define RGB_MATRIX_LED_COUNT 110
29#define RGB_DI_PIN B15 29#define RGB_DI_PIN B15
30 30
31#ifdef RGB_MATRIX_ENABLE 31#ifdef RGB_MATRIX_ENABLE
diff --git a/keyboards/keebio/bamfk4/config.h b/keyboards/keebio/bamfk4/config.h
index b18b94da10..afac3376a4 100644
--- a/keyboards/keebio/bamfk4/config.h
+++ b/keyboards/keebio/bamfk4/config.h
@@ -81,7 +81,7 @@
81# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH 81# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
82# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160 82# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160
83# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 83# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
84# define DRIVER_LED_TOTAL RGBLED_NUM 84# define RGB_MATRIX_LED_COUNT RGBLED_NUM
85# define RGB_DISABLE_WHEN_USB_SUSPENDED 85# define RGB_DISABLE_WHEN_USB_SUSPENDED
86# define RGB_MATRIX_KEYPRESSES 86# define RGB_MATRIX_KEYPRESSES
87//# endif 87//# endif
diff --git a/keyboards/keebio/bdn9/rev2/config.h b/keyboards/keebio/bdn9/rev2/config.h
index e3d004fc27..3af4f76725 100644
--- a/keyboards/keebio/bdn9/rev2/config.h
+++ b/keyboards/keebio/bdn9/rev2/config.h
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
47# define RGBLIGHT_ANIMATIONS 47# define RGBLIGHT_ANIMATIONS
48// RGB Matrix 48// RGB Matrix
49# ifdef RGB_MATRIX_ENABLE 49# ifdef RGB_MATRIX_ENABLE
50# define DRIVER_LED_TOTAL RGBLED_NUM 50# define RGB_MATRIX_LED_COUNT RGBLED_NUM
51# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 51# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
52# define RGB_MATRIX_KEYPRESSES 52# define RGB_MATRIX_KEYPRESSES
53// RGB Matrix Animation modes. Explicitly enabled 53// RGB Matrix Animation modes. Explicitly enabled
diff --git a/keyboards/keebio/iris/rev6/config.h b/keyboards/keebio/iris/rev6/config.h
index 7bc8c4132b..2f6d18efcd 100644
--- a/keyboards/keebio/iris/rev6/config.h
+++ b/keyboards/keebio/iris/rev6/config.h
@@ -113,7 +113,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
113# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH 113# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
114# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160 114# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160
115# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 115# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
116# define DRIVER_LED_TOTAL RGBLED_NUM 116# define RGB_MATRIX_LED_COUNT RGBLED_NUM
117# define RGB_MATRIX_SPLIT { 34, 34 } 117# define RGB_MATRIX_SPLIT { 34, 34 }
118# define RGB_DISABLE_WHEN_USB_SUSPENDED 118# define RGB_DISABLE_WHEN_USB_SUSPENDED
119# define RGB_MATRIX_KEYPRESSES 119# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/keebio/iris/rev6a/config.h b/keyboards/keebio/iris/rev6a/config.h
index 08863797fb..632514e87e 100644
--- a/keyboards/keebio/iris/rev6a/config.h
+++ b/keyboards/keebio/iris/rev6a/config.h
@@ -113,7 +113,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
113# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH 113# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
114# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 114# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
115# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 115# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
116# define DRIVER_LED_TOTAL RGBLED_NUM 116# define RGB_MATRIX_LED_COUNT RGBLED_NUM
117# define RGB_MATRIX_SPLIT { 34, 34 } 117# define RGB_MATRIX_SPLIT { 34, 34 }
118# define RGB_DISABLE_WHEN_USB_SUSPENDED 118# define RGB_DISABLE_WHEN_USB_SUSPENDED
119# define RGB_MATRIX_KEYPRESSES 119# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/keebio/iris/rev6b/config.h b/keyboards/keebio/iris/rev6b/config.h
index 08863797fb..632514e87e 100644
--- a/keyboards/keebio/iris/rev6b/config.h
+++ b/keyboards/keebio/iris/rev6b/config.h
@@ -113,7 +113,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
113# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH 113# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
114# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 114# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
115# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 115# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
116# define DRIVER_LED_TOTAL RGBLED_NUM 116# define RGB_MATRIX_LED_COUNT RGBLED_NUM
117# define RGB_MATRIX_SPLIT { 34, 34 } 117# define RGB_MATRIX_SPLIT { 34, 34 }
118# define RGB_DISABLE_WHEN_USB_SUSPENDED 118# define RGB_DISABLE_WHEN_USB_SUSPENDED
119# define RGB_MATRIX_KEYPRESSES 119# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/keebio/iris/rev7/config.h b/keyboards/keebio/iris/rev7/config.h
index 005f78e8a9..ee55576d8c 100644
--- a/keyboards/keebio/iris/rev7/config.h
+++ b/keyboards/keebio/iris/rev7/config.h
@@ -113,7 +113,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
113//# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH 113//# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
114# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 114# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
115# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 115# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
116# define DRIVER_LED_TOTAL RGBLED_NUM 116# define RGB_MATRIX_LED_COUNT RGBLED_NUM
117# define RGB_MATRIX_SPLIT { 34, 34 } 117# define RGB_MATRIX_SPLIT { 34, 34 }
118# define RGB_DISABLE_WHEN_USB_SUSPENDED 118# define RGB_DISABLE_WHEN_USB_SUSPENDED
119# define RGB_MATRIX_KEYPRESSES 119# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/keebio/stick/config.h b/keyboards/keebio/stick/config.h
index 8166510921..8539a6d49d 100644
--- a/keyboards/keebio/stick/config.h
+++ b/keyboards/keebio/stick/config.h
@@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
44# define RGBLIGHT_ANIMATIONS 44# define RGBLIGHT_ANIMATIONS
45// RGB Matrix 45// RGB Matrix
46# ifdef RGB_MATRIX_ENABLE 46# ifdef RGB_MATRIX_ENABLE
47# define DRIVER_LED_TOTAL RGBLED_NUM 47# define RGB_MATRIX_LED_COUNT RGBLED_NUM
48// RGB Matrix Animation modes. Explicitly enabled 48// RGB Matrix Animation modes. Explicitly enabled
49// For full list of effects, see: 49// For full list of effects, see:
50// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects 50// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
diff --git a/keyboards/keebwerk/mega/ansi/config.h b/keyboards/keebwerk/mega/ansi/config.h
index 15df557676..43bc368925 100755
--- a/keyboards/keebwerk/mega/ansi/config.h
+++ b/keyboards/keebwerk/mega/ansi/config.h
@@ -112,7 +112,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
112#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } 112#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
113 113
114#define DRIVER_COUNT 2 114#define DRIVER_COUNT 2
115#define DRIVER_LED_TOTAL 128 115#define RGB_MATRIX_LED_COUNT 128
116 116
117// These define which keys in the matrix are alphas/mods 117// These define which keys in the matrix are alphas/mods
118// Used for backlight effects so colors are different for 118// Used for backlight effects so colors are different for
diff --git a/keyboards/keybee/keybee65/config.h b/keyboards/keybee/keybee65/config.h
index 1e54bbfb15..e9d50a65cc 100644
--- a/keyboards/keybee/keybee65/config.h
+++ b/keyboards/keybee/keybee65/config.h
@@ -47,7 +47,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
47// The pin connected to the data pin of the LEDs 47// The pin connected to the data pin of the LEDs
48#define RGB_DI_PIN B0 48#define RGB_DI_PIN B0
49// The number of LEDs connected 49// The number of LEDs connected
50#define DRIVER_LED_TOTAL 80 50#define RGB_MATRIX_LED_COUNT 80
51// Limit the Brithness of the LEDs 51// Limit the Brithness of the LEDs
52#define RGBLIGHT_LIMIT_VAL 96 52#define RGBLIGHT_LIMIT_VAL 96
53#define RGB_VAL_STEP 12 53#define RGB_VAL_STEP 12
diff --git a/keyboards/keyboardio/model01/config.h b/keyboards/keyboardio/model01/config.h
index 2bb5cb7386..c3874206d0 100644
--- a/keyboards/keyboardio/model01/config.h
+++ b/keyboards/keyboardio/model01/config.h
@@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
27#define DEBOUNCE 0 27#define DEBOUNCE 0
28 28
29/* RGB matrix constants */ 29/* RGB matrix constants */
30#define DRIVER_LED_TOTAL 64 30#define RGB_MATRIX_LED_COUNT 64
31 31
32// RGB Matrix Animation modes. Explicitly enabled 32// RGB Matrix Animation modes. Explicitly enabled
33// For full list of effects, see: 33// For full list of effects, see:
diff --git a/keyboards/keyboardio/model01/leds.c b/keyboards/keyboardio/model01/leds.c
index 0308887d3b..7e65134bd4 100644
--- a/keyboards/keyboardio/model01/leds.c
+++ b/keyboards/keyboardio/model01/leds.c
@@ -89,7 +89,7 @@ static void set_color(int index, uint8_t r, uint8_t g, uint8_t b) {
89} 89}
90 90
91static void set_color_all(uint8_t r, uint8_t g, uint8_t b) { 91static void set_color_all(uint8_t r, uint8_t g, uint8_t b) {
92 for (int i=0; i<DRIVER_LED_TOTAL; i++) 92 for (int i=0; i<RGB_MATRIX_LED_COUNT; i++)
93 set_color(i, r, g, b); 93 set_color(i, r, g, b);
94} 94}
95 95
diff --git a/keyboards/keycapsss/kimiko/keymaps/oriaj3/config.h b/keyboards/keycapsss/kimiko/keymaps/oriaj3/config.h
index 5e91a21c73..42478a2db6 100644
--- a/keyboards/keycapsss/kimiko/keymaps/oriaj3/config.h
+++ b/keyboards/keycapsss/kimiko/keymaps/oriaj3/config.h
@@ -33,7 +33,7 @@
33// The pin connected to the data pin of the LEDs 33// The pin connected to the data pin of the LEDs
34#define RGB_DI_PIN D3 34#define RGB_DI_PIN D3
35// The number of LEDs connected 35// The number of LEDs connected
36#define DRIVER_LED_TOTAL 60 36#define RGB_MATRIX_LED_COUNT 60
37#define RGBLED_NUM 60 37#define RGBLED_NUM 60
38#define RGB_MATRIX_SPLIT {30,30} 38#define RGB_MATRIX_SPLIT {30,30}
39#define SPLIT_LAYER_STATE_ENABLE 39#define SPLIT_LAYER_STATE_ENABLE
@@ -45,7 +45,7 @@
45// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 45// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
46# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 46# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
47# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 47# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
48// # 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) 48// # 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)
49// # 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) 49// # 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)
50# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 80 // limits maximum brightness of LEDs to 80 out of 255. Higher may cause the controller to crash. 50# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 80 // limits maximum brightness of LEDs to 80 out of 255. Higher may cause the controller to crash.
51# define RGB_MATRIX_HUE_STEP 8 51# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/keychron/q1/rev_0100/config.h b/keyboards/keychron/q1/rev_0100/config.h
index 1b8c65165c..0a30f7d82d 100644
--- a/keyboards/keychron/q1/rev_0100/config.h
+++ b/keyboards/keychron/q1/rev_0100/config.h
@@ -23,4 +23,4 @@
23/* RGB Matrix Configuration */ 23/* RGB Matrix Configuration */
24#define DRIVER_1_LED_TOTAL 59 24#define DRIVER_1_LED_TOTAL 59
25#define DRIVER_2_LED_TOTAL 23 25#define DRIVER_2_LED_TOTAL 23
26#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) \ No newline at end of file 26#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) \ No newline at end of file
diff --git a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c
index 9bc7231ece..f5e8d48cba 100644
--- a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c
+++ b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c
@@ -18,7 +18,7 @@
18#include "rgb_matrix_user.h" 18#include "rgb_matrix_user.h"
19#include "keymap_user.h" 19#include "keymap_user.h"
20 20
21keypos_t led_index_key_position[DRIVER_LED_TOTAL]; 21keypos_t led_index_key_position[RGB_MATRIX_LED_COUNT];
22 22
23void rgb_matrix_init_user(void) { 23void rgb_matrix_init_user(void) {
24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) { 24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
diff --git a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/rgb_matrix_user.c b/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/rgb_matrix_user.c
index f06039af06..90e16ded46 100644
--- a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/rgb_matrix_user.c
+++ b/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/rgb_matrix_user.c
@@ -18,7 +18,7 @@
18#include "rgb_matrix_user.h" 18#include "rgb_matrix_user.h"
19#include "keymap_user.h" 19#include "keymap_user.h"
20 20
21keypos_t led_index_key_position[DRIVER_LED_TOTAL]; 21keypos_t led_index_key_position[RGB_MATRIX_LED_COUNT];
22 22
23void rgb_matrix_init_user(void) { 23void rgb_matrix_init_user(void) {
24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) { 24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
diff --git a/keyboards/keychron/q1/rev_0100/keymaps/teimor/rgb_matrix_user.c b/keyboards/keychron/q1/rev_0100/keymaps/teimor/rgb_matrix_user.c
index 77f1c1011b..6750dc86c7 100644
--- a/keyboards/keychron/q1/rev_0100/keymaps/teimor/rgb_matrix_user.c
+++ b/keyboards/keychron/q1/rev_0100/keymaps/teimor/rgb_matrix_user.c
@@ -18,7 +18,7 @@
18#include "rgb_matrix_user.h" 18#include "rgb_matrix_user.h"
19#include "keymap_user.h" 19#include "keymap_user.h"
20 20
21keypos_t led_index_key_position[DRIVER_LED_TOTAL]; 21keypos_t led_index_key_position[RGB_MATRIX_LED_COUNT];
22 22
23void rgb_matrix_init_user(void) { 23void rgb_matrix_init_user(void) {
24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) { 24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
diff --git a/keyboards/keychron/q1/rev_0100/rev_0100.c b/keyboards/keychron/q1/rev_0100/rev_0100.c
index f424669527..2c87a8241e 100644
--- a/keyboards/keychron/q1/rev_0100/rev_0100.c
+++ b/keyboards/keychron/q1/rev_0100/rev_0100.c
@@ -17,7 +17,7 @@
17#include "quantum.h" 17#include "quantum.h"
18 18
19 19
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/keychron/q1/rev_0101/config.h b/keyboards/keychron/q1/rev_0101/config.h
index 58d77477ca..b38261abf6 100644
--- a/keyboards/keychron/q1/rev_0101/config.h
+++ b/keyboards/keychron/q1/rev_0101/config.h
@@ -23,7 +23,7 @@
23/* RGB Matrix Configuration */ 23/* RGB Matrix Configuration */
24#define DRIVER_1_LED_TOTAL 59 24#define DRIVER_1_LED_TOTAL 59
25#define DRIVER_2_LED_TOTAL 23 25#define DRIVER_2_LED_TOTAL 23
26#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 26#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
27 27
28/* Encoder used pins */ 28/* Encoder used pins */
29#define ENCODERS_PAD_A { E6 } 29#define ENCODERS_PAD_A { E6 }
diff --git a/keyboards/keychron/q1/rev_0101/rev_0101.c b/keyboards/keychron/q1/rev_0101/rev_0101.c
index dd7f69529e..4edd2c761f 100644
--- a/keyboards/keychron/q1/rev_0101/rev_0101.c
+++ b/keyboards/keychron/q1/rev_0101/rev_0101.c
@@ -17,7 +17,7 @@
17#include "quantum.h" 17#include "quantum.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/keychron/q1/rev_0102/config.h b/keyboards/keychron/q1/rev_0102/config.h
index 7aa0ae8662..b9b33cf320 100644
--- a/keyboards/keychron/q1/rev_0102/config.h
+++ b/keyboards/keychron/q1/rev_0102/config.h
@@ -23,4 +23,4 @@
23/* RGB Matrix Configuration */ 23/* RGB Matrix Configuration */
24#define DRIVER_1_LED_TOTAL 59 24#define DRIVER_1_LED_TOTAL 59
25#define DRIVER_2_LED_TOTAL 24 25#define DRIVER_2_LED_TOTAL 24
26#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) \ No newline at end of file 26#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) \ No newline at end of file
diff --git a/keyboards/keychron/q1/rev_0102/keymaps/kubahorak/rgb_matrix_user.c b/keyboards/keychron/q1/rev_0102/keymaps/kubahorak/rgb_matrix_user.c
index 8650f30df1..4903421cab 100644
--- a/keyboards/keychron/q1/rev_0102/keymaps/kubahorak/rgb_matrix_user.c
+++ b/keyboards/keychron/q1/rev_0102/keymaps/kubahorak/rgb_matrix_user.c
@@ -18,7 +18,7 @@
18#include "rgb_matrix_user.h" 18#include "rgb_matrix_user.h"
19#include "keymap_user.h" 19#include "keymap_user.h"
20 20
21keypos_t led_index_key_position[DRIVER_LED_TOTAL]; 21keypos_t led_index_key_position[RGB_MATRIX_LED_COUNT];
22 22
23void rgb_matrix_init_user(void) { 23void rgb_matrix_init_user(void) {
24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) { 24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
diff --git a/keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/rgb_matrix_user.c b/keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/rgb_matrix_user.c
index f06039af06..90e16ded46 100644
--- a/keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/rgb_matrix_user.c
+++ b/keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/rgb_matrix_user.c
@@ -18,7 +18,7 @@
18#include "rgb_matrix_user.h" 18#include "rgb_matrix_user.h"
19#include "keymap_user.h" 19#include "keymap_user.h"
20 20
21keypos_t led_index_key_position[DRIVER_LED_TOTAL]; 21keypos_t led_index_key_position[RGB_MATRIX_LED_COUNT];
22 22
23void rgb_matrix_init_user(void) { 23void rgb_matrix_init_user(void) {
24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) { 24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
diff --git a/keyboards/keychron/q1/rev_0102/rev_0102.c b/keyboards/keychron/q1/rev_0102/rev_0102.c
index f1468d1094..5304a602c3 100644
--- a/keyboards/keychron/q1/rev_0102/rev_0102.c
+++ b/keyboards/keychron/q1/rev_0102/rev_0102.c
@@ -17,7 +17,7 @@
17#include "quantum.h" 17#include "quantum.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/keychron/q2/rev_0110/config.h b/keyboards/keychron/q2/rev_0110/config.h
index f30b81b3af..6c39432b74 100644
--- a/keyboards/keychron/q2/rev_0110/config.h
+++ b/keyboards/keychron/q2/rev_0110/config.h
@@ -19,4 +19,4 @@
19/* RGB Matrix Configuration */ 19/* RGB Matrix Configuration */
20#define DRIVER_1_LED_TOTAL 34 20#define DRIVER_1_LED_TOTAL 34
21#define DRIVER_2_LED_TOTAL 33 21#define DRIVER_2_LED_TOTAL 33
22#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 22#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
diff --git a/keyboards/keychron/q2/rev_0110/keymaps/ladduro/rgb_matrix_user.c b/keyboards/keychron/q2/rev_0110/keymaps/ladduro/rgb_matrix_user.c
index 19ddd54aa8..6df0e9530f 100644
--- a/keyboards/keychron/q2/rev_0110/keymaps/ladduro/rgb_matrix_user.c
+++ b/keyboards/keychron/q2/rev_0110/keymaps/ladduro/rgb_matrix_user.c
@@ -18,7 +18,7 @@
18#include "rgb_matrix_user.h" 18#include "rgb_matrix_user.h"
19#include "keymap_user.h" 19#include "keymap_user.h"
20 20
21keypos_t led_index_key_position[DRIVER_LED_TOTAL]; 21keypos_t led_index_key_position[RGB_MATRIX_LED_COUNT];
22 22
23void rgb_matrix_init_user(void) { 23void rgb_matrix_init_user(void) {
24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) { 24 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
diff --git a/keyboards/keychron/q2/rev_0110/rev_0110.c b/keyboards/keychron/q2/rev_0110/rev_0110.c
index fe52490177..125872602e 100644
--- a/keyboards/keychron/q2/rev_0110/rev_0110.c
+++ b/keyboards/keychron/q2/rev_0110/rev_0110.c
@@ -17,7 +17,7 @@
17#include "quantum.h" 17#include "quantum.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = { 20const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to CKLED manual for these locations 21/* Refer to CKLED manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/keychron/q2/rev_0111/config.h b/keyboards/keychron/q2/rev_0111/config.h
index 249e589019..8ef6c542f0 100644
--- a/keyboards/keychron/q2/rev_0111/config.h
+++ b/keyboards/keychron/q2/rev_0111/config.h
@@ -19,7 +19,7 @@
19/* RGB Matrix Configuration */ 19/* RGB Matrix Configuration */
20#define DRIVER_1_LED_TOTAL 34 20#define DRIVER_1_LED_TOTAL 34
21#define DRIVER_2_LED_TOTAL 33 21#define DRIVER_2_LED_TOTAL 33
22#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 22#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
23 23
24/* Encoder used pins */ 24/* Encoder used pins */
25#define ENCODERS_PAD_A { A10 } 25#define ENCODERS_PAD_A { A10 }
diff --git a/keyboards/keychron/q2/rev_0111/rev_0111.c b/keyboards/keychron/q2/rev_0111/rev_0111.c
index cbadafc458..1bada84daa 100644
--- a/keyboards/keychron/q2/rev_0111/rev_0111.c
+++ b/keyboards/keychron/q2/rev_0111/rev_0111.c
@@ -17,7 +17,7 @@
17#include "quantum.h" 17#include "quantum.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = { 20const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to CKLED manual for these locations 21/* Refer to CKLED manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/keychron/q2/rev_0112/config.h b/keyboards/keychron/q2/rev_0112/config.h
index 4bab401a01..35a86d5839 100644
--- a/keyboards/keychron/q2/rev_0112/config.h
+++ b/keyboards/keychron/q2/rev_0112/config.h
@@ -19,4 +19,4 @@
19/* RGB Matrix Configuration */ 19/* RGB Matrix Configuration */
20#define DRIVER_1_LED_TOTAL 34 20#define DRIVER_1_LED_TOTAL 34
21#define DRIVER_2_LED_TOTAL 34 21#define DRIVER_2_LED_TOTAL 34
22#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 22#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
diff --git a/keyboards/keychron/q2/rev_0112/rev_0112.c b/keyboards/keychron/q2/rev_0112/rev_0112.c
index b994679725..cf2bb34857 100644
--- a/keyboards/keychron/q2/rev_0112/rev_0112.c
+++ b/keyboards/keychron/q2/rev_0112/rev_0112.c
@@ -17,7 +17,7 @@
17#include "quantum.h" 17#include "quantum.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = { 20const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/keychron/q2/rev_0113/config.h b/keyboards/keychron/q2/rev_0113/config.h
index 8f7fbef73a..8dd123e3bb 100644
--- a/keyboards/keychron/q2/rev_0113/config.h
+++ b/keyboards/keychron/q2/rev_0113/config.h
@@ -19,7 +19,7 @@
19/* RGB Matrix Configuration */ 19/* RGB Matrix Configuration */
20#define DRIVER_1_LED_TOTAL 34 20#define DRIVER_1_LED_TOTAL 34
21#define DRIVER_2_LED_TOTAL 34 21#define DRIVER_2_LED_TOTAL 34
22#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 22#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
23 23
24/* Encoder used pins */ 24/* Encoder used pins */
25#define ENCODERS_PAD_A { A10 } 25#define ENCODERS_PAD_A { A10 }
diff --git a/keyboards/keychron/q2/rev_0113/rev_0113.c b/keyboards/keychron/q2/rev_0113/rev_0113.c
index e1d66976dd..2aa3ab2a6d 100644
--- a/keyboards/keychron/q2/rev_0113/rev_0113.c
+++ b/keyboards/keychron/q2/rev_0113/rev_0113.c
@@ -17,7 +17,7 @@
17#include "quantum.h" 17#include "quantum.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = { 20const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/kprepublic/bm40hsrgb/config.h b/keyboards/kprepublic/bm40hsrgb/config.h
index 8e4710abb3..f1535cc084 100755
--- a/keyboards/kprepublic/bm40hsrgb/config.h
+++ b/keyboards/kprepublic/bm40hsrgb/config.h
@@ -38,7 +38,7 @@
38#define LOCKING_RESYNC_ENABLE 38#define LOCKING_RESYNC_ENABLE
39 39
40#define RGB_DI_PIN E2 40#define RGB_DI_PIN E2
41#define DRIVER_LED_TOTAL 53 41#define RGB_MATRIX_LED_COUNT 53
42#ifdef RGB_DI_PIN 42#ifdef RGB_DI_PIN
43# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 43# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
44# define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value 44# define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
diff --git a/keyboards/kprepublic/bm40hsrgb/keymaps/coffee/config.h b/keyboards/kprepublic/bm40hsrgb/keymaps/coffee/config.h
index bfcec37892..c366c20a8c 100644
--- a/keyboards/kprepublic/bm40hsrgb/keymaps/coffee/config.h
+++ b/keyboards/kprepublic/bm40hsrgb/keymaps/coffee/config.h
@@ -54,7 +54,7 @@
54 54
55// If RGBLight is enabled 55// If RGBLight is enabled
56#ifdef RGBLIGHT_ENABLE 56#ifdef RGBLIGHT_ENABLE
57# define RGBLED_NUM DRIVER_LED_TOTAL 57# define RGBLED_NUM RGB_MATRIX_LED_COUNT
58 58
59# define RGBLIGHT_EFFECT_SNAKE 59# define RGBLIGHT_EFFECT_SNAKE
60# define RGBLIGHT_EFFECT_STATIC_GRADIENT 60# define RGBLIGHT_EFFECT_STATIC_GRADIENT
diff --git a/keyboards/kprepublic/bm40hsrgb/keymaps/coffee/keymap.c b/keyboards/kprepublic/bm40hsrgb/keymaps/coffee/keymap.c
index 9130bd678e..ba83e47f5f 100644
--- a/keyboards/kprepublic/bm40hsrgb/keymaps/coffee/keymap.c
+++ b/keyboards/kprepublic/bm40hsrgb/keymaps/coffee/keymap.c
@@ -64,7 +64,7 @@ const uint16_t PROGMEM keymaps[_END][MATRIX_ROWS][MATRIX_COLS] = {
64#define LAYER (get_highest_layer(layer_state)) 64#define LAYER (get_highest_layer(layer_state))
65#define LAYER_SIZE (MATRIX_ROWS * MATRIX_COLS) 65#define LAYER_SIZE (MATRIX_ROWS * MATRIX_COLS)
66#define CHECK_LED() \ 66#define CHECK_LED() \
67 if ((i >= DRIVER_LED_TOTAL) \ 67 if ((i >= RGB_MATRIX_LED_COUNT) \
68 || ((g_led_config.flags[pos] == LED_FLAG_NONE) || (g_led_config.flags[pos] == LED_FLAG_UNDERGLOW))) \ 68 || ((g_led_config.flags[pos] == LED_FLAG_NONE) || (g_led_config.flags[pos] == LED_FLAG_UNDERGLOW))) \
69 continue 69 continue
70 70
@@ -73,7 +73,7 @@ const uint16_t PROGMEM keymaps[_END][MATRIX_ROWS][MATRIX_COLS] = {
73 #ifdef UNDERGLOW_DISABLE 73 #ifdef UNDERGLOW_DISABLE
74 void keyboard_pre_init_user(void) { 74 void keyboard_pre_init_user(void) {
75 75
76 for (int key_id = 0; key_id < DRIVER_LED_TOTAL; key_id++ ) { 76 for (int key_id = 0; key_id < RGB_MATRIX_LED_COUNT; key_id++ ) {
77 if (g_led_config.flags[key_id] == LED_FLAG_UNDERGLOW) { 77 if (g_led_config.flags[key_id] == LED_FLAG_UNDERGLOW) {
78 g_led_config.flags[key_id] = LED_FLAG_NONE; 78 g_led_config.flags[key_id] = LED_FLAG_NONE;
79 } 79 }
diff --git a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c
index e725e23214..6411a07d4f 100644
--- a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c
+++ b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c
@@ -69,7 +69,7 @@ void matrix_scan_user(void) {
69 69
70void rgb_matrix_indicators_user(void) { 70void rgb_matrix_indicators_user(void) {
71 71
72 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 72 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
73 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { 73 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
74 rgb_matrix_set_color(i, 0, 0, 0); 74 rgb_matrix_set_color(i, 0, 0, 0);
75 } 75 }
@@ -80,7 +80,7 @@ void rgb_matrix_indicators_user(void) {
80 80
81 //capslock 81 //capslock
82 if (host_keyboard_led_state().caps_lock) { 82 if (host_keyboard_led_state().caps_lock) {
83 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 83 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
84 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 84 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
85 rgb_matrix_set_color(i, 255, 255, 255); 85 rgb_matrix_set_color(i, 255, 255, 255);
86 } 86 }
@@ -89,7 +89,7 @@ void rgb_matrix_indicators_user(void) {
89 89
90 //nav layer 90 //nav layer
91 if (IS_LAYER_ON(NAVR)) { 91 if (IS_LAYER_ON(NAVR)) {
92 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 92 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
93 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 93 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
94 rgb_matrix_set_color(i, 0, 204, 255); 94 rgb_matrix_set_color(i, 0, 204, 255);
95 } 95 }
@@ -98,7 +98,7 @@ void rgb_matrix_indicators_user(void) {
98 98
99 //funl layer 99 //funl layer
100 if (IS_LAYER_ON(FUNL)) { 100 if (IS_LAYER_ON(FUNL)) {
101 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 101 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
102 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 102 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
103 rgb_matrix_set_color(i, 255, 0, 0); 103 rgb_matrix_set_color(i, 255, 0, 0);
104 } 104 }
@@ -107,7 +107,7 @@ void rgb_matrix_indicators_user(void) {
107 107
108 //nsl layer 108 //nsl layer
109 if (IS_LAYER_ON(NSL)) { 109 if (IS_LAYER_ON(NSL)) {
110 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 110 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
111 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 111 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
112 rgb_matrix_set_color(i, 51, 0, 255); 112 rgb_matrix_set_color(i, 51, 0, 255);
113 } 113 }
@@ -116,7 +116,7 @@ void rgb_matrix_indicators_user(void) {
116 116
117 //nssl layer 117 //nssl layer
118 if (IS_LAYER_ON(NSSL)) { 118 if (IS_LAYER_ON(NSSL)) {
119 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 119 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
120 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 120 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
121 rgb_matrix_set_color(i, 0, 255, 0); 121 rgb_matrix_set_color(i, 0, 255, 0);
122 } 122 }
@@ -125,7 +125,7 @@ void rgb_matrix_indicators_user(void) {
125 125
126 //game layer 126 //game layer
127 if (IS_LAYER_ON(GAME)) { 127 if (IS_LAYER_ON(GAME)) {
128 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 128 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
129 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 129 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
130 rgb_matrix_set_color(i, 0, 204, 255); 130 rgb_matrix_set_color(i, 0, 204, 255);
131 } 131 }
@@ -134,7 +134,7 @@ void rgb_matrix_indicators_user(void) {
134 134
135 //secgame layer 135 //secgame layer
136 if (IS_LAYER_ON(SECGAME)) { 136 if (IS_LAYER_ON(SECGAME)) {
137 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 137 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
138 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 138 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
139 rgb_matrix_set_color(i, 255, 0, 0); 139 rgb_matrix_set_color(i, 255, 0, 0);
140 } 140 }
diff --git a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c
index 02ea122a03..8f1eb6d358 100644
--- a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c
+++ b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c
@@ -69,7 +69,7 @@ void matrix_scan_user(void) {
69 69
70void rgb_matrix_indicators_user(void) { 70void rgb_matrix_indicators_user(void) {
71 71
72 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 72 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
73 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { 73 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
74 rgb_matrix_set_color(i, 0, 0, 0); 74 rgb_matrix_set_color(i, 0, 0, 0);
75 } 75 }
@@ -80,7 +80,7 @@ void rgb_matrix_indicators_user(void) {
80 80
81 //capslock 81 //capslock
82 if (host_keyboard_led_state().caps_lock) { 82 if (host_keyboard_led_state().caps_lock) {
83 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 83 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
84 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 84 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
85 rgb_matrix_set_color(i, 255, 255, 255); 85 rgb_matrix_set_color(i, 255, 255, 255);
86 } 86 }
@@ -89,7 +89,7 @@ void rgb_matrix_indicators_user(void) {
89 89
90 //game layer 90 //game layer
91 if (IS_LAYER_ON(GAME)) { 91 if (IS_LAYER_ON(GAME)) {
92 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 92 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
93 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 93 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
94 rgb_matrix_set_color(i, 0, 204, 255); 94 rgb_matrix_set_color(i, 0, 204, 255);
95 } 95 }
@@ -98,7 +98,7 @@ void rgb_matrix_indicators_user(void) {
98 98
99 //secgame layer 99 //secgame layer
100 if (IS_LAYER_ON(SECGAME)) { 100 if (IS_LAYER_ON(SECGAME)) {
101 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 101 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
102 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) { 102 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_UNDERGLOW)) {
103 rgb_matrix_set_color(i, 255, 0, 0); 103 rgb_matrix_set_color(i, 255, 0, 0);
104 } 104 }
diff --git a/keyboards/kprepublic/bm60hsrgb/rev1/config.h b/keyboards/kprepublic/bm60hsrgb/rev1/config.h
index f1a160730c..01253ab01a 100644
--- a/keyboards/kprepublic/bm60hsrgb/rev1/config.h
+++ b/keyboards/kprepublic/bm60hsrgb/rev1/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
41#define DIODE_DIRECTION COL2ROW 41#define DIODE_DIRECTION COL2ROW
42 42
43#define RGB_DI_PIN E2 43#define RGB_DI_PIN E2
44#define DRIVER_LED_TOTAL 69 44#define RGB_MATRIX_LED_COUNT 69
45#ifdef RGB_DI_PIN 45#ifdef RGB_DI_PIN
46# define RGBLED_NUM 69 46# define RGBLED_NUM 69
47# define RGB_MATRIX_KEYPRESSES 47# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/kprepublic/bm60hsrgb/rev2/config.h b/keyboards/kprepublic/bm60hsrgb/rev2/config.h
index 09ba659d65..96ed5e65cb 100644
--- a/keyboards/kprepublic/bm60hsrgb/rev2/config.h
+++ b/keyboards/kprepublic/bm60hsrgb/rev2/config.h
@@ -100,7 +100,7 @@
100 100
101#define DRIVER_COUNT 2 101#define DRIVER_COUNT 2
102#define DRIVER_1_LED_TOTAL 63 102#define DRIVER_1_LED_TOTAL 63
103//#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 103//#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
104 104
105#if defined(RGB_MATRIX_ENABLE) && defined(RGBLIGHT_ENABLE) 105#if defined(RGB_MATRIX_ENABLE) && defined(RGBLIGHT_ENABLE)
106 #define RGB_MATRIX_DISABLE_KEYCODES 106 #define RGB_MATRIX_DISABLE_KEYCODES
@@ -118,7 +118,7 @@
118# define WS2812_LED_TOTAL 6 118# define WS2812_LED_TOTAL 6
119#endif 119#endif
120 120
121#define DRIVER_LED_TOTAL (ISSI_LED_TOTAL + WS2812_LED_TOTAL) 121#define RGB_MATRIX_LED_COUNT (ISSI_LED_TOTAL + WS2812_LED_TOTAL)
122 122
123#ifdef RGB_MATRIX_ENABLE 123#ifdef RGB_MATRIX_ENABLE
124# define RGB_MATRIX_KEYPRESSES 124# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/kprepublic/bm60hsrgb/rev2/rev2.c b/keyboards/kprepublic/bm60hsrgb/rev2/rev2.c
index 4fe8480691..55e0667f45 100644
--- a/keyboards/kprepublic/bm60hsrgb/rev2/rev2.c
+++ b/keyboards/kprepublic/bm60hsrgb/rev2/rev2.c
@@ -22,7 +22,7 @@
22# include "is31fl3733.h" 22# include "is31fl3733.h"
23# include "ws2812.h" 23# include "ws2812.h"
24 24
25const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 25const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
26 { 0, B_1, A_1, C_1 }, 26 { 0, B_1, A_1, C_1 },
27 { 0, B_2, A_2, C_2 }, 27 { 0, B_2, A_2, C_2 },
28 { 0, B_3, A_3, C_3 }, 28 { 0, B_3, A_3, C_3 },
diff --git a/keyboards/kprepublic/bm60hsrgb_ec/rev1/config.h b/keyboards/kprepublic/bm60hsrgb_ec/rev1/config.h
index 868ce40d8c..8373569b47 100644
--- a/keyboards/kprepublic/bm60hsrgb_ec/rev1/config.h
+++ b/keyboards/kprepublic/bm60hsrgb_ec/rev1/config.h
@@ -43,7 +43,7 @@
43#define DIODE_DIRECTION COL2ROW 43#define DIODE_DIRECTION COL2ROW
44 44
45#define RGB_DI_PIN E2 45#define RGB_DI_PIN E2
46#define DRIVER_LED_TOTAL 69 46#define RGB_MATRIX_LED_COUNT 69
47#ifdef RGB_DI_PIN 47#ifdef RGB_DI_PIN
48 #define RGBLED_NUM 69 48 #define RGBLED_NUM 69
49 #define RGB_MATRIX_KEYPRESSES 49 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h b/keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h
index ac80357e9f..3a9f4af282 100644
--- a/keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h
+++ b/keyboards/kprepublic/bm60hsrgb_ec/rev2/config.h
@@ -67,7 +67,7 @@
67# define DRIVER_ADDR_1 0b1010000 67# define DRIVER_ADDR_1 0b1010000
68# define DRIVER_COUNT 2 68# define DRIVER_COUNT 2
69# define DRIVER_1_LED_TOTAL 63 69# define DRIVER_1_LED_TOTAL 63
70# define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 70# define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
71 71
72#define RGB_MATRIX_KEYPRESSES 72#define RGB_MATRIX_KEYPRESSES
73// RGB Matrix Animation modes. Explicitly enabled 73// RGB Matrix Animation modes. Explicitly enabled
diff --git a/keyboards/kprepublic/bm60hsrgb_ec/rev2/rev2.c b/keyboards/kprepublic/bm60hsrgb_ec/rev2/rev2.c
index 730c7ea668..fd964a67cd 100644
--- a/keyboards/kprepublic/bm60hsrgb_ec/rev2/rev2.c
+++ b/keyboards/kprepublic/bm60hsrgb_ec/rev2/rev2.c
@@ -15,7 +15,7 @@
15#include "rev2.h" 15#include "rev2.h"
16 16
17#ifdef RGB_MATRIX_ENABLE 17#ifdef RGB_MATRIX_ENABLE
18const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 18const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
19 { 0, B_1, A_1, C_1 }, 19 { 0, B_1, A_1, C_1 },
20 { 0, B_2, A_2, C_2 }, 20 { 0, B_2, A_2, C_2 },
21 { 0, B_3, A_3, C_3 }, 21 { 0, B_3, A_3, C_3 },
diff --git a/keyboards/kprepublic/bm60hsrgb_iso/rev1/config.h b/keyboards/kprepublic/bm60hsrgb_iso/rev1/config.h
index 4ef984b4be..0fc5946f63 100644
--- a/keyboards/kprepublic/bm60hsrgb_iso/rev1/config.h
+++ b/keyboards/kprepublic/bm60hsrgb_iso/rev1/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
41#define DIODE_DIRECTION COL2ROW 41#define DIODE_DIRECTION COL2ROW
42 42
43#define RGB_DI_PIN E2 43#define RGB_DI_PIN E2
44#define DRIVER_LED_TOTAL 70 44#define RGB_MATRIX_LED_COUNT 70
45#ifdef RGB_DI_PIN 45#ifdef RGB_DI_PIN
46# define RGBLED_NUM 70 46# define RGBLED_NUM 70
47# define RGB_MATRIX_KEYPRESSES 47# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/kprepublic/bm60hsrgb_iso/rev2/config.h b/keyboards/kprepublic/bm60hsrgb_iso/rev2/config.h
index 80dc26907c..c5f8d3267e 100644
--- a/keyboards/kprepublic/bm60hsrgb_iso/rev2/config.h
+++ b/keyboards/kprepublic/bm60hsrgb_iso/rev2/config.h
@@ -137,7 +137,7 @@
137# define WS2812_LED_TOTAL RGBLED_NUM 137# define WS2812_LED_TOTAL RGBLED_NUM
138#endif 138#endif
139 139
140#define DRIVER_LED_TOTAL (ISSI_LED_TOTAL + WS2812_LED_TOTAL) 140#define RGB_MATRIX_LED_COUNT (ISSI_LED_TOTAL + WS2812_LED_TOTAL)
141 141
142#ifdef RGB_MATRIX_ENABLE 142#ifdef RGB_MATRIX_ENABLE
143# define RGB_MATRIX_KEYPRESSES 143# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/kprepublic/bm60hsrgb_iso/rev2/rev2.c b/keyboards/kprepublic/bm60hsrgb_iso/rev2/rev2.c
index 4500ff37b9..7144db99ef 100644
--- a/keyboards/kprepublic/bm60hsrgb_iso/rev2/rev2.c
+++ b/keyboards/kprepublic/bm60hsrgb_iso/rev2/rev2.c
@@ -24,7 +24,7 @@
24# include "ws2812.h" 24# include "ws2812.h"
25 25
26 26
27const PROGMEM is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 27const PROGMEM is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
28 { 0, B_1, A_1, C_1 }, 28 { 0, B_1, A_1, C_1 },
29 { 0, B_2, A_2, C_2 }, 29 { 0, B_2, A_2, C_2 },
30 { 0, B_3, A_3, C_3 }, 30 { 0, B_3, A_3, C_3 },
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev1/config.h b/keyboards/kprepublic/bm60hsrgb_poker/rev1/config.h
index 88c44d4440..66c2883029 100644
--- a/keyboards/kprepublic/bm60hsrgb_poker/rev1/config.h
+++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/config.h
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
39#define DIODE_DIRECTION COL2ROW 39#define DIODE_DIRECTION COL2ROW
40 40
41#define RGB_DI_PIN E2 41#define RGB_DI_PIN E2
42#define DRIVER_LED_TOTAL 67 42#define RGB_MATRIX_LED_COUNT 67
43#ifdef RGB_DI_PIN 43#ifdef RGB_DI_PIN
44 #define RGBLED_NUM 67 44 #define RGBLED_NUM 67
45 #define RGB_MATRIX_KEYPRESSES 45 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/keymap.c b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/keymap.c
index 4a438b822b..93a90f12b0 100644
--- a/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/keymap.c
+++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/keymap.c
@@ -109,7 +109,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
109} 109}
110 110
111void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { 111void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) {
112 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 112 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
113 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { 113 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
114 rgb_matrix_set_color( i, red, green, blue ); 114 rgb_matrix_set_color( i, red, green, blue );
115 } 115 }
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev2/config.h b/keyboards/kprepublic/bm60hsrgb_poker/rev2/config.h
index 96d8a450c9..7b38edd95a 100644
--- a/keyboards/kprepublic/bm60hsrgb_poker/rev2/config.h
+++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/config.h
@@ -133,7 +133,7 @@
133# define WS2812_LED_TOTAL RGBLED_NUM 133# define WS2812_LED_TOTAL RGBLED_NUM
134#endif 134#endif
135 135
136#define DRIVER_LED_TOTAL (ISSI_LED_TOTAL + WS2812_LED_TOTAL) 136#define RGB_MATRIX_LED_COUNT (ISSI_LED_TOTAL + WS2812_LED_TOTAL)
137 137
138#ifdef RGB_MATRIX_ENABLE 138#ifdef RGB_MATRIX_ENABLE
139# define RGB_MATRIX_KEYPRESSES 139# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.c b/keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.c
index 32cfce362f..7da219eec2 100644
--- a/keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.c
+++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.c
@@ -21,7 +21,7 @@
21# include "is31fl3733.h" 21# include "is31fl3733.h"
22# include "ws2812.h" 22# include "ws2812.h"
23 23
24const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 24const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
25 { 0, B_1, A_1, C_1 }, 25 { 0, B_1, A_1, C_1 },
26 { 0, B_2, A_2, C_2 }, 26 { 0, B_2, A_2, C_2 },
27 { 0, B_3, A_3, C_3 }, 27 { 0, B_3, A_3, C_3 },
diff --git a/keyboards/kprepublic/bm65hsrgb/rev1/config.h b/keyboards/kprepublic/bm65hsrgb/rev1/config.h
index c5e8022d35..aa3ad0ce68 100644
--- a/keyboards/kprepublic/bm65hsrgb/rev1/config.h
+++ b/keyboards/kprepublic/bm65hsrgb/rev1/config.h
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
46// The pin connected to the data pin of the LEDs 46// The pin connected to the data pin of the LEDs
47#define RGB_DI_PIN E2 47#define RGB_DI_PIN E2
48// The number of LEDs connected 48// The number of LEDs connected
49#define DRIVER_LED_TOTAL 73 49#define RGB_MATRIX_LED_COUNT 73
50#ifdef RGB_DI_PIN 50#ifdef RGB_DI_PIN
51 #define RGBLED_NUM 73 51 #define RGBLED_NUM 73
52 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses 52 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
diff --git a/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c b/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c
index 442111bb6e..18986c604c 100644
--- a/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c
+++ b/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c
@@ -423,7 +423,7 @@ void set_layer_color(int layer) {
423 } 423 }
424 // non key specific lighting instead led flag based 424 // non key specific lighting instead led flag based
425 if (layer == _LVL7_){ 425 if (layer == _LVL7_){
426 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 426 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
427 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { 427 if (HAS_ANY_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
428 set_led_color_by_hsv(i, C_HSV_DARKGOLD); 428 set_led_color_by_hsv(i, C_HSV_DARKGOLD);
429 } 429 }
diff --git a/keyboards/kprepublic/bm65hsrgb_iso/rev1/config.h b/keyboards/kprepublic/bm65hsrgb_iso/rev1/config.h
index 0b5a3bf8e4..9f5a68ca94 100644
--- a/keyboards/kprepublic/bm65hsrgb_iso/rev1/config.h
+++ b/keyboards/kprepublic/bm65hsrgb_iso/rev1/config.h
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
42#define DIODE_DIRECTION COL2ROW 42#define DIODE_DIRECTION COL2ROW
43 43
44#define RGB_DI_PIN E2 44#define RGB_DI_PIN E2
45#define DRIVER_LED_TOTAL 74 45#define RGB_MATRIX_LED_COUNT 74
46#ifdef RGB_DI_PIN 46#ifdef RGB_DI_PIN
47 #define RGBLED_NUM 74 47 #define RGBLED_NUM 74
48 #define RGB_MATRIX_KEYPRESSES 48 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/kprepublic/bm68hsrgb/rev1/config.h b/keyboards/kprepublic/bm68hsrgb/rev1/config.h
index 9b9d534c42..bf67620c5b 100644
--- a/keyboards/kprepublic/bm68hsrgb/rev1/config.h
+++ b/keyboards/kprepublic/bm68hsrgb/rev1/config.h
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
46// The pin connected to the data pin of the LEDs 46// The pin connected to the data pin of the LEDs
47#define RGB_DI_PIN E2 47#define RGB_DI_PIN E2
48// The number of LEDs connected 48// The number of LEDs connected
49#define DRIVER_LED_TOTAL 74 49#define RGB_MATRIX_LED_COUNT 74
50#ifdef RGB_DI_PIN 50#ifdef RGB_DI_PIN
51# define RGBLED_NUM 74 51# define RGBLED_NUM 74
52# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 52# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
diff --git a/keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/config.h b/keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/config.h
index 3ddb813486..a397c57099 100644
--- a/keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/config.h
+++ b/keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/config.h
@@ -64,7 +64,7 @@
64// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) 64// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness)
65// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 65// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
66// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 66// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
67// #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) 67// #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)
68// #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) 68// #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)
69// #define RGBLIGHT_ANIMATIONS // Run RGB animations 69// #define RGBLIGHT_ANIMATIONS // Run RGB animations
70// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes. 70// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes.
diff --git a/keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/keymap.c b/keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/keymap.c
index bf842b138b..0ac5d0c932 100644
--- a/keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/keymap.c
+++ b/keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/keymap.c
@@ -56,7 +56,7 @@ Templete
56#undef _______ 56#undef _______
57#define _______ {0, 0, 0} 57#define _______ {0, 0, 0}
58 58
59const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { 59const uint8_t PROGMEM ledmap[][RGB_MATRIX_LED_COUNT][3] = {
60 [1] = { 60 [1] = {
61 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 61 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
62 GREEN, BLUE, {0, 0, 255}, PURPLE, AZURE, _______, {0, 0, 255}, {0, 0, 255}, {0, 0, 255}, _______, _______, _______, _______, _______, _______, 62 GREEN, BLUE, {0, 0, 255}, PURPLE, AZURE, _______, {0, 0, 255}, {0, 0, 255}, {0, 0, 255}, _______, _______, _______, _______, _______, _______,
@@ -270,7 +270,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
270 270
271void set_layer_color(int layer) { 271void set_layer_color(int layer) {
272 if (layer == 0) { return; } 272 if (layer == 0) { return; }
273 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 273 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
274 HSV hsv = { 274 HSV hsv = {
275 .h = pgm_read_byte(&ledmap[layer][i][0]), 275 .h = pgm_read_byte(&ledmap[layer][i][0]),
276 .s = pgm_read_byte(&ledmap[layer][i][1]), 276 .s = pgm_read_byte(&ledmap[layer][i][1]),
diff --git a/keyboards/kprepublic/bm68hsrgb/rev2/config.h b/keyboards/kprepublic/bm68hsrgb/rev2/config.h
index 86fbb7ae3b..add31bbdb4 100644
--- a/keyboards/kprepublic/bm68hsrgb/rev2/config.h
+++ b/keyboards/kprepublic/bm68hsrgb/rev2/config.h
@@ -55,7 +55,7 @@
55 55
56#define DRIVER_COUNT 1 56#define DRIVER_COUNT 1
57#define DRIVER_1_LED_TOTAL 68 57#define DRIVER_1_LED_TOTAL 68
58#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 58#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
59#define DRIVER_INDICATOR_LED_TOTAL 0 59#define DRIVER_INDICATOR_LED_TOTAL 0
60 60
61#ifdef RGB_MATRIX_ENABLE 61#ifdef RGB_MATRIX_ENABLE
diff --git a/keyboards/kprepublic/bm68hsrgb/rev2/rev2.c b/keyboards/kprepublic/bm68hsrgb/rev2/rev2.c
index be743cbae5..2fb7a6e9bf 100644
--- a/keyboards/kprepublic/bm68hsrgb/rev2/rev2.c
+++ b/keyboards/kprepublic/bm68hsrgb/rev2/rev2.c
@@ -17,7 +17,7 @@
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19 19
20const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 {0, CS6_SW1, CS5_SW1, CS4_SW1}, 21 {0, CS6_SW1, CS5_SW1, CS4_SW1},
22 {0, CS6_SW2, CS5_SW2, CS4_SW2}, 22 {0, CS6_SW2, CS5_SW2, CS4_SW2},
23 {0, CS6_SW3, CS5_SW3, CS4_SW3}, 23 {0, CS6_SW3, CS5_SW3, CS4_SW3},
diff --git a/keyboards/kprepublic/bm80hsrgb/config.h b/keyboards/kprepublic/bm80hsrgb/config.h
index 049aca9b8a..33b01b850f 100644
--- a/keyboards/kprepublic/bm80hsrgb/config.h
+++ b/keyboards/kprepublic/bm80hsrgb/config.h
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
48 48
49#define RGB_DI_PIN E2 49#define RGB_DI_PIN E2
50// The number of LEDs connected 50// The number of LEDs connected
51#define DRIVER_LED_TOTAL 87 51#define RGB_MATRIX_LED_COUNT 87
52 52
53#ifdef RGB_DI_PIN 53#ifdef RGB_DI_PIN
54#define RGBLED_NUM 87 54#define RGBLED_NUM 87
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
56//#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 56//#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
57#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 57#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
58#define RGB_DISABLE_TIMEOUT 0 // number of milliseconds to wait until rgb automatically turns off 58#define RGB_DISABLE_TIMEOUT 0 // number of milliseconds to wait until rgb automatically turns off
59//#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) 59//#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)
60#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) 60#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)
61// #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 61// #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
62#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set 62#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
diff --git a/keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h b/keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h
index 97cae26cbd..f2acf22a62 100644
--- a/keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h
+++ b/keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h
@@ -46,7 +46,7 @@
46// #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_ALPHAS_MODS // Sets the default mode, if none has been set 46// #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_ALPHAS_MODS // Sets the default mode, if none has been set
47// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 47// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
48// #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended 48// #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
49// #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) 49// #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)
50// #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) 50// #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)
51 51
52 52
diff --git a/keyboards/kprepublic/bm80v2/bm80v2.c b/keyboards/kprepublic/bm80v2/bm80v2.c
index 4b8e5af13f..dd89c1b0f0 100644
--- a/keyboards/kprepublic/bm80v2/bm80v2.c
+++ b/keyboards/kprepublic/bm80v2/bm80v2.c
@@ -16,7 +16,7 @@
16 16
17#ifdef RGB_MATRIX_ENABLE 17#ifdef RGB_MATRIX_ENABLE
18 18
19const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 {0, CS6_SW1, CS5_SW1, CS4_SW1}, 20 {0, CS6_SW1, CS5_SW1, CS4_SW1},
21 {0, CS6_SW3, CS5_SW3, CS4_SW3}, 21 {0, CS6_SW3, CS5_SW3, CS4_SW3},
22 {0, CS6_SW4, CS5_SW4, CS4_SW4}, 22 {0, CS6_SW4, CS5_SW4, CS4_SW4},
diff --git a/keyboards/kprepublic/bm80v2/config.h b/keyboards/kprepublic/bm80v2/config.h
index f04ec1d960..dfca28c93d 100644
--- a/keyboards/kprepublic/bm80v2/config.h
+++ b/keyboards/kprepublic/bm80v2/config.h
@@ -70,6 +70,6 @@
70#define DRIVER_ADDR_1 0b0110000 70#define DRIVER_ADDR_1 0b0110000
71#define DRIVER_COUNT 1 71#define DRIVER_COUNT 1
72#define DRIVER_1_LED_TOTAL 87 72#define DRIVER_1_LED_TOTAL 87
73#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 73#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
74 74
75#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 75#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180
diff --git a/keyboards/kprepublic/bm80v2_iso/bm80v2_iso.c b/keyboards/kprepublic/bm80v2_iso/bm80v2_iso.c
index 90d476aa2c..8c6eaf5a5b 100644
--- a/keyboards/kprepublic/bm80v2_iso/bm80v2_iso.c
+++ b/keyboards/kprepublic/bm80v2_iso/bm80v2_iso.c
@@ -16,7 +16,7 @@
16 16
17#ifdef RGB_MATRIX_ENABLE 17#ifdef RGB_MATRIX_ENABLE
18 18
19const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 {0, CS6_SW1, CS5_SW1, CS4_SW1}, 20 {0, CS6_SW1, CS5_SW1, CS4_SW1},
21 {0, CS6_SW3, CS5_SW3, CS4_SW3}, 21 {0, CS6_SW3, CS5_SW3, CS4_SW3},
22 {0, CS6_SW4, CS5_SW4, CS4_SW4}, 22 {0, CS6_SW4, CS5_SW4, CS4_SW4},
diff --git a/keyboards/kprepublic/bm80v2_iso/config.h b/keyboards/kprepublic/bm80v2_iso/config.h
index aee11c42c9..8231627b36 100644
--- a/keyboards/kprepublic/bm80v2_iso/config.h
+++ b/keyboards/kprepublic/bm80v2_iso/config.h
@@ -71,6 +71,6 @@
71#define DRIVER_ADDR_1 0b0110000 71#define DRIVER_ADDR_1 0b0110000
72#define DRIVER_COUNT 1 72#define DRIVER_COUNT 1
73#define DRIVER_1_LED_TOTAL 88 73#define DRIVER_1_LED_TOTAL 88
74#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 74#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
75 75
76#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 76#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180
diff --git a/keyboards/kprepublic/bm980hsrgb/config.h b/keyboards/kprepublic/bm980hsrgb/config.h
index af7e3f3be3..605fad9e55 100644
--- a/keyboards/kprepublic/bm980hsrgb/config.h
+++ b/keyboards/kprepublic/bm980hsrgb/config.h
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
56#define RGB_DI_PIN B0 56#define RGB_DI_PIN B0
57 57
58// The number of LEDs connected 58// The number of LEDs connected
59#define DRIVER_LED_TOTAL 98 59#define RGB_MATRIX_LED_COUNT 98
60//#ifdef RGB_DI_PIN 60//#ifdef RGB_DI_PIN
61# define RGBLED_NUM 98 61# define RGBLED_NUM 98
62#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 62#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
diff --git a/keyboards/labbe/labbeminiv1/keymaps/rgbmatrix/config.h b/keyboards/labbe/labbeminiv1/keymaps/rgbmatrix/config.h
index 601744beb7..b34a8a7b17 100644
--- a/keyboards/labbe/labbeminiv1/keymaps/rgbmatrix/config.h
+++ b/keyboards/labbe/labbeminiv1/keymaps/rgbmatrix/config.h
@@ -18,7 +18,7 @@
18// ws2812 options 18// ws2812 options
19#define RGB_DI_PIN C7 // pin the DI on the ws2812 is hooked-up to 19#define RGB_DI_PIN C7 // pin the DI on the ws2812 is hooked-up to
20#define RGBLED_NUM 4 // number of LEDs 20#define RGBLED_NUM 4 // number of LEDs
21#define DRIVER_LED_TOTAL RGBLED_NUM 21#define RGB_MATRIX_LED_COUNT RGBLED_NUM
22 22
23#define RGB_MATRIX_KEYPRESSES 23#define RGB_MATRIX_KEYPRESSES
24 24
diff --git a/keyboards/latincompass/latin17rgb/config.h b/keyboards/latincompass/latin17rgb/config.h
index 585f632c40..9e6b98ee3a 100644
--- a/keyboards/latincompass/latin17rgb/config.h
+++ b/keyboards/latincompass/latin17rgb/config.h
@@ -109,7 +109,7 @@
109# define DRIVER_COUNT 2 109# define DRIVER_COUNT 2
110# define DRIVER_1_LED_TOTAL 25 110# define DRIVER_1_LED_TOTAL 25
111# define DRIVER_2_LED_TOTAL 24 111# define DRIVER_2_LED_TOTAL 24
112# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 112# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
113 113
114#endif 114#endif
115#define RGB_DI_PIN B7 115#define RGB_DI_PIN B7
diff --git a/keyboards/latincompass/latin17rgb/latin17rgb.c b/keyboards/latincompass/latin17rgb/latin17rgb.c
index d4ab3ea675..e165c5b76d 100644
--- a/keyboards/latincompass/latin17rgb/latin17rgb.c
+++ b/keyboards/latincompass/latin17rgb/latin17rgb.c
@@ -17,7 +17,7 @@
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19 19
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/latincompass/latin60rgb/config.h b/keyboards/latincompass/latin60rgb/config.h
index 0058297dda..8ac72f7bb3 100644
--- a/keyboards/latincompass/latin60rgb/config.h
+++ b/keyboards/latincompass/latin60rgb/config.h
@@ -96,5 +96,5 @@
96// # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH 96// # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
97# define DRIVER_ADDR_1 0b1010000 97# define DRIVER_ADDR_1 0b1010000
98# define DRIVER_COUNT 1 98# define DRIVER_COUNT 1
99# define DRIVER_LED_TOTAL 60 99# define RGB_MATRIX_LED_COUNT 60
100#endif 100#endif
diff --git a/keyboards/latincompass/latin60rgb/latin60rgb.c b/keyboards/latincompass/latin60rgb/latin60rgb.c
index b849f7ef9d..131c184124 100644
--- a/keyboards/latincompass/latin60rgb/latin60rgb.c
+++ b/keyboards/latincompass/latin60rgb/latin60rgb.c
@@ -16,7 +16,7 @@
16#include "latin60rgb.h" 16#include "latin60rgb.h"
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 { 0, K_13, J_13, L_13 }, 20 { 0, K_13, J_13, L_13 },
21 { 0, K_12, J_12, L_12 }, 21 { 0, K_12, J_12, L_12 },
22 { 0, K_11, J_11, L_11 }, 22 { 0, K_11, J_11, L_11 },
diff --git a/keyboards/latincompass/latin64ble/config.h b/keyboards/latincompass/latin64ble/config.h
index 5bb3ca4562..866bee31fa 100644
--- a/keyboards/latincompass/latin64ble/config.h
+++ b/keyboards/latincompass/latin64ble/config.h
@@ -29,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/
29#define RGB_DI_PIN B7 29#define RGB_DI_PIN B7
30 30
31#define RGBLED_NUM 2 31#define RGBLED_NUM 2
32#define DRIVER_LED_TOTAL RGBLED_NUM 32#define RGB_MATRIX_LED_COUNT RGBLED_NUM
33 33
34/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ 34/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
35#define DEBOUNCE 5 35#define DEBOUNCE 5
diff --git a/keyboards/latincompass/latin6rgb/config.h b/keyboards/latincompass/latin6rgb/config.h
index 17083580a6..ef4695bdb1 100644
--- a/keyboards/latincompass/latin6rgb/config.h
+++ b/keyboards/latincompass/latin6rgb/config.h
@@ -107,7 +107,7 @@
107#define DRIVER_ADDR_1 0b1110100 107#define DRIVER_ADDR_1 0b1110100
108 108
109#define DRIVER_COUNT 1 109#define DRIVER_COUNT 1
110#define DRIVER_LED_TOTAL 6 110#define RGB_MATRIX_LED_COUNT 6
111#endif 111#endif
112//#define RGB_DI_PIN B7 112//#define RGB_DI_PIN B7
113//#ifdef RGB_DI_PIN 113//#ifdef RGB_DI_PIN
diff --git a/keyboards/latincompass/latin6rgb/latin6rgb.c b/keyboards/latincompass/latin6rgb/latin6rgb.c
index ddab9a1519..cc10a7b334 100644
--- a/keyboards/latincompass/latin6rgb/latin6rgb.c
+++ b/keyboards/latincompass/latin6rgb/latin6rgb.c
@@ -17,7 +17,7 @@
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19 19
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/latincompass/latinpad/config.h b/keyboards/latincompass/latinpad/config.h
index 255ddc89db..47b79802af 100644
--- a/keyboards/latincompass/latinpad/config.h
+++ b/keyboards/latincompass/latinpad/config.h
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/
30#define RGB_DI_PIN D3 30#define RGB_DI_PIN D3
31 31
32#define RGBLED_NUM 18 32#define RGBLED_NUM 18
33#define DRIVER_LED_TOTAL RGBLED_NUM 33#define RGB_MATRIX_LED_COUNT RGBLED_NUM
34// RGB Matrix Animation modes. Explicitly enabled 34// RGB Matrix Animation modes. Explicitly enabled
35// For full list of effects, see: 35// For full list of effects, see:
36// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects 36// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
diff --git a/keyboards/latincompass/latinpadble/config.h b/keyboards/latincompass/latinpadble/config.h
index 09198df612..cefcbd6469 100644
--- a/keyboards/latincompass/latinpadble/config.h
+++ b/keyboards/latincompass/latinpadble/config.h
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/
34#define RGB_DI_PIN B7 34#define RGB_DI_PIN B7
35 35
36#define RGBLED_NUM 4 36#define RGBLED_NUM 4
37#define DRIVER_LED_TOTAL RGBLED_NUM 37#define RGB_MATRIX_LED_COUNT RGBLED_NUM
38 38
39/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ 39/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
40#define DEBOUNCE 5 40#define DEBOUNCE 5
diff --git a/keyboards/linworks/fave65h/config.h b/keyboards/linworks/fave65h/config.h
index 5fac33e7d5..008a171724 100644
--- a/keyboards/linworks/fave65h/config.h
+++ b/keyboards/linworks/fave65h/config.h
@@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
35 35
36/* Define RGB */ 36/* Define RGB */
37#define RGBLED_NUM 67 37#define RGBLED_NUM 67
38#define DRIVER_LED_TOTAL 67 38#define RGB_MATRIX_LED_COUNT 67
39#define RGB_DI_PIN B0 39#define RGB_DI_PIN B0
40 40
41#ifdef RGB_MATRIX_ENABLE 41#ifdef RGB_MATRIX_ENABLE
diff --git a/keyboards/linworks/fave84h/config.h b/keyboards/linworks/fave84h/config.h
index e9e69f3b66..0980a742d1 100644
--- a/keyboards/linworks/fave84h/config.h
+++ b/keyboards/linworks/fave84h/config.h
@@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
46 46
47/* Define RGB */ 47/* Define RGB */
48#define RGBLED_NUM 126 48#define RGBLED_NUM 126
49#define DRIVER_LED_TOTAL 126 49#define RGB_MATRIX_LED_COUNT 126
50#define RGB_DI_PIN D2 50#define RGB_DI_PIN D2
51 51
52#ifdef RGB_MATRIX_ENABLE 52#ifdef RGB_MATRIX_ENABLE
diff --git a/keyboards/linworks/fave87h/config.h b/keyboards/linworks/fave87h/config.h
index 54850aec3f..17d19fb2e1 100644
--- a/keyboards/linworks/fave87h/config.h
+++ b/keyboards/linworks/fave87h/config.h
@@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
35 35
36/* Define RGB */ 36/* Define RGB */
37#define RGBLED_NUM 127 37#define RGBLED_NUM 127
38#define DRIVER_LED_TOTAL 127 38#define RGB_MATRIX_LED_COUNT 127
39#define RGB_DI_PIN D2 39#define RGB_DI_PIN D2
40 40
41#ifdef RGB_MATRIX_ENABLE 41#ifdef RGB_MATRIX_ENABLE
diff --git a/keyboards/maple_computing/launchpad/keymaps/drashna/config.h b/keyboards/maple_computing/launchpad/keymaps/drashna/config.h
index b14becc25b..d801910568 100644
--- a/keyboards/maple_computing/launchpad/keymaps/drashna/config.h
+++ b/keyboards/maple_computing/launchpad/keymaps/drashna/config.h
@@ -26,6 +26,6 @@
26#define RGBLIGHT_SAT_STEP 17 26#define RGBLIGHT_SAT_STEP 17
27#define RGBLIGHT_VAL_STEP 17 27#define RGBLIGHT_VAL_STEP 17
28 28
29#define DRIVER_LED_TOTAL RGBLED_NUM 29#define RGB_MATRIX_LED_COUNT RGBLED_NUM
30#define AUDIO_PIN B7 30#define AUDIO_PIN B7
31#define AUDIO_CLICKY 31#define AUDIO_CLICKY
diff --git a/keyboards/marksard/rhymestone/rev1/config.h b/keyboards/marksard/rhymestone/rev1/config.h
index 6cee7a9a92..1fe692c383 100644
--- a/keyboards/marksard/rhymestone/rev1/config.h
+++ b/keyboards/marksard/rhymestone/rev1/config.h
@@ -81,12 +81,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
81 81
82#ifdef RGB_MATRIX_ENABLE 82#ifdef RGB_MATRIX_ENABLE
83 #define RGBLED_NUM 40 // Number of LEDs 83 #define RGBLED_NUM 40 // Number of LEDs
84 #define DRIVER_LED_TOTAL RGBLED_NUM 84 #define RGB_MATRIX_LED_COUNT RGBLED_NUM
85 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses 85 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
86 // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 86 // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
87 // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 87 // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
88 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 88 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
89 // #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) 89 // #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)
90 // #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) 90 // #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)
91 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 91 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
92 #define RGB_MATRIX_HUE_STEP 8 92 #define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/massdrop/alt/config_led.h b/keyboards/massdrop/alt/config_led.h
index b600dd23b9..770a430d3c 100644
--- a/keyboards/massdrop/alt/config_led.h
+++ b/keyboards/massdrop/alt/config_led.h
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20//Define number of ISSI3733 drivers being used (1...16) 20//Define number of ISSI3733 drivers being used (1...16)
21#define ISSI3733_DRIVER_COUNT 2 21#define ISSI3733_DRIVER_COUNT 2
22#define DRIVER_LED_TOTAL ISSI3733_LED_COUNT 22#define RGB_MATRIX_LED_COUNT ISSI3733_LED_COUNT
23 23
24//Hardware address of each driver (Refer to ISSI3733 pdf "Table 1 Slave Address" and keyboard schematic) 24//Hardware address of each driver (Refer to ISSI3733 pdf "Table 1 Slave Address" and keyboard schematic)
25#define ISSI3773_DRIVER_ADDRESSES { 0xA0, 0xBE } 25#define ISSI3773_DRIVER_ADDRESSES { 0xA0, 0xBE }
diff --git a/keyboards/massdrop/alt/keymaps/jdelkins/keymap.c b/keyboards/massdrop/alt/keymaps/jdelkins/keymap.c
index 967c1570d2..6afd882dbe 100644
--- a/keyboards/massdrop/alt/keymaps/jdelkins/keymap.c
+++ b/keyboards/massdrop/alt/keymaps/jdelkins/keymap.c
@@ -230,7 +230,7 @@ static void set_rgb_layer(int layer) {
230 230
231 switch (cur->type) { 231 switch (cur->type) {
232 case type_hsv: 232 case type_hsv:
233 for (uint8_t i = 0; i < DRIVER_LED_TOTAL ; i++) { 233 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT ; i++) {
234 if (!(g_led_config.flags[i] & cur->flags)) 234 if (!(g_led_config.flags[i] & cur->flags))
235 rgb_matrix_set_color(i, 0, 0, 0); 235 rgb_matrix_set_color(i, 0, 0, 0);
236 } 236 }
@@ -247,7 +247,7 @@ static void set_rgb_layer(int layer) {
247 rgb_matrix_mode_noeeprom(rgbs[cur->mode - RGB_MATRIX_EFFECT_MAX].mode); 247 rgb_matrix_mode_noeeprom(rgbs[cur->mode - RGB_MATRIX_EFFECT_MAX].mode);
248 else 248 else
249 rgb_matrix_mode_noeeprom(cur->mode); 249 rgb_matrix_mode_noeeprom(cur->mode);
250 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 250 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
251 const RGB *m = &cur->rgb[i]; 251 const RGB *m = &cur->rgb[i];
252 if (!RGB_IS_NULL(*m)) 252 if (!RGB_IS_NULL(*m))
253 rgb_matrix_set_color(i, m->r, m->g, m->b); 253 rgb_matrix_set_color(i, m->r, m->g, m->b);
diff --git a/keyboards/massdrop/alt/keymaps/jdelkins/rgb_matrix.h b/keyboards/massdrop/alt/keymaps/jdelkins/rgb_matrix.h
index ff30cc0e42..146de00447 100644
--- a/keyboards/massdrop/alt/keymaps/jdelkins/rgb_matrix.h
+++ b/keyboards/massdrop/alt/keymaps/jdelkins/rgb_matrix.h
@@ -63,7 +63,7 @@ struct layer_rgb {
63 uint8_t mode; 63 uint8_t mode;
64 union { 64 union {
65 HSV hsv; 65 HSV hsv;
66 RGB rgb[DRIVER_LED_TOTAL]; 66 RGB rgb[RGB_MATRIX_LED_COUNT];
67 }; 67 };
68}; 68};
69 69
diff --git a/keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c b/keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c
index f5a39338b8..8db9222783 100644
--- a/keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c
+++ b/keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c
@@ -113,7 +113,7 @@ static void set_rgb_layer(int layer) {
113 113
114 switch (cur->type) { 114 switch (cur->type) {
115 case type_hsv: 115 case type_hsv:
116 for (uint8_t i = 0; i < DRIVER_LED_TOTAL ; i++) { 116 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT ; i++) {
117 if (!(g_led_config.flags[i] & cur->flags)) 117 if (!(g_led_config.flags[i] & cur->flags))
118 rgb_matrix_set_color(i, 0, 0, 0); 118 rgb_matrix_set_color(i, 0, 0, 0);
119 } 119 }
@@ -130,7 +130,7 @@ static void set_rgb_layer(int layer) {
130 rgb_matrix_mode_noeeprom(rgbs[cur->mode - RGB_MATRIX_EFFECT_MAX].mode); 130 rgb_matrix_mode_noeeprom(rgbs[cur->mode - RGB_MATRIX_EFFECT_MAX].mode);
131 else 131 else
132 rgb_matrix_mode_noeeprom(cur->mode); 132 rgb_matrix_mode_noeeprom(cur->mode);
133 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 133 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
134 const RGB *m = &cur->rgb[i]; 134 const RGB *m = &cur->rgb[i];
135 if (!RGB_IS_NULL(*m)) 135 if (!RGB_IS_NULL(*m))
136 rgb_matrix_set_color(i, m->r, m->g, m->b); 136 rgb_matrix_set_color(i, m->r, m->g, m->b);
diff --git a/keyboards/massdrop/alt/keymaps/jdelkins_ss/rgb_matrix.h b/keyboards/massdrop/alt/keymaps/jdelkins_ss/rgb_matrix.h
index ff30cc0e42..146de00447 100644
--- a/keyboards/massdrop/alt/keymaps/jdelkins_ss/rgb_matrix.h
+++ b/keyboards/massdrop/alt/keymaps/jdelkins_ss/rgb_matrix.h
@@ -63,7 +63,7 @@ struct layer_rgb {
63 uint8_t mode; 63 uint8_t mode;
64 union { 64 union {
65 HSV hsv; 65 HSV hsv;
66 RGB rgb[DRIVER_LED_TOTAL]; 66 RGB rgb[RGB_MATRIX_LED_COUNT];
67 }; 67 };
68}; 68};
69 69
diff --git a/keyboards/massdrop/alt/keymaps/pregame/config.h b/keyboards/massdrop/alt/keymaps/pregame/config.h
index 936951e34a..42ddb1f4f3 100644
--- a/keyboards/massdrop/alt/keymaps/pregame/config.h
+++ b/keyboards/massdrop/alt/keymaps/pregame/config.h
@@ -89,7 +89,7 @@
89// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) 89// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness)
90// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 90// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
91// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 91// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
92// #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) 92// #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)
93// #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) 93// #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)
94#define RGBLIGHT_ANIMATIONS // Run RGB animations 94#define RGBLIGHT_ANIMATIONS // Run RGB animations
95// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes. 95// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes.
diff --git a/keyboards/massdrop/alt/keymaps/pregame/keymap.c b/keyboards/massdrop/alt/keymaps/pregame/keymap.c
index 6c1d93b030..6a78f075fb 100644
--- a/keyboards/massdrop/alt/keymaps/pregame/keymap.c
+++ b/keyboards/massdrop/alt/keymaps/pregame/keymap.c
@@ -81,7 +81,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
81#undef _______ 81#undef _______
82#define _______ {0, 0, 0} 82#define _______ {0, 0, 0}
83 83
84const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { 84const uint8_t PROGMEM ledmap[][RGB_MATRIX_LED_COUNT][3] = {
85 [0] = { 85 [0] = {
86 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 86 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
87 _______, _______, CHART, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 87 _______, _______, CHART, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
@@ -182,7 +182,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
182 return true; 182 return true;
183} 183}
184void set_layer_color(int layer) { 184void set_layer_color(int layer) {
185 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 185 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
186 HSV hsv = { 186 HSV hsv = {
187 .h = pgm_read_byte(&ledmap[layer][i][0]), 187 .h = pgm_read_byte(&ledmap[layer][i][0]),
188 .s = pgm_read_byte(&ledmap[layer][i][1]), 188 .s = pgm_read_byte(&ledmap[layer][i][1]),
diff --git a/keyboards/massdrop/ctrl/config_led.h b/keyboards/massdrop/ctrl/config_led.h
index de897ce1bd..f582035e9e 100644
--- a/keyboards/massdrop/ctrl/config_led.h
+++ b/keyboards/massdrop/ctrl/config_led.h
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20//Define number of ISSI3733 drivers being used (1...16) 20//Define number of ISSI3733 drivers being used (1...16)
21#define ISSI3733_DRIVER_COUNT 2 21#define ISSI3733_DRIVER_COUNT 2
22#define DRIVER_LED_TOTAL ISSI3733_LED_COUNT 22#define RGB_MATRIX_LED_COUNT ISSI3733_LED_COUNT
23 23
24//Hardware address of each driver (Refer to ISSI3733 pdf "Table 1 Slave Address" and keyboard schematic) 24//Hardware address of each driver (Refer to ISSI3733 pdf "Table 1 Slave Address" and keyboard schematic)
25#define ISSI3773_DRIVER_ADDRESSES { 0xA0, 0xBE } 25#define ISSI3773_DRIVER_ADDRESSES { 0xA0, 0xBE }
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/config.h b/keyboards/massdrop/ctrl/keymaps/endgame/config.h
index d0bbfd2103..8b28e72d5c 100644
--- a/keyboards/massdrop/ctrl/keymaps/endgame/config.h
+++ b/keyboards/massdrop/ctrl/keymaps/endgame/config.h
@@ -49,7 +49,7 @@
49// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) 49// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness)
50// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 50// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
51// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 51// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
52// #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) 52// #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)
53// #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) 53// #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)
54// #define RGBLIGHT_ANIMATIONS // Run RGB animations 54// #define RGBLIGHT_ANIMATIONS // Run RGB animations
55// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes. 55// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes.
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c b/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c
index 6451dd495b..4c9c73c3fd 100644
--- a/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c
+++ b/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c
@@ -124,7 +124,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
124#undef _______ 124#undef _______
125#define _______ {0, 0, 0} 125#define _______ {0, 0, 0}
126 126
127const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { 127const uint8_t PROGMEM ledmap[][RGB_MATRIX_LED_COUNT][3] = {
128 [_FL] = { 128 [_FL] = {
129 _______, CORAL, CORAL, _______, _______, CORAL, CORAL, _______, _______, CORAL, _______, YELLOW, YELLOW, TEAL, GOLD, GOLD, 129 _______, CORAL, CORAL, _______, _______, CORAL, CORAL, _______, _______, CORAL, _______, YELLOW, YELLOW, TEAL, GOLD, GOLD,
130 _______, _______, PINK, PINK, PINK, PINK, _______, _______, _______, GREEN, GREEN, GREEN, GREEN, _______, TEAL, TEAL, TEAL, 130 _______, _______, PINK, PINK, PINK, PINK, _______, _______, _______, GREEN, GREEN, GREEN, GREEN, _______, TEAL, TEAL, TEAL,
@@ -354,7 +354,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
354 354
355void set_layer_color(int layer) { 355void set_layer_color(int layer) {
356 if (layer == 0) { return; } 356 if (layer == 0) { return; }
357 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 357 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
358 HSV hsv = { 358 HSV hsv = {
359 .h = pgm_read_byte(&ledmap[layer][i][0]), 359 .h = pgm_read_byte(&ledmap[layer][i][0]),
360 .s = pgm_read_byte(&ledmap[layer][i][1]), 360 .s = pgm_read_byte(&ledmap[layer][i][1]),
diff --git a/keyboards/massdrop/ctrl/keymaps/foxx1337/config.h b/keyboards/massdrop/ctrl/keymaps/foxx1337/config.h
index 160ddf6d18..68ed5f7609 100644
--- a/keyboards/massdrop/ctrl/keymaps/foxx1337/config.h
+++ b/keyboards/massdrop/ctrl/keymaps/foxx1337/config.h
@@ -34,7 +34,7 @@
34// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) 34// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness)
35// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 35// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
36// #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended 36// #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
37// #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) 37// #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)
38// #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) 38// #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)
39// #define RGBLIGHT_ANIMATIONS // Run RGB animations 39// #define RGBLIGHT_ANIMATIONS // Run RGB animations
40// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes. 40// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes.
diff --git a/keyboards/massdrop/ctrl/keymaps/foxx1337/hid_protocol.h b/keyboards/massdrop/ctrl/keymaps/foxx1337/hid_protocol.h
index ff214aaad6..96f90f5e05 100644
--- a/keyboards/massdrop/ctrl/keymaps/foxx1337/hid_protocol.h
+++ b/keyboards/massdrop/ctrl/keymaps/foxx1337/hid_protocol.h
@@ -75,6 +75,6 @@ extern uint8_t raw_hid_buffer[RAW_EPSIZE];
75 75
76// Defined in rgb_matrix_user.inc 76// Defined in rgb_matrix_user.inc
77// It's 119 for Massdrop CTRL, 0 - 118. 77// It's 119 for Massdrop CTRL, 0 - 118.
78extern RGB rgb_matrix_led_state[DRIVER_LED_TOTAL]; 78extern RGB rgb_matrix_led_state[RGB_MATRIX_LED_COUNT];
79 79
80void raw_hid_perform_send(void); 80void raw_hid_perform_send(void);
diff --git a/keyboards/massdrop/ctrl/keymaps/foxx1337/keymap.c b/keyboards/massdrop/ctrl/keymaps/foxx1337/keymap.c
index 299251e456..ad265f0ead 100644
--- a/keyboards/massdrop/ctrl/keymaps/foxx1337/keymap.c
+++ b/keyboards/massdrop/ctrl/keymaps/foxx1337/keymap.c
@@ -199,9 +199,9 @@ void raw_hid_led(uint8_t *data) {
199 //rgb_matrix_set_color(data[1], data[2], data[3], data[4]); 199 //rgb_matrix_set_color(data[1], data[2], data[3], data[4]);
200 const uint8_t led = data[1]; 200 const uint8_t led = data[1];
201 201
202 if (led >= DRIVER_LED_TOTAL) { 202 if (led >= RGB_MATRIX_LED_COUNT) {
203 raw_hid_buffer[1] = CTRL_HID_NOK; 203 raw_hid_buffer[1] = CTRL_HID_NOK;
204 raw_hid_buffer[2] = DRIVER_LED_TOTAL; 204 raw_hid_buffer[2] = RGB_MATRIX_LED_COUNT;
205 raw_hid_buffer[3] = CTRL_HID_EOM; 205 raw_hid_buffer[3] = CTRL_HID_EOM;
206 return; 206 return;
207 } 207 }
@@ -219,7 +219,7 @@ void raw_hid_leds(uint8_t *data) {
219 const uint8_t number_leds = data[2]; 219 const uint8_t number_leds = data[2];
220 220
221 uint8_t i = 0; 221 uint8_t i = 0;
222 while (i < number_leds && first_led + i < DRIVER_LED_TOTAL && i * 3 + 5 < RAW_EPSIZE) { 222 while (i < number_leds && first_led + i < RGB_MATRIX_LED_COUNT && i * 3 + 5 < RAW_EPSIZE) {
223 rgb_matrix_led_state[first_led + i].r = data[3 + i * 3 + 0]; 223 rgb_matrix_led_state[first_led + i].r = data[3 + i * 3 + 0];
224 rgb_matrix_led_state[first_led + i].g = data[3 + i * 3 + 1]; 224 rgb_matrix_led_state[first_led + i].g = data[3 + i * 3 + 1];
225 rgb_matrix_led_state[first_led + i].b = data[3 + i * 3 + 2]; 225 rgb_matrix_led_state[first_led + i].b = data[3 + i * 3 + 2];
diff --git a/keyboards/massdrop/ctrl/keymaps/foxx1337/rgb_matrix_user.inc b/keyboards/massdrop/ctrl/keymaps/foxx1337/rgb_matrix_user.inc
index cca598e3b2..36d09c42e2 100644
--- a/keyboards/massdrop/ctrl/keymaps/foxx1337/rgb_matrix_user.inc
+++ b/keyboards/massdrop/ctrl/keymaps/foxx1337/rgb_matrix_user.inc
@@ -26,7 +26,7 @@ RGB_MATRIX_EFFECT(hid_effect)
26// Define effects inside the `RGB_MATRIX_CUSTOM_EFFECT_IMPLS` ifdef block 26// Define effects inside the `RGB_MATRIX_CUSTOM_EFFECT_IMPLS` ifdef block
27#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS 27#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
28 28
29RGB rgb_matrix_led_state[DRIVER_LED_TOTAL]; 29RGB rgb_matrix_led_state[RGB_MATRIX_LED_COUNT];
30 30
31// e.g: A simple effect, self-contained within a single method 31// e.g: A simple effect, self-contained within a single method
32static bool hid_effect(effect_params_t* params) { 32static bool hid_effect(effect_params_t* params) {
@@ -38,7 +38,7 @@ static bool hid_effect(effect_params_t* params) {
38 rgb_matrix_led_state[i].g, 38 rgb_matrix_led_state[i].g,
39 rgb_matrix_led_state[i].b); 39 rgb_matrix_led_state[i].b);
40 } 40 }
41 return led_max < DRIVER_LED_TOTAL; 41 return led_max < RGB_MATRIX_LED_COUNT;
42} 42}
43 43
44#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS 44#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
diff --git a/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h b/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h
index 692faa35a2..78641763c2 100644
--- a/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h
+++ b/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h
@@ -67,7 +67,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
67// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) 67// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness)
68// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 68// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
69// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 69// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
70// #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) 70// #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)
71// #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) 71// #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)
72// #define RGBLIGHT_ANIMATIONS // Run RGB animations 72// #define RGBLIGHT_ANIMATIONS // Run RGB animations
73// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes. 73// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes.
diff --git a/keyboards/massdrop/ctrl/keymaps/matthewrobo/keymap.c b/keyboards/massdrop/ctrl/keymaps/matthewrobo/keymap.c
index c89607b3f3..406263cee5 100644
--- a/keyboards/massdrop/ctrl/keymaps/matthewrobo/keymap.c
+++ b/keyboards/massdrop/ctrl/keymaps/matthewrobo/keymap.c
@@ -83,7 +83,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
83# undef _______ 83# undef _______
84# define _______ {0,0,0} 84# define _______ {0,0,0}
85 85
86const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { 86const uint8_t PROGMEM ledmap[][RGB_MATRIX_LED_COUNT][3] = {
87 [_NL] = { 87 [_NL] = {
88 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 88 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
89 _______, _______, _______, _______, _______, _______, _______, GOLD, GOLD, GOLD, GREEN, GREEN, GREEN, _______, _______, _______, _______, 89 _______, _______, _______, _______, _______, _______, _______, GOLD, GOLD, GOLD, GREEN, GREEN, GREEN, _______, _______, _______, _______,
@@ -217,7 +217,7 @@ void set_layer_color(int layer) {
217 if (layer == 0) { 217 if (layer == 0) {
218 return; 218 return;
219 } 219 }
220 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 220 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
221 HSV hsv = { 221 HSV hsv = {
222 .h = pgm_read_byte(&ledmap[layer][i][0]), 222 .h = pgm_read_byte(&ledmap[layer][i][0]),
223 .s = pgm_read_byte(&ledmap[layer][i][1]), 223 .s = pgm_read_byte(&ledmap[layer][i][1]),
diff --git a/keyboards/massdrop/ctrl/keymaps/xanimos/config.h b/keyboards/massdrop/ctrl/keymaps/xanimos/config.h
index f1cbd5f3b0..e5799e308e 100644
--- a/keyboards/massdrop/ctrl/keymaps/xanimos/config.h
+++ b/keyboards/massdrop/ctrl/keymaps/xanimos/config.h
@@ -65,7 +65,7 @@
65// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) 65// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness)
66// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 66// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
67// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 67// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
68// #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) 68// #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)
69// #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) 69// #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)
70// #define RGBLIGHT_ANIMATIONS // Run RGB animations 70// #define RGBLIGHT_ANIMATIONS // Run RGB animations
71// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes. 71// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes.
diff --git a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c
index c7bc285eda..2b6515fc97 100644
--- a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c
+++ b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c
@@ -118,7 +118,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
118 118
119#define __OFF__ {0, 0, 0} 119#define __OFF__ {0, 0, 0}
120 120
121const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { 121const uint8_t PROGMEM ledmap[][RGB_MATRIX_LED_COUNT][3] = {
122 [_FL] = { 122 [_FL] = {
123 // These remain on base layer rgb to see adjustments ;) 123 // These remain on base layer rgb to see adjustments ;)
124 // |----------------------------------| 124 // |----------------------------------|
@@ -323,7 +323,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
323 323
324void set_layer_color(int layer) { 324void set_layer_color(int layer) {
325 if (layer == 0) { return; } 325 if (layer == 0) { return; }
326 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 326 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
327 HSV hsv = { 327 HSV hsv = {
328 .h = pgm_read_byte(&ledmap[layer][i][0]), 328 .h = pgm_read_byte(&ledmap[layer][i][0]),
329 .s = pgm_read_byte(&ledmap[layer][i][1]), 329 .s = pgm_read_byte(&ledmap[layer][i][1]),
diff --git a/keyboards/matrix/m20add/config.h b/keyboards/matrix/m20add/config.h
index cf63bb1bda..95a83905a3 100644
--- a/keyboards/matrix/m20add/config.h
+++ b/keyboards/matrix/m20add/config.h
@@ -86,4 +86,4 @@
86 86
87#define DRIVER_ADDR_1 0b1110100 87#define DRIVER_ADDR_1 0b1110100
88#define DRIVER_COUNT 1 88#define DRIVER_COUNT 1
89#define DRIVER_LED_TOTAL RGBLED_NUM 89#define RGB_MATRIX_LED_COUNT RGBLED_NUM
diff --git a/keyboards/matrix/m20add/rgb_ring.c b/keyboards/matrix/m20add/rgb_ring.c
index 7535cb5bd4..4466ec3bea 100644
--- a/keyboards/matrix/m20add/rgb_ring.c
+++ b/keyboards/matrix/m20add/rgb_ring.c
@@ -30,7 +30,7 @@
30#endif 30#endif
31// rgb ring leds setting 31// rgb ring leds setting
32 32
33const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 33const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
34/* Refer to IS31 manual for these locations 34/* Refer to IS31 manual for these locations
35 * driver 35 * driver
36 * | R location 36 * | R location
@@ -373,7 +373,7 @@ void rgb_ring_init(void)
373{ 373{
374 i2c_init(); 374 i2c_init();
375 IS31FL3731_init(DRIVER_ADDR_1); 375 IS31FL3731_init(DRIVER_ADDR_1);
376 for (int index = 0; index < DRIVER_LED_TOTAL; index++) { 376 for (int index = 0; index < RGB_MATRIX_LED_COUNT; index++) {
377 bool enabled = true; 377 bool enabled = true;
378 IS31FL3731_set_led_control_register(index, enabled, enabled, enabled); 378 IS31FL3731_set_led_control_register(index, enabled, enabled, enabled);
379 } 379 }
diff --git a/keyboards/matrix/noah/config.h b/keyboards/matrix/noah/config.h
index 83c1942a5f..081b5de373 100644
--- a/keyboards/matrix/noah/config.h
+++ b/keyboards/matrix/noah/config.h
@@ -30,7 +30,7 @@
30#define DRIVER_COUNT 2 30#define DRIVER_COUNT 2
31#define DRIVER_1_LED_TOTAL 36 31#define DRIVER_1_LED_TOTAL 36
32#define DRIVER_2_LED_TOTAL 36 32#define DRIVER_2_LED_TOTAL 36
33#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 33#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
34// RGB Matrix Animation modes. Explicitly enabled 34// RGB Matrix Animation modes. Explicitly enabled
35// For full list of effects, see: 35// For full list of effects, see:
36// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects 36// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
diff --git a/keyboards/matrix/noah/noah.c b/keyboards/matrix/noah/noah.c
index 89c25707af..44450229a1 100644
--- a/keyboards/matrix/noah/noah.c
+++ b/keyboards/matrix/noah/noah.c
@@ -63,7 +63,7 @@ void matrix_scan_kb(void) {
63} 63}
64 64
65#ifdef RGB_MATRIX_ENABLE 65#ifdef RGB_MATRIX_ENABLE
66const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 66const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
67/* Refer to IS31 manual for these locations 67/* Refer to IS31 manual for these locations
68 * driver 68 * driver
69 * | R location 69 * | R location
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev1/config.h b/keyboards/mechlovin/adelais/rgb_led/rev1/config.h
index 7f151ae09a..bc025120a6 100644
--- a/keyboards/mechlovin/adelais/rgb_led/rev1/config.h
+++ b/keyboards/mechlovin/adelais/rgb_led/rev1/config.h
@@ -4,7 +4,7 @@
4#define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A15 } 4#define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A15 }
5 5
6#define RGB_DI_PIN A7 6#define RGB_DI_PIN A7
7#define DRIVER_LED_TOTAL 91 7#define RGB_MATRIX_LED_COUNT 91
8#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 8#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
9#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 9#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
10#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 10#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev2/config.h b/keyboards/mechlovin/adelais/rgb_led/rev2/config.h
index dbeb73cda2..2a434f1d5d 100644
--- a/keyboards/mechlovin/adelais/rgb_led/rev2/config.h
+++ b/keyboards/mechlovin/adelais/rgb_led/rev2/config.h
@@ -23,7 +23,7 @@
23#define DRIVER_COUNT 2 23#define DRIVER_COUNT 2
24#define DRIVER_1_LED_TOTAL 32 24#define DRIVER_1_LED_TOTAL 32
25#define DRIVER_2_LED_TOTAL 36 25#define DRIVER_2_LED_TOTAL 36
26#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 26#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
27#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 27#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
28#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 28#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
29#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 29#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c b/keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c
index dda36f3710..edbbe39c4b 100644
--- a/keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c
+++ b/keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c
@@ -17,7 +17,7 @@
17#include "adelais.h" 17#include "adelais.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 21
22 {0, C2_1, C3_1, C4_1}, //D102-A0-0 22 {0, C2_1, C3_1, C4_1}, //D102-A0-0
23 {0, C5_1, C6_1, C7_1}, //D108-A1-1 23 {0, C5_1, C6_1, C7_1}, //D108-A1-1
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev3/config.h b/keyboards/mechlovin/adelais/rgb_led/rev3/config.h
index e16d5f2ce5..9149dfe97a 100644
--- a/keyboards/mechlovin/adelais/rgb_led/rev3/config.h
+++ b/keyboards/mechlovin/adelais/rgb_led/rev3/config.h
@@ -51,7 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
51// 0b1110110 AD <-> SDA 51// 0b1110110 AD <-> SDA
52#define DRIVER_ADDR_1 0b0110010 52#define DRIVER_ADDR_1 0b0110010
53#define DRIVER_COUNT 1 53#define DRIVER_COUNT 1
54#define DRIVER_LED_TOTAL 66 54#define RGB_MATRIX_LED_COUNT 66
55 55
56#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 56#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
57#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 57#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev3/rev3.c b/keyboards/mechlovin/adelais/rgb_led/rev3/rev3.c
index d9ea7993cf..cf334a962e 100644
--- a/keyboards/mechlovin/adelais/rgb_led/rev3/rev3.c
+++ b/keyboards/mechlovin/adelais/rgb_led/rev3/rev3.c
@@ -17,7 +17,7 @@
17#include "rev3.h" 17#include "rev3.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 {0, CS3_SW5, CS2_SW5, CS1_SW5}, /* D9-K31-00 */ 21 {0, CS3_SW5, CS2_SW5, CS1_SW5}, /* D9-K31-00 */
22 {0, CS6_SW5, CS5_SW5, CS4_SW5}, /* D46-K00-01 */ 22 {0, CS6_SW5, CS5_SW5, CS4_SW5}, /* D46-K00-01 */
23 {0, CS6_SW9, CS5_SW9, CS4_SW9}, /* D59-K01-02 */ 23 {0, CS6_SW9, CS5_SW9, CS4_SW9}, /* D59-K01-02 */
diff --git a/keyboards/mechlovin/delphine/rgb_led/config.h b/keyboards/mechlovin/delphine/rgb_led/config.h
index 0d5bfb57f9..1782c4f497 100644
--- a/keyboards/mechlovin/delphine/rgb_led/config.h
+++ b/keyboards/mechlovin/delphine/rgb_led/config.h
@@ -31,7 +31,7 @@
31// 0b1110110 AD <-> SDA 31// 0b1110110 AD <-> SDA
32#define DRIVER_ADDR_1 0b1110110 32#define DRIVER_ADDR_1 0b1110110
33#define DRIVER_COUNT 1 33#define DRIVER_COUNT 1
34#define DRIVER_LED_TOTAL 25 34#define RGB_MATRIX_LED_COUNT 25
35#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 35#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
36#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 36#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
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
diff --git a/keyboards/mechlovin/delphine/rgb_led/rgb_led.c b/keyboards/mechlovin/delphine/rgb_led/rgb_led.c
index 413a9a06ea..448f7156fd 100644
--- a/keyboards/mechlovin/delphine/rgb_led/rgb_led.c
+++ b/keyboards/mechlovin/delphine/rgb_led/rgb_led.c
@@ -18,7 +18,7 @@
18 18
19 19
20#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22// left CA 22// left CA
23 {0, C5_2, C6_2, C7_2}, //D2-0 23 {0, C5_2, C6_2, C7_2}, //D2-0
24 {0, C1_1, C3_2, C4_2}, //D20-1 24 {0, C1_1, C3_2, C4_2}, //D20-1
diff --git a/keyboards/mechlovin/hannah60rgb/rev1/config.h b/keyboards/mechlovin/hannah60rgb/rev1/config.h
index 9a84e78588..cea9a5bc06 100644
--- a/keyboards/mechlovin/hannah60rgb/rev1/config.h
+++ b/keyboards/mechlovin/hannah60rgb/rev1/config.h
@@ -2,7 +2,7 @@
2 2
3#define RGB_DI_PIN A15 3#define RGB_DI_PIN A15
4#ifdef RGB_MATRIX_ENABLE 4#ifdef RGB_MATRIX_ENABLE
5# define DRIVER_LED_TOTAL 72 5# define RGB_MATRIX_LED_COUNT 72
6# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 6# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
7# define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 7# define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
8# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 8# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/mechlovin/hannah60rgb/rev2/config.h b/keyboards/mechlovin/hannah60rgb/rev2/config.h
index 3a25680a20..48caf0b40e 100644
--- a/keyboards/mechlovin/hannah60rgb/rev2/config.h
+++ b/keyboards/mechlovin/hannah60rgb/rev2/config.h
@@ -21,7 +21,7 @@
21#define DRIVER_COUNT 2 21#define DRIVER_COUNT 2
22#define DRIVER_1_LED_TOTAL 44 22#define DRIVER_1_LED_TOTAL 44
23#define DRIVER_2_LED_TOTAL 34 23#define DRIVER_2_LED_TOTAL 34
24#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 24#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
25#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 25#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
26#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 26#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
27#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 27#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/mechlovin/hannah60rgb/rev2/rev2.c b/keyboards/mechlovin/hannah60rgb/rev2/rev2.c
index ac371e4185..bb88a316ea 100644
--- a/keyboards/mechlovin/hannah60rgb/rev2/rev2.c
+++ b/keyboards/mechlovin/hannah60rgb/rev2/rev2.c
@@ -17,7 +17,7 @@
17#include "rev2.h" 17#include "rev2.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21/* Refer to IS31 manual for these locations 21/* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/mechlovin/infinity87/rgb_rev1/config.h b/keyboards/mechlovin/infinity87/rgb_rev1/config.h
index 3c2ffd4b9f..d173abe124 100644
--- a/keyboards/mechlovin/infinity87/rgb_rev1/config.h
+++ b/keyboards/mechlovin/infinity87/rgb_rev1/config.h
@@ -89,5 +89,5 @@
89//#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE 89//#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE
90#define DRIVER_ADDR_1 0b0110010 90#define DRIVER_ADDR_1 0b0110010
91#define DRIVER_COUNT 1 91#define DRIVER_COUNT 1
92#define DRIVER_LED_TOTAL 91 92#define RGB_MATRIX_LED_COUNT 91
93#define DRIVER_INDICATOR_LED_TOTAL 0 93#define DRIVER_INDICATOR_LED_TOTAL 0
diff --git a/keyboards/mechlovin/infinity87/rgb_rev1/rgb_rev1.c b/keyboards/mechlovin/infinity87/rgb_rev1/rgb_rev1.c
index 0ad5d41430..c1463cf4ca 100644
--- a/keyboards/mechlovin/infinity87/rgb_rev1/rgb_rev1.c
+++ b/keyboards/mechlovin/infinity87/rgb_rev1/rgb_rev1.c
@@ -17,7 +17,7 @@
17#include "rgb_rev1.h" 17#include "rgb_rev1.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 {0, CS34_SW1, CS35_SW1, CS36_SW1}, //D92-K00-0 21 {0, CS34_SW1, CS35_SW1, CS36_SW1}, //D92-K00-0
22 {0, CS37_SW1, CS38_SW1, CS39_SW1}, //D94-K01-1 22 {0, CS37_SW1, CS38_SW1, CS39_SW1}, //D94-K01-1
23 {0, CS31_SW1, CS32_SW1, CS33_SW1}, //D96-K02-2 23 {0, CS31_SW1, CS32_SW1, CS33_SW1}, //D96-K02-2
diff --git a/keyboards/mechlovin/infinity875/config.h b/keyboards/mechlovin/infinity875/config.h
index 4f02ed39c9..f86332fe08 100644
--- a/keyboards/mechlovin/infinity875/config.h
+++ b/keyboards/mechlovin/infinity875/config.h
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
45 45
46#ifdef RGB_MATRIX_ENABLE 46#ifdef RGB_MATRIX_ENABLE
47#define RGB_DI_PIN E2 47#define RGB_DI_PIN E2
48#define DRIVER_LED_TOTAL 42 48#define RGB_MATRIX_LED_COUNT 42
49#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 49#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
50#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 50#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
51#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) 51#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)
diff --git a/keyboards/mechlovin/infinity875/keymaps/default/rgb_matrix_user.inc b/keyboards/mechlovin/infinity875/keymaps/default/rgb_matrix_user.inc
index cee6a3f038..627d12bd3c 100644
--- a/keyboards/mechlovin/infinity875/keymaps/default/rgb_matrix_user.inc
+++ b/keyboards/mechlovin/infinity875/keymaps/default/rgb_matrix_user.inc
@@ -62,7 +62,7 @@ bool effect_runner_all(effect_params_t* params, i_f effect_func) {
62 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time)); 62 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time));
63 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 63 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
64 } 64 }
65 return led_max < DRIVER_LED_TOTAL; 65 return led_max < RGB_MATRIX_LED_COUNT;
66} 66}
67 67
68bool effect_runner_esc(effect_params_t* params, i_f effect_func) { 68bool effect_runner_esc(effect_params_t* params, i_f effect_func) {
@@ -77,7 +77,7 @@ bool effect_runner_esc(effect_params_t* params, i_f effect_func) {
77 for (uint8_t i = 1; i < 18; i++) { 77 for (uint8_t i = 1; i < 18; i++) {
78 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 78 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
79 } 79 }
80 return led_max < DRIVER_LED_TOTAL; 80 return led_max < RGB_MATRIX_LED_COUNT;
81} 81}
82 82
83bool effect_runner_f13(effect_params_t* params, i_f effect_func) { 83bool effect_runner_f13(effect_params_t* params, i_f effect_func) {
@@ -94,7 +94,7 @@ bool effect_runner_f13(effect_params_t* params, i_f effect_func) {
94 for (uint8_t i = 0; i < 14; i++) { 94 for (uint8_t i = 0; i < 14; i++) {
95 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 95 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
96 } 96 }
97 return led_max < DRIVER_LED_TOTAL; 97 return led_max < RGB_MATRIX_LED_COUNT;
98} 98}
99 99
100bool effect_runner_clus(effect_params_t* params, i_f effect_func) { 100bool effect_runner_clus(effect_params_t* params, i_f effect_func) {
@@ -109,7 +109,7 @@ bool effect_runner_clus(effect_params_t* params, i_f effect_func) {
109 for (uint8_t i = 0; i < 15; i++) { 109 for (uint8_t i = 0; i < 15; i++) {
110 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 110 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
111 } 111 }
112 return led_max < DRIVER_LED_TOTAL; 112 return led_max < RGB_MATRIX_LED_COUNT;
113} 113}
114 114
115bool effect_runner_dx_dy_all(effect_params_t* params, dx_dy_f effect_func) { 115bool effect_runner_dx_dy_all(effect_params_t* params, dx_dy_f effect_func) {
@@ -123,7 +123,7 @@ bool effect_runner_dx_dy_all(effect_params_t* params, dx_dy_f effect_func) {
123 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, dx, dy, time)); 123 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, dx, dy, time));
124 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 124 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
125 } 125 }
126 return led_max < DRIVER_LED_TOTAL; 126 return led_max < RGB_MATRIX_LED_COUNT;
127} 127}
128 128
129bool effect_runner_dx_dy_esc(effect_params_t* params, dx_dy_f effect_func) { 129bool effect_runner_dx_dy_esc(effect_params_t* params, dx_dy_f effect_func) {
@@ -140,7 +140,7 @@ bool effect_runner_dx_dy_esc(effect_params_t* params, dx_dy_f effect_func) {
140 for (uint8_t i = 1; i < 18; i++) { 140 for (uint8_t i = 1; i < 18; i++) {
141 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 141 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
142 } 142 }
143 return led_max < DRIVER_LED_TOTAL; 143 return led_max < RGB_MATRIX_LED_COUNT;
144} 144}
145 145
146bool effect_runner_dx_dy_f13(effect_params_t* params, dx_dy_f effect_func) { 146bool effect_runner_dx_dy_f13(effect_params_t* params, dx_dy_f effect_func) {
@@ -160,7 +160,7 @@ bool effect_runner_dx_dy_f13(effect_params_t* params, dx_dy_f effect_func) {
160 for (uint8_t i = 0; i < 14; i++) { 160 for (uint8_t i = 0; i < 14; i++) {
161 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 161 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
162 } 162 }
163 return led_max < DRIVER_LED_TOTAL; 163 return led_max < RGB_MATRIX_LED_COUNT;
164} 164}
165 165
166bool effect_runner_dx_dy_clus(effect_params_t* params, dx_dy_f effect_func) { 166bool effect_runner_dx_dy_clus(effect_params_t* params, dx_dy_f effect_func) {
@@ -177,7 +177,7 @@ bool effect_runner_dx_dy_clus(effect_params_t* params, dx_dy_f effect_func) {
177 for (uint8_t i = 0; i < 15; i++) { 177 for (uint8_t i = 0; i < 15; i++) {
178 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 178 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
179 } 179 }
180 return led_max < DRIVER_LED_TOTAL; 180 return led_max < RGB_MATRIX_LED_COUNT;
181} 181}
182 182
183bool effect_runner_sin_cos_all(effect_params_t* params, sin_cos_i_f effect_func) { 183bool effect_runner_sin_cos_all(effect_params_t* params, sin_cos_i_f effect_func) {
@@ -191,7 +191,7 @@ bool effect_runner_sin_cos_all(effect_params_t* params, sin_cos_i_f effect_func)
191 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, cos_value, sin_value, i, time)); 191 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, cos_value, sin_value, i, time));
192 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 192 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
193 } 193 }
194 return led_max < DRIVER_LED_TOTAL; 194 return led_max < RGB_MATRIX_LED_COUNT;
195} 195}
196 196
197bool effect_runner_sin_cos_esc(effect_params_t* params, sin_cos_i_f effect_func) { 197bool effect_runner_sin_cos_esc(effect_params_t* params, sin_cos_i_f effect_func) {
@@ -208,7 +208,7 @@ bool effect_runner_sin_cos_esc(effect_params_t* params, sin_cos_i_f effect_func)
208 for (uint8_t i = 1; i < 18; i++) { 208 for (uint8_t i = 1; i < 18; i++) {
209 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 209 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
210 } 210 }
211 return led_max < DRIVER_LED_TOTAL; 211 return led_max < RGB_MATRIX_LED_COUNT;
212} 212}
213 213
214bool effect_runner_sin_cos_f13(effect_params_t* params, sin_cos_i_f effect_func) { 214bool effect_runner_sin_cos_f13(effect_params_t* params, sin_cos_i_f effect_func) {
@@ -228,7 +228,7 @@ bool effect_runner_sin_cos_f13(effect_params_t* params, sin_cos_i_f effect_func)
228 for (uint8_t i = 0; i < 14; i++) { 228 for (uint8_t i = 0; i < 14; i++) {
229 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 229 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
230 } 230 }
231 return led_max < DRIVER_LED_TOTAL; 231 return led_max < RGB_MATRIX_LED_COUNT;
232} 232}
233 233
234bool effect_runner_sin_cos_clus(effect_params_t* params, sin_cos_i_f effect_func) { 234bool effect_runner_sin_cos_clus(effect_params_t* params, sin_cos_i_f effect_func) {
@@ -245,7 +245,7 @@ bool effect_runner_sin_cos_clus(effect_params_t* params, sin_cos_i_f effect_func
245 for (uint8_t i = 0; i < 15; i++) { 245 for (uint8_t i = 0; i < 15; i++) {
246 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 246 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
247 } 247 }
248 return led_max < DRIVER_LED_TOTAL; 248 return led_max < RGB_MATRIX_LED_COUNT;
249} 249}
250 250
251static void raindrops_set_color_all(int i, effect_params_t* params) { 251static void raindrops_set_color_all(int i, effect_params_t* params) {
@@ -375,7 +375,7 @@ static bool solid_esc(effect_params_t* params) {
375 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 375 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
376 rgb_matrix_set_color(0, rgb.r, rgb.g, rgb.b); 376 rgb_matrix_set_color(0, rgb.r, rgb.g, rgb.b);
377 } 377 }
378 return led_max < DRIVER_LED_TOTAL; 378 return led_max < RGB_MATRIX_LED_COUNT;
379} 379}
380 380
381// Solid F13 381// Solid F13
@@ -390,7 +390,7 @@ static bool solid_f13(effect_params_t* params) {
390 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 390 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
391 rgb_matrix_set_color(14, rgb.r, rgb.g, rgb.b); 391 rgb_matrix_set_color(14, rgb.r, rgb.g, rgb.b);
392 } 392 }
393 return led_max < DRIVER_LED_TOTAL; 393 return led_max < RGB_MATRIX_LED_COUNT;
394} 394}
395 395
396// Solid cluster 396// Solid cluster
@@ -404,7 +404,7 @@ static bool solid_clus(effect_params_t* params) {
404 for (uint8_t i = 15 ; i < led_max; i++) { 404 for (uint8_t i = 15 ; i < led_max; i++) {
405 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 405 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
406 } 406 }
407 return led_max < DRIVER_LED_TOTAL; 407 return led_max < RGB_MATRIX_LED_COUNT;
408} 408}
409 409
410// Breathing all 410// Breathing all
@@ -420,7 +420,7 @@ bool breathing_all(effect_params_t* params) {
420 RGB_MATRIX_TEST_LED_FLAGS(); 420 RGB_MATRIX_TEST_LED_FLAGS();
421 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 421 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
422 } 422 }
423 return led_max < DRIVER_LED_TOTAL; 423 return led_max < RGB_MATRIX_LED_COUNT;
424} 424}
425 425
426// Breathing ESC 426// Breathing ESC
@@ -439,7 +439,7 @@ static bool breathing_esc(effect_params_t* params) {
439 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 439 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
440 } 440 }
441 rgb_matrix_set_color(0, rgb.r, rgb.g, rgb.b); 441 rgb_matrix_set_color(0, rgb.r, rgb.g, rgb.b);
442 return led_max < DRIVER_LED_TOTAL; 442 return led_max < RGB_MATRIX_LED_COUNT;
443} 443}
444 444
445// Breathing F13 445// Breathing F13
@@ -458,7 +458,7 @@ static bool breathing_f13(effect_params_t* params) {
458 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 458 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
459 } 459 }
460 rgb_matrix_set_color(14, rgb.r, rgb.g, rgb.b); 460 rgb_matrix_set_color(14, rgb.r, rgb.g, rgb.b);
461 return led_max < DRIVER_LED_TOTAL; 461 return led_max < RGB_MATRIX_LED_COUNT;
462} 462}
463 463
464// Breathing cluster 464// Breathing cluster
@@ -476,7 +476,7 @@ static bool breathing_clus(effect_params_t* params) {
476 RGB_MATRIX_TEST_LED_FLAGS(); 476 RGB_MATRIX_TEST_LED_FLAGS();
477 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 477 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
478 } 478 }
479 return led_max < DRIVER_LED_TOTAL; 479 return led_max < RGB_MATRIX_LED_COUNT;
480} 480}
481 481
482// Band Val all 482// Band Val all
@@ -698,7 +698,7 @@ static bool raindrops_all(effect_params_t* params) {
698 if (!params->init) { 698 if (!params->init) {
699 // Change one LED every tick, make sure speed is not 0 699 // Change one LED every tick, make sure speed is not 0
700 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) { 700 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) {
701 raindrops_set_color_all(rand() % DRIVER_LED_TOTAL, params); 701 raindrops_set_color_all(rand() % RGB_MATRIX_LED_COUNT, params);
702 } 702 }
703 return false; 703 return false;
704 } 704 }
@@ -707,7 +707,7 @@ static bool raindrops_all(effect_params_t* params) {
707 for (int i = led_min; i < led_max; i++) { 707 for (int i = led_min; i < led_max; i++) {
708 raindrops_set_color_all(i, params); 708 raindrops_set_color_all(i, params);
709 } 709 }
710 return led_max < DRIVER_LED_TOTAL; 710 return led_max < RGB_MATRIX_LED_COUNT;
711} 711}
712 712
713// Raindrops ESC 713// Raindrops ESC
@@ -715,7 +715,7 @@ static bool raindrops_esc(effect_params_t* params) {
715 if (!params->init) { 715 if (!params->init) {
716 // Change one LED every tick, make sure speed is not 0 716 // Change one LED every tick, make sure speed is not 0
717 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) { 717 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) {
718 raindrops_set_color_esc(rand() % DRIVER_LED_TOTAL, params); 718 raindrops_set_color_esc(rand() % RGB_MATRIX_LED_COUNT, params);
719 } 719 }
720 return false; 720 return false;
721 } 721 }
@@ -724,7 +724,7 @@ static bool raindrops_esc(effect_params_t* params) {
724 for (int i = led_min; i < led_max; i++) { 724 for (int i = led_min; i < led_max; i++) {
725 raindrops_set_color_esc(i, params); 725 raindrops_set_color_esc(i, params);
726 } 726 }
727 return led_max < DRIVER_LED_TOTAL; 727 return led_max < RGB_MATRIX_LED_COUNT;
728} 728}
729 729
730// Raindrops F13 730// Raindrops F13
@@ -732,7 +732,7 @@ static bool raindrops_f13(effect_params_t* params) {
732 if (!params->init) { 732 if (!params->init) {
733 // Change one LED every tick, make sure speed is not 0 733 // Change one LED every tick, make sure speed is not 0
734 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) { 734 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) {
735 raindrops_set_color_f13(rand() % DRIVER_LED_TOTAL, params); 735 raindrops_set_color_f13(rand() % RGB_MATRIX_LED_COUNT, params);
736 } 736 }
737 return false; 737 return false;
738 } 738 }
@@ -741,7 +741,7 @@ static bool raindrops_f13(effect_params_t* params) {
741 for (int i = led_min; i < led_max; i++) { 741 for (int i = led_min; i < led_max; i++) {
742 raindrops_set_color_f13(i, params); 742 raindrops_set_color_f13(i, params);
743 } 743 }
744 return led_max < DRIVER_LED_TOTAL; 744 return led_max < RGB_MATRIX_LED_COUNT;
745} 745}
746 746
747// Raindrops Cluster 747// Raindrops Cluster
@@ -749,7 +749,7 @@ static bool raindrops_clus(effect_params_t* params) {
749 if (!params->init) { 749 if (!params->init) {
750 // Change one LED every tick, make sure speed is not 0 750 // Change one LED every tick, make sure speed is not 0
751 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) { 751 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) {
752 raindrops_set_color_clus(rand() % DRIVER_LED_TOTAL, params); 752 raindrops_set_color_clus(rand() % RGB_MATRIX_LED_COUNT, params);
753 } 753 }
754 return false; 754 return false;
755 } 755 }
@@ -758,7 +758,7 @@ static bool raindrops_clus(effect_params_t* params) {
758 for (int i = led_min; i < led_max; i++) { 758 for (int i = led_min; i < led_max; i++) {
759 raindrops_set_color_clus(i, params); 759 raindrops_set_color_clus(i, params);
760 } 760 }
761 return led_max < DRIVER_LED_TOTAL; 761 return led_max < RGB_MATRIX_LED_COUNT;
762} 762}
763 763
764#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS 764#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
diff --git a/keyboards/mechlovin/infinity875/keymaps/via/rgb_matrix_user.inc b/keyboards/mechlovin/infinity875/keymaps/via/rgb_matrix_user.inc
index cee6a3f038..627d12bd3c 100644
--- a/keyboards/mechlovin/infinity875/keymaps/via/rgb_matrix_user.inc
+++ b/keyboards/mechlovin/infinity875/keymaps/via/rgb_matrix_user.inc
@@ -62,7 +62,7 @@ bool effect_runner_all(effect_params_t* params, i_f effect_func) {
62 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time)); 62 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, i, time));
63 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 63 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
64 } 64 }
65 return led_max < DRIVER_LED_TOTAL; 65 return led_max < RGB_MATRIX_LED_COUNT;
66} 66}
67 67
68bool effect_runner_esc(effect_params_t* params, i_f effect_func) { 68bool effect_runner_esc(effect_params_t* params, i_f effect_func) {
@@ -77,7 +77,7 @@ bool effect_runner_esc(effect_params_t* params, i_f effect_func) {
77 for (uint8_t i = 1; i < 18; i++) { 77 for (uint8_t i = 1; i < 18; i++) {
78 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 78 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
79 } 79 }
80 return led_max < DRIVER_LED_TOTAL; 80 return led_max < RGB_MATRIX_LED_COUNT;
81} 81}
82 82
83bool effect_runner_f13(effect_params_t* params, i_f effect_func) { 83bool effect_runner_f13(effect_params_t* params, i_f effect_func) {
@@ -94,7 +94,7 @@ bool effect_runner_f13(effect_params_t* params, i_f effect_func) {
94 for (uint8_t i = 0; i < 14; i++) { 94 for (uint8_t i = 0; i < 14; i++) {
95 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 95 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
96 } 96 }
97 return led_max < DRIVER_LED_TOTAL; 97 return led_max < RGB_MATRIX_LED_COUNT;
98} 98}
99 99
100bool effect_runner_clus(effect_params_t* params, i_f effect_func) { 100bool effect_runner_clus(effect_params_t* params, i_f effect_func) {
@@ -109,7 +109,7 @@ bool effect_runner_clus(effect_params_t* params, i_f effect_func) {
109 for (uint8_t i = 0; i < 15; i++) { 109 for (uint8_t i = 0; i < 15; i++) {
110 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 110 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
111 } 111 }
112 return led_max < DRIVER_LED_TOTAL; 112 return led_max < RGB_MATRIX_LED_COUNT;
113} 113}
114 114
115bool effect_runner_dx_dy_all(effect_params_t* params, dx_dy_f effect_func) { 115bool effect_runner_dx_dy_all(effect_params_t* params, dx_dy_f effect_func) {
@@ -123,7 +123,7 @@ bool effect_runner_dx_dy_all(effect_params_t* params, dx_dy_f effect_func) {
123 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, dx, dy, time)); 123 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, dx, dy, time));
124 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 124 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
125 } 125 }
126 return led_max < DRIVER_LED_TOTAL; 126 return led_max < RGB_MATRIX_LED_COUNT;
127} 127}
128 128
129bool effect_runner_dx_dy_esc(effect_params_t* params, dx_dy_f effect_func) { 129bool effect_runner_dx_dy_esc(effect_params_t* params, dx_dy_f effect_func) {
@@ -140,7 +140,7 @@ bool effect_runner_dx_dy_esc(effect_params_t* params, dx_dy_f effect_func) {
140 for (uint8_t i = 1; i < 18; i++) { 140 for (uint8_t i = 1; i < 18; i++) {
141 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 141 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
142 } 142 }
143 return led_max < DRIVER_LED_TOTAL; 143 return led_max < RGB_MATRIX_LED_COUNT;
144} 144}
145 145
146bool effect_runner_dx_dy_f13(effect_params_t* params, dx_dy_f effect_func) { 146bool effect_runner_dx_dy_f13(effect_params_t* params, dx_dy_f effect_func) {
@@ -160,7 +160,7 @@ bool effect_runner_dx_dy_f13(effect_params_t* params, dx_dy_f effect_func) {
160 for (uint8_t i = 0; i < 14; i++) { 160 for (uint8_t i = 0; i < 14; i++) {
161 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 161 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
162 } 162 }
163 return led_max < DRIVER_LED_TOTAL; 163 return led_max < RGB_MATRIX_LED_COUNT;
164} 164}
165 165
166bool effect_runner_dx_dy_clus(effect_params_t* params, dx_dy_f effect_func) { 166bool effect_runner_dx_dy_clus(effect_params_t* params, dx_dy_f effect_func) {
@@ -177,7 +177,7 @@ bool effect_runner_dx_dy_clus(effect_params_t* params, dx_dy_f effect_func) {
177 for (uint8_t i = 0; i < 15; i++) { 177 for (uint8_t i = 0; i < 15; i++) {
178 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 178 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
179 } 179 }
180 return led_max < DRIVER_LED_TOTAL; 180 return led_max < RGB_MATRIX_LED_COUNT;
181} 181}
182 182
183bool effect_runner_sin_cos_all(effect_params_t* params, sin_cos_i_f effect_func) { 183bool effect_runner_sin_cos_all(effect_params_t* params, sin_cos_i_f effect_func) {
@@ -191,7 +191,7 @@ bool effect_runner_sin_cos_all(effect_params_t* params, sin_cos_i_f effect_func)
191 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, cos_value, sin_value, i, time)); 191 RGB rgb = rgb_matrix_hsv_to_rgb(effect_func(rgb_matrix_config.hsv, cos_value, sin_value, i, time));
192 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 192 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
193 } 193 }
194 return led_max < DRIVER_LED_TOTAL; 194 return led_max < RGB_MATRIX_LED_COUNT;
195} 195}
196 196
197bool effect_runner_sin_cos_esc(effect_params_t* params, sin_cos_i_f effect_func) { 197bool effect_runner_sin_cos_esc(effect_params_t* params, sin_cos_i_f effect_func) {
@@ -208,7 +208,7 @@ bool effect_runner_sin_cos_esc(effect_params_t* params, sin_cos_i_f effect_func)
208 for (uint8_t i = 1; i < 18; i++) { 208 for (uint8_t i = 1; i < 18; i++) {
209 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 209 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
210 } 210 }
211 return led_max < DRIVER_LED_TOTAL; 211 return led_max < RGB_MATRIX_LED_COUNT;
212} 212}
213 213
214bool effect_runner_sin_cos_f13(effect_params_t* params, sin_cos_i_f effect_func) { 214bool effect_runner_sin_cos_f13(effect_params_t* params, sin_cos_i_f effect_func) {
@@ -228,7 +228,7 @@ bool effect_runner_sin_cos_f13(effect_params_t* params, sin_cos_i_f effect_func)
228 for (uint8_t i = 0; i < 14; i++) { 228 for (uint8_t i = 0; i < 14; i++) {
229 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 229 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
230 } 230 }
231 return led_max < DRIVER_LED_TOTAL; 231 return led_max < RGB_MATRIX_LED_COUNT;
232} 232}
233 233
234bool effect_runner_sin_cos_clus(effect_params_t* params, sin_cos_i_f effect_func) { 234bool effect_runner_sin_cos_clus(effect_params_t* params, sin_cos_i_f effect_func) {
@@ -245,7 +245,7 @@ bool effect_runner_sin_cos_clus(effect_params_t* params, sin_cos_i_f effect_func
245 for (uint8_t i = 0; i < 15; i++) { 245 for (uint8_t i = 0; i < 15; i++) {
246 rgb_matrix_set_color(i, 0x00, 0x00, 0x00); 246 rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
247 } 247 }
248 return led_max < DRIVER_LED_TOTAL; 248 return led_max < RGB_MATRIX_LED_COUNT;
249} 249}
250 250
251static void raindrops_set_color_all(int i, effect_params_t* params) { 251static void raindrops_set_color_all(int i, effect_params_t* params) {
@@ -375,7 +375,7 @@ static bool solid_esc(effect_params_t* params) {
375 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 375 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
376 rgb_matrix_set_color(0, rgb.r, rgb.g, rgb.b); 376 rgb_matrix_set_color(0, rgb.r, rgb.g, rgb.b);
377 } 377 }
378 return led_max < DRIVER_LED_TOTAL; 378 return led_max < RGB_MATRIX_LED_COUNT;
379} 379}
380 380
381// Solid F13 381// Solid F13
@@ -390,7 +390,7 @@ static bool solid_f13(effect_params_t* params) {
390 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 390 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
391 rgb_matrix_set_color(14, rgb.r, rgb.g, rgb.b); 391 rgb_matrix_set_color(14, rgb.r, rgb.g, rgb.b);
392 } 392 }
393 return led_max < DRIVER_LED_TOTAL; 393 return led_max < RGB_MATRIX_LED_COUNT;
394} 394}
395 395
396// Solid cluster 396// Solid cluster
@@ -404,7 +404,7 @@ static bool solid_clus(effect_params_t* params) {
404 for (uint8_t i = 15 ; i < led_max; i++) { 404 for (uint8_t i = 15 ; i < led_max; i++) {
405 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 405 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
406 } 406 }
407 return led_max < DRIVER_LED_TOTAL; 407 return led_max < RGB_MATRIX_LED_COUNT;
408} 408}
409 409
410// Breathing all 410// Breathing all
@@ -420,7 +420,7 @@ bool breathing_all(effect_params_t* params) {
420 RGB_MATRIX_TEST_LED_FLAGS(); 420 RGB_MATRIX_TEST_LED_FLAGS();
421 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 421 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
422 } 422 }
423 return led_max < DRIVER_LED_TOTAL; 423 return led_max < RGB_MATRIX_LED_COUNT;
424} 424}
425 425
426// Breathing ESC 426// Breathing ESC
@@ -439,7 +439,7 @@ static bool breathing_esc(effect_params_t* params) {
439 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 439 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
440 } 440 }
441 rgb_matrix_set_color(0, rgb.r, rgb.g, rgb.b); 441 rgb_matrix_set_color(0, rgb.r, rgb.g, rgb.b);
442 return led_max < DRIVER_LED_TOTAL; 442 return led_max < RGB_MATRIX_LED_COUNT;
443} 443}
444 444
445// Breathing F13 445// Breathing F13
@@ -458,7 +458,7 @@ static bool breathing_f13(effect_params_t* params) {
458 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 458 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
459 } 459 }
460 rgb_matrix_set_color(14, rgb.r, rgb.g, rgb.b); 460 rgb_matrix_set_color(14, rgb.r, rgb.g, rgb.b);
461 return led_max < DRIVER_LED_TOTAL; 461 return led_max < RGB_MATRIX_LED_COUNT;
462} 462}
463 463
464// Breathing cluster 464// Breathing cluster
@@ -476,7 +476,7 @@ static bool breathing_clus(effect_params_t* params) {
476 RGB_MATRIX_TEST_LED_FLAGS(); 476 RGB_MATRIX_TEST_LED_FLAGS();
477 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 477 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
478 } 478 }
479 return led_max < DRIVER_LED_TOTAL; 479 return led_max < RGB_MATRIX_LED_COUNT;
480} 480}
481 481
482// Band Val all 482// Band Val all
@@ -698,7 +698,7 @@ static bool raindrops_all(effect_params_t* params) {
698 if (!params->init) { 698 if (!params->init) {
699 // Change one LED every tick, make sure speed is not 0 699 // Change one LED every tick, make sure speed is not 0
700 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) { 700 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) {
701 raindrops_set_color_all(rand() % DRIVER_LED_TOTAL, params); 701 raindrops_set_color_all(rand() % RGB_MATRIX_LED_COUNT, params);
702 } 702 }
703 return false; 703 return false;
704 } 704 }
@@ -707,7 +707,7 @@ static bool raindrops_all(effect_params_t* params) {
707 for (int i = led_min; i < led_max; i++) { 707 for (int i = led_min; i < led_max; i++) {
708 raindrops_set_color_all(i, params); 708 raindrops_set_color_all(i, params);
709 } 709 }
710 return led_max < DRIVER_LED_TOTAL; 710 return led_max < RGB_MATRIX_LED_COUNT;
711} 711}
712 712
713// Raindrops ESC 713// Raindrops ESC
@@ -715,7 +715,7 @@ static bool raindrops_esc(effect_params_t* params) {
715 if (!params->init) { 715 if (!params->init) {
716 // Change one LED every tick, make sure speed is not 0 716 // Change one LED every tick, make sure speed is not 0
717 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) { 717 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) {
718 raindrops_set_color_esc(rand() % DRIVER_LED_TOTAL, params); 718 raindrops_set_color_esc(rand() % RGB_MATRIX_LED_COUNT, params);
719 } 719 }
720 return false; 720 return false;
721 } 721 }
@@ -724,7 +724,7 @@ static bool raindrops_esc(effect_params_t* params) {
724 for (int i = led_min; i < led_max; i++) { 724 for (int i = led_min; i < led_max; i++) {
725 raindrops_set_color_esc(i, params); 725 raindrops_set_color_esc(i, params);
726 } 726 }
727 return led_max < DRIVER_LED_TOTAL; 727 return led_max < RGB_MATRIX_LED_COUNT;
728} 728}
729 729
730// Raindrops F13 730// Raindrops F13
@@ -732,7 +732,7 @@ static bool raindrops_f13(effect_params_t* params) {
732 if (!params->init) { 732 if (!params->init) {
733 // Change one LED every tick, make sure speed is not 0 733 // Change one LED every tick, make sure speed is not 0
734 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) { 734 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) {
735 raindrops_set_color_f13(rand() % DRIVER_LED_TOTAL, params); 735 raindrops_set_color_f13(rand() % RGB_MATRIX_LED_COUNT, params);
736 } 736 }
737 return false; 737 return false;
738 } 738 }
@@ -741,7 +741,7 @@ static bool raindrops_f13(effect_params_t* params) {
741 for (int i = led_min; i < led_max; i++) { 741 for (int i = led_min; i < led_max; i++) {
742 raindrops_set_color_f13(i, params); 742 raindrops_set_color_f13(i, params);
743 } 743 }
744 return led_max < DRIVER_LED_TOTAL; 744 return led_max < RGB_MATRIX_LED_COUNT;
745} 745}
746 746
747// Raindrops Cluster 747// Raindrops Cluster
@@ -749,7 +749,7 @@ static bool raindrops_clus(effect_params_t* params) {
749 if (!params->init) { 749 if (!params->init) {
750 // Change one LED every tick, make sure speed is not 0 750 // Change one LED every tick, make sure speed is not 0
751 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) { 751 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) {
752 raindrops_set_color_clus(rand() % DRIVER_LED_TOTAL, params); 752 raindrops_set_color_clus(rand() % RGB_MATRIX_LED_COUNT, params);
753 } 753 }
754 return false; 754 return false;
755 } 755 }
@@ -758,7 +758,7 @@ static bool raindrops_clus(effect_params_t* params) {
758 for (int i = led_min; i < led_max; i++) { 758 for (int i = led_min; i < led_max; i++) {
759 raindrops_set_color_clus(i, params); 759 raindrops_set_color_clus(i, params);
760 } 760 }
761 return led_max < DRIVER_LED_TOTAL; 761 return led_max < RGB_MATRIX_LED_COUNT;
762} 762}
763 763
764#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS 764#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
diff --git a/keyboards/melgeek/mach80/rev1/config.h b/keyboards/melgeek/mach80/rev1/config.h
index 7d941ba1e3..62af5154e6 100755
--- a/keyboards/melgeek/mach80/rev1/config.h
+++ b/keyboards/melgeek/mach80/rev1/config.h
@@ -33,7 +33,7 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION ROW2COL 34#define DIODE_DIRECTION ROW2COL
35 35
36#define DRIVER_LED_TOTAL 97 36#define RGB_MATRIX_LED_COUNT 97
37#define DRIVER_INDICATOR_LED_TOTAL 3 37#define DRIVER_INDICATOR_LED_TOTAL 3
38 38
39 39
diff --git a/keyboards/melgeek/mach80/rev1/rev1.c b/keyboards/melgeek/mach80/rev1/rev1.c
index 4d11d3f711..468fc1f698 100755
--- a/keyboards/melgeek/mach80/rev1/rev1.c
+++ b/keyboards/melgeek/mach80/rev1/rev1.c
@@ -19,7 +19,7 @@
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21 21
22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */ 24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */
25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */ 25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/mach80/rev2/config.h b/keyboards/melgeek/mach80/rev2/config.h
index b08ec05100..b42d96691a 100755
--- a/keyboards/melgeek/mach80/rev2/config.h
+++ b/keyboards/melgeek/mach80/rev2/config.h
@@ -33,7 +33,7 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION ROW2COL 34#define DIODE_DIRECTION ROW2COL
35 35
36#define DRIVER_LED_TOTAL 94 36#define RGB_MATRIX_LED_COUNT 94
37#define DRIVER_INDICATOR_LED_TOTAL 3 37#define DRIVER_INDICATOR_LED_TOTAL 3
38 38
39 39
diff --git a/keyboards/melgeek/mach80/rev2/rev2.c b/keyboards/melgeek/mach80/rev2/rev2.c
index 09250b1565..e817ef70a6 100755
--- a/keyboards/melgeek/mach80/rev2/rev2.c
+++ b/keyboards/melgeek/mach80/rev2/rev2.c
@@ -19,7 +19,7 @@
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21 21
22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */ 24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */
25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */ 25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/mj61/rev1/config.h b/keyboards/melgeek/mj61/rev1/config.h
index bba46db2dd..c3f72d006a 100644
--- a/keyboards/melgeek/mj61/rev1/config.h
+++ b/keyboards/melgeek/mj61/rev1/config.h
@@ -33,5 +33,5 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 63 36#define RGB_MATRIX_LED_COUNT 63
37#define DRIVER_INDICATOR_LED_TOTAL 0 37#define DRIVER_INDICATOR_LED_TOTAL 0
diff --git a/keyboards/melgeek/mj61/rev1/rev1.c b/keyboards/melgeek/mj61/rev1/rev1.c
index 9d8de36d88..9c24335f82 100644
--- a/keyboards/melgeek/mj61/rev1/rev1.c
+++ b/keyboards/melgeek/mj61/rev1/rev1.c
@@ -17,7 +17,7 @@
17#include "mj61.h" 17#include "mj61.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 {0, CS12_SW1, CS11_SW1, CS10_SW1}, /* RGB1 */ 21 {0, CS12_SW1, CS11_SW1, CS10_SW1}, /* RGB1 */
22 {0, CS12_SW2, CS11_SW2, CS10_SW2}, /* RGB2 */ 22 {0, CS12_SW2, CS11_SW2, CS10_SW2}, /* RGB2 */
23 {0, CS12_SW3, CS11_SW3, CS10_SW3}, /* RGB3 */ 23 {0, CS12_SW3, CS11_SW3, CS10_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/mj61/rev2/config.h b/keyboards/melgeek/mj61/rev2/config.h
index e17f291934..422d4847e4 100644
--- a/keyboards/melgeek/mj61/rev2/config.h
+++ b/keyboards/melgeek/mj61/rev2/config.h
@@ -33,5 +33,5 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 71 36#define RGB_MATRIX_LED_COUNT 71
37#define DRIVER_INDICATOR_LED_TOTAL 0 37#define DRIVER_INDICATOR_LED_TOTAL 0
diff --git a/keyboards/melgeek/mj61/rev2/rev2.c b/keyboards/melgeek/mj61/rev2/rev2.c
index b46cf08c4e..61588958dc 100644
--- a/keyboards/melgeek/mj61/rev2/rev2.c
+++ b/keyboards/melgeek/mj61/rev2/rev2.c
@@ -19,7 +19,7 @@
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21 21
22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB3 */ 24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB3 */
25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB4 */ 25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB4 */
diff --git a/keyboards/melgeek/mj63/rev1/config.h b/keyboards/melgeek/mj63/rev1/config.h
index ef8c7872d6..31c4e0f148 100644
--- a/keyboards/melgeek/mj63/rev1/config.h
+++ b/keyboards/melgeek/mj63/rev1/config.h
@@ -33,5 +33,5 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 65 36#define RGB_MATRIX_LED_COUNT 65
37#define DRIVER_INDICATOR_LED_TOTAL 0 37#define DRIVER_INDICATOR_LED_TOTAL 0
diff --git a/keyboards/melgeek/mj63/rev1/rev1.c b/keyboards/melgeek/mj63/rev1/rev1.c
index 45abafd84d..e69d4b2e06 100644
--- a/keyboards/melgeek/mj63/rev1/rev1.c
+++ b/keyboards/melgeek/mj63/rev1/rev1.c
@@ -19,7 +19,7 @@
19 19
20#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
21 21
22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */ 24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */
25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */ 25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/mj63/rev2/config.h b/keyboards/melgeek/mj63/rev2/config.h
index e17f291934..422d4847e4 100644
--- a/keyboards/melgeek/mj63/rev2/config.h
+++ b/keyboards/melgeek/mj63/rev2/config.h
@@ -33,5 +33,5 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 71 36#define RGB_MATRIX_LED_COUNT 71
37#define DRIVER_INDICATOR_LED_TOTAL 0 37#define DRIVER_INDICATOR_LED_TOTAL 0
diff --git a/keyboards/melgeek/mj63/rev2/rev2.c b/keyboards/melgeek/mj63/rev2/rev2.c
index b21c4f960c..c2398865ce 100644
--- a/keyboards/melgeek/mj63/rev2/rev2.c
+++ b/keyboards/melgeek/mj63/rev2/rev2.c
@@ -19,7 +19,7 @@
19 19
20#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
21 21
22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB3 */ 24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB3 */
25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB4 */ 25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB4 */
diff --git a/keyboards/melgeek/mj64/rev1/config.h b/keyboards/melgeek/mj64/rev1/config.h
index 713c051a09..a0048f6912 100644
--- a/keyboards/melgeek/mj64/rev1/config.h
+++ b/keyboards/melgeek/mj64/rev1/config.h
@@ -33,5 +33,5 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 66 36#define RGB_MATRIX_LED_COUNT 66
37#define DRIVER_INDICATOR_LED_TOTAL 0 37#define DRIVER_INDICATOR_LED_TOTAL 0
diff --git a/keyboards/melgeek/mj64/rev1/rev1.c b/keyboards/melgeek/mj64/rev1/rev1.c
index 3279e7a1fe..5bfbe73e2f 100644
--- a/keyboards/melgeek/mj64/rev1/rev1.c
+++ b/keyboards/melgeek/mj64/rev1/rev1.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */ 23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */
24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */ 24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/mj64/rev2/config.h b/keyboards/melgeek/mj64/rev2/config.h
index 713c051a09..a0048f6912 100644
--- a/keyboards/melgeek/mj64/rev2/config.h
+++ b/keyboards/melgeek/mj64/rev2/config.h
@@ -33,5 +33,5 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 66 36#define RGB_MATRIX_LED_COUNT 66
37#define DRIVER_INDICATOR_LED_TOTAL 0 37#define DRIVER_INDICATOR_LED_TOTAL 0
diff --git a/keyboards/melgeek/mj64/rev2/rev2.c b/keyboards/melgeek/mj64/rev2/rev2.c
index b0653f9e71..bf408489a0 100644
--- a/keyboards/melgeek/mj64/rev2/rev2.c
+++ b/keyboards/melgeek/mj64/rev2/rev2.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */ 23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */
24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */ 24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/mj64/rev3/config.h b/keyboards/melgeek/mj64/rev3/config.h
index ff467af7d6..bcb2110b60 100644
--- a/keyboards/melgeek/mj64/rev3/config.h
+++ b/keyboards/melgeek/mj64/rev3/config.h
@@ -33,5 +33,5 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 72 36#define RGB_MATRIX_LED_COUNT 72
37#define DRIVER_INDICATOR_LED_TOTAL 0 37#define DRIVER_INDICATOR_LED_TOTAL 0
diff --git a/keyboards/melgeek/mj64/rev3/rev3.c b/keyboards/melgeek/mj64/rev3/rev3.c
index b67dbee75b..5bf5725110 100644
--- a/keyboards/melgeek/mj64/rev3/rev3.c
+++ b/keyboards/melgeek/mj64/rev3/rev3.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB3 */ 23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB3 */
24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB4 */ 24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB4 */
diff --git a/keyboards/melgeek/mj65/rev3/config.h b/keyboards/melgeek/mj65/rev3/config.h
index 5274508744..24ed74f4b6 100644
--- a/keyboards/melgeek/mj65/rev3/config.h
+++ b/keyboards/melgeek/mj65/rev3/config.h
@@ -33,5 +33,5 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 76 36#define RGB_MATRIX_LED_COUNT 76
37#define DRIVER_INDICATOR_LED_TOTAL 0 37#define DRIVER_INDICATOR_LED_TOTAL 0
diff --git a/keyboards/melgeek/mj65/rev3/rev3.c b/keyboards/melgeek/mj65/rev3/rev3.c
index f02c29e747..6719a03b0f 100644
--- a/keyboards/melgeek/mj65/rev3/rev3.c
+++ b/keyboards/melgeek/mj65/rev3/rev3.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */ 23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */
24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */ 24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/mojo68/rev1/config.h b/keyboards/melgeek/mojo68/rev1/config.h
index de50fb8b1e..7cb916e4fb 100755
--- a/keyboards/melgeek/mojo68/rev1/config.h
+++ b/keyboards/melgeek/mojo68/rev1/config.h
@@ -33,5 +33,5 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 68 36#define RGB_MATRIX_LED_COUNT 68
37#define DRIVER_INDICATOR_LED_TOTAL 3 37#define DRIVER_INDICATOR_LED_TOTAL 3
diff --git a/keyboards/melgeek/mojo68/rev1/rev1.c b/keyboards/melgeek/mojo68/rev1/rev1.c
index 27c9212ac6..17c235820b 100755
--- a/keyboards/melgeek/mojo68/rev1/rev1.c
+++ b/keyboards/melgeek/mojo68/rev1/rev1.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 22 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */ 23 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */
24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */ 24 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/mojo75/rev1/config.h b/keyboards/melgeek/mojo75/rev1/config.h
index f51798a308..6bbda5752a 100644
--- a/keyboards/melgeek/mojo75/rev1/config.h
+++ b/keyboards/melgeek/mojo75/rev1/config.h
@@ -33,6 +33,6 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 92 36#define RGB_MATRIX_LED_COUNT 92
37#define DRIVER_INDICATOR_LED_TOTAL 0 37#define DRIVER_INDICATOR_LED_TOTAL 0
38 38
diff --git a/keyboards/melgeek/mojo75/rev1/rev1.c b/keyboards/melgeek/mojo75/rev1/rev1.c
index ae103801e2..b73e101f1e 100644
--- a/keyboards/melgeek/mojo75/rev1/rev1.c
+++ b/keyboards/melgeek/mojo75/rev1/rev1.c
@@ -18,7 +18,7 @@
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS6_SW1, CS5_SW1, CS4_SW1}, /* RGB1 */ 22 {0, CS6_SW1, CS5_SW1, CS4_SW1}, /* RGB1 */
23 {0, CS6_SW2, CS5_SW2, CS4_SW2}, /* RGB2 */ 23 {0, CS6_SW2, CS5_SW2, CS4_SW2}, /* RGB2 */
24 {0, CS6_SW3, CS5_SW3, CS4_SW3}, /* RGB3 */ 24 {0, CS6_SW3, CS5_SW3, CS4_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/tegic/rev1/config.h b/keyboards/melgeek/tegic/rev1/config.h
index 49d4550be9..e1d22a6384 100755
--- a/keyboards/melgeek/tegic/rev1/config.h
+++ b/keyboards/melgeek/tegic/rev1/config.h
@@ -33,7 +33,7 @@
33/* COL2ROW, ROW2COL*/ 33/* COL2ROW, ROW2COL*/
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
35 35
36#define DRIVER_LED_TOTAL 91 36#define RGB_MATRIX_LED_COUNT 91
37//#define DRIVER_INDICATOR_LED_TOTAL 3 37//#define DRIVER_INDICATOR_LED_TOTAL 3
38 38
39 39
diff --git a/keyboards/melgeek/tegic/rev1/rev1.c b/keyboards/melgeek/tegic/rev1/rev1.c
index e3ede57b33..04e490794c 100755
--- a/keyboards/melgeek/tegic/rev1/rev1.c
+++ b/keyboards/melgeek/tegic/rev1/rev1.c
@@ -19,7 +19,7 @@
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20 20
21 21
22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */ 23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB1 */
24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */ 24 {0, CS9_SW2, CS8_SW2, CS7_SW2}, /* RGB2 */
25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */ 25 {0, CS9_SW3, CS8_SW3, CS7_SW3}, /* RGB3 */
diff --git a/keyboards/melgeek/z70ultra/config.h b/keyboards/melgeek/z70ultra/config.h
index 2b5f6e5955..e90c780a72 100644
--- a/keyboards/melgeek/z70ultra/config.h
+++ b/keyboards/melgeek/z70ultra/config.h
@@ -81,5 +81,5 @@
81#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL 81#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
82#define DRIVER_ADDR_1 0b0110000 82#define DRIVER_ADDR_1 0b0110000
83#define DRIVER_COUNT 1 83#define DRIVER_COUNT 1
84#define DRIVER_LED_TOTAL 69 84#define RGB_MATRIX_LED_COUNT 69
85#define DRIVER_INDICATOR_LED_TOTAL 6 85#define DRIVER_INDICATOR_LED_TOTAL 6
diff --git a/keyboards/melgeek/z70ultra/z70ultra.c b/keyboards/melgeek/z70ultra/z70ultra.c
index 6be690c01e..9ade47d43e 100644
--- a/keyboards/melgeek/z70ultra/z70ultra.c
+++ b/keyboards/melgeek/z70ultra/z70ultra.c
@@ -18,7 +18,7 @@
18 18
19 19
20#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS28_SW1, CS30_SW1, CS29_SW1}, /* RGB10 */ 22 {0, CS28_SW1, CS30_SW1, CS29_SW1}, /* RGB10 */
23 {0, CS28_SW2, CS30_SW2, CS29_SW2}, /* RGB11 */ 23 {0, CS28_SW2, CS30_SW2, CS29_SW2}, /* RGB11 */
24 {0, CS28_SW3, CS30_SW3, CS29_SW3}, /* RGB12 */ 24 {0, CS28_SW3, CS30_SW3, CS29_SW3}, /* RGB12 */
diff --git a/keyboards/merge/um70/config.h b/keyboards/merge/um70/config.h
index b22bd3fb10..19f3bba97f 100644
--- a/keyboards/merge/um70/config.h
+++ b/keyboards/merge/um70/config.h
@@ -35,7 +35,7 @@
35#define RGBLED_NUM 83 35#define RGBLED_NUM 83
36#define RGBLED_SPLIT { 39, 44 } 36#define RGBLED_SPLIT { 39, 44 }
37#ifdef RGB_MATRIX_ENABLE 37#ifdef RGB_MATRIX_ENABLE
38# define DRIVER_LED_TOTAL RGBLED_NUM 38# define RGB_MATRIX_LED_COUNT RGBLED_NUM
39# define RGB_MATRIX_SPLIT RGBLED_SPLIT 39# define RGB_MATRIX_SPLIT RGBLED_SPLIT
40#endif 40#endif
41#define RGBLIGHT_SLEEP 41#define RGBLIGHT_SLEEP
diff --git a/keyboards/merge/um80/config.h b/keyboards/merge/um80/config.h
index d76eee087a..b501e372ad 100644
--- a/keyboards/merge/um80/config.h
+++ b/keyboards/merge/um80/config.h
@@ -35,7 +35,7 @@
35#define RGBLED_NUM 100 35#define RGBLED_NUM 100
36#define RGBLED_SPLIT { 48, 52 } 36#define RGBLED_SPLIT { 48, 52 }
37#ifdef RGB_MATRIX_ENABLE 37#ifdef RGB_MATRIX_ENABLE
38# define DRIVER_LED_TOTAL RGBLED_NUM 38# define RGB_MATRIX_LED_COUNT RGBLED_NUM
39# define RGB_MATRIX_SPLIT RGBLED_SPLIT 39# define RGB_MATRIX_SPLIT RGBLED_SPLIT
40#endif 40#endif
41#define RGBLIGHT_SLEEP 41#define RGBLIGHT_SLEEP
diff --git a/keyboards/miller/gm862/config.h b/keyboards/miller/gm862/config.h
index 0e784fe527..16587a22d4 100644
--- a/keyboards/miller/gm862/config.h
+++ b/keyboards/miller/gm862/config.h
@@ -78,5 +78,5 @@
78 78
79# define DRIVER_ADDR_1 0b1010000 79# define DRIVER_ADDR_1 0b1010000
80# define DRIVER_COUNT 1 80# define DRIVER_COUNT 1
81# define DRIVER_LED_TOTAL 62 81# define RGB_MATRIX_LED_COUNT 62
82#endif 82#endif
diff --git a/keyboards/miller/gm862/gm862.c b/keyboards/miller/gm862/gm862.c
index 5262957767..08c9bfe73b 100644
--- a/keyboards/miller/gm862/gm862.c
+++ b/keyboards/miller/gm862/gm862.c
@@ -1,7 +1,7 @@
1#include "gm862.h" 1#include "gm862.h"
2 2
3#ifdef RGB_MATRIX_ENABLE 3#ifdef RGB_MATRIX_ENABLE
4const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
5 {0, B_1, A_1, C_1}, 5 {0, B_1, A_1, C_1},
6 {0, B_2, A_2, C_2}, 6 {0, B_2, A_2, C_2},
7 {0, B_3, A_3, C_3}, 7 {0, B_3, A_3, C_3},
diff --git a/keyboards/ml/gas75/config.h b/keyboards/ml/gas75/config.h
index 82d8c134a0..ee7a07fd20 100644
--- a/keyboards/ml/gas75/config.h
+++ b/keyboards/ml/gas75/config.h
@@ -43,7 +43,7 @@
43#define ENCODERS_PAD_B { F1 } 43#define ENCODERS_PAD_B { F1 }
44 44
45#ifdef RGB_MATRIX_ENABLE 45#ifdef RGB_MATRIX_ENABLE
46 #define DRIVER_LED_TOTAL 3 46 #define RGB_MATRIX_LED_COUNT 3
47 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 47 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
48 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 48 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
49 #define RGB_MATRIX_KEYPRESSES 49 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/momokai/tap_trio/config.h b/keyboards/momokai/tap_trio/config.h
index 431a570e15..7fde303ae9 100644
--- a/keyboards/momokai/tap_trio/config.h
+++ b/keyboards/momokai/tap_trio/config.h
@@ -58,7 +58,7 @@
58 58
59 59
60// #ifdef RGB_DI_PIN 60// #ifdef RGB_DI_PIN
61// #define DRIVER_LED_TOTAL 5 61// #define RGB_MATRIX_LED_COUNT 5
62 62
63// #define RGB_MATRIX_KEYPRESSES // reacts to keypresses 63// #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
64// // # define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value 64// // # define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
diff --git a/keyboards/monstargear/xo87/rgb/config.h b/keyboards/monstargear/xo87/rgb/config.h
index 4117f243ac..cdd5574b23 100644
--- a/keyboards/monstargear/xo87/rgb/config.h
+++ b/keyboards/monstargear/xo87/rgb/config.h
@@ -27,7 +27,7 @@
27#define MATRIX_COL_PINS { C5,C3,C1,E1,D6,D2,B7,B3,F6,F7,F3,A5,A1,E2,C7,A6 } 27#define MATRIX_COL_PINS { C5,C3,C1,E1,D6,D2,B7,B3,F6,F7,F3,A5,A1,E2,C7,A6 }
28#define DIODE_DIRECTION ROW2COL 28#define DIODE_DIRECTION ROW2COL
29#define RGB_DI_PIN D7 29#define RGB_DI_PIN D7
30#define DRIVER_LED_TOTAL 110 30#define RGB_MATRIX_LED_COUNT 110
31#define RGB_DISABLE_WHEN_USB_SUSPENDED 31#define RGB_DISABLE_WHEN_USB_SUSPENDED
32 32
33#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 100 out of 255. 33#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 100 out of 255.
diff --git a/keyboards/monstargear/xo87/solderable/config.h b/keyboards/monstargear/xo87/solderable/config.h
index 8b3af96024..bd8b4923c6 100644
--- a/keyboards/monstargear/xo87/solderable/config.h
+++ b/keyboards/monstargear/xo87/solderable/config.h
@@ -37,7 +37,7 @@
37 37
38#define DIODE_DIRECTION ROW2COL 38#define DIODE_DIRECTION ROW2COL
39#define RGB_DI_PIN D7 39#define RGB_DI_PIN D7
40#define DRIVER_LED_TOTAL 21 40#define RGB_MATRIX_LED_COUNT 21
41#define DRIVER_COUNT 2 41#define DRIVER_COUNT 2
42#define RGBLED_NUM 21 42#define RGBLED_NUM 21
43#define RGBLIGHT_ANIMATIONS 43#define RGBLIGHT_ANIMATIONS
diff --git a/keyboards/moonlander/config.h b/keyboards/moonlander/config.h
index b0ff86ee81..7db3a184fa 100644
--- a/keyboards/moonlander/config.h
+++ b/keyboards/moonlander/config.h
@@ -75,7 +75,7 @@
75#define DRIVER_COUNT 2 75#define DRIVER_COUNT 2
76#define DRIVER_1_LED_TOTAL 36 76#define DRIVER_1_LED_TOTAL 36
77#define DRIVER_2_LED_TOTAL 36 77#define DRIVER_2_LED_TOTAL 36
78#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 78#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
79#define RGB_MATRIX_CENTER { 125, 26 } 79#define RGB_MATRIX_CENTER { 125, 26 }
80#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 175 80#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 175
81#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 81#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/moonlander/moonlander.c b/keyboards/moonlander/moonlander.c
index 927c88925e..0844f16661 100644
--- a/keyboards/moonlander/moonlander.c
+++ b/keyboards/moonlander/moonlander.c
@@ -174,7 +174,7 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
174 174
175#ifdef RGB_MATRIX_ENABLE 175#ifdef RGB_MATRIX_ENABLE
176// clang-format off 176// clang-format off
177const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 177const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
178/* Refer to IS31 manual for these locations 178/* Refer to IS31 manual for these locations
179 * driver 179 * driver
180 * | R location 180 * | R location
diff --git a/keyboards/mss_studio/m63_rgb/config.h b/keyboards/mss_studio/m63_rgb/config.h
index a7220ab1c6..792cdcc6b3 100644
--- a/keyboards/mss_studio/m63_rgb/config.h
+++ b/keyboards/mss_studio/m63_rgb/config.h
@@ -37,7 +37,7 @@
37#define FORCE_NKRO 37#define FORCE_NKRO
38 38
39#ifdef RGB_MATRIX_ENABLE 39#ifdef RGB_MATRIX_ENABLE
40 #define DRIVER_LED_TOTAL 75 40 #define RGB_MATRIX_LED_COUNT 75
41 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 41 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
42 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 42 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
43 #define RGB_MATRIX_KEYPRESSES 43 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/mss_studio/m64_rgb/config.h b/keyboards/mss_studio/m64_rgb/config.h
index c9a1e3f3db..90b5ae5130 100644
--- a/keyboards/mss_studio/m64_rgb/config.h
+++ b/keyboards/mss_studio/m64_rgb/config.h
@@ -37,7 +37,7 @@
37#define FORCE_NKRO 37#define FORCE_NKRO
38 38
39#ifdef RGB_MATRIX_ENABLE 39#ifdef RGB_MATRIX_ENABLE
40 #define DRIVER_LED_TOTAL 76 40 #define RGB_MATRIX_LED_COUNT 76
41 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 41 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
42 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 42 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
43 #define RGB_MATRIX_KEYPRESSES 43 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/mt/mt64rgb/config.h b/keyboards/mt/mt64rgb/config.h
index 8124a6a4a1..86035dc6a3 100644
--- a/keyboards/mt/mt64rgb/config.h
+++ b/keyboards/mt/mt64rgb/config.h
@@ -47,7 +47,7 @@
47#define DRIVER_ADDR_1 0b1010000 47#define DRIVER_ADDR_1 0b1010000
48 48
49#define DRIVER_COUNT 1 49#define DRIVER_COUNT 1
50#define DRIVER_LED_TOTAL 64 50#define RGB_MATRIX_LED_COUNT 64
51 51
52 52
53// RGB Matrix Animation modes. Explicitly enabled 53// RGB Matrix Animation modes. Explicitly enabled
diff --git a/keyboards/mt/mt64rgb/mt64rgb.c b/keyboards/mt/mt64rgb/mt64rgb.c
index f0c444e8fa..c87e0d3610 100644
--- a/keyboards/mt/mt64rgb/mt64rgb.c
+++ b/keyboards/mt/mt64rgb/mt64rgb.c
@@ -16,7 +16,7 @@
16#include "mt64rgb.h" 16#include "mt64rgb.h"
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 /* Refer to IS31 manual for these locations 20 /* Refer to IS31 manual for these locations
21 * driver 21 * driver
22 * | R location 22 * | R location
diff --git a/keyboards/mt/mt84/config.h b/keyboards/mt/mt84/config.h
index ac510f1967..04c14a27bb 100644
--- a/keyboards/mt/mt84/config.h
+++ b/keyboards/mt/mt84/config.h
@@ -52,7 +52,7 @@
52 #define DRIVER_COUNT 2 52 #define DRIVER_COUNT 2
53 #define DRIVER_1_LED_TOTAL 44 53 #define DRIVER_1_LED_TOTAL 44
54 #define DRIVER_2_LED_TOTAL 40 54 #define DRIVER_2_LED_TOTAL 40
55 #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 55 #define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
56 56
57 // RGB Matrix Animation modes. Explicitly enabled 57 // RGB Matrix Animation modes. Explicitly enabled
58 // For full list of effects, see: 58 // For full list of effects, see:
diff --git a/keyboards/mt/mt84/mt84.c b/keyboards/mt/mt84/mt84.c
index e15a1ff951..049878419f 100644
--- a/keyboards/mt/mt84/mt84.c
+++ b/keyboards/mt/mt84/mt84.c
@@ -16,7 +16,7 @@
16#include "mt84.h" 16#include "mt84.h"
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20 /* Refer to IS31 manual for these locations 20 /* Refer to IS31 manual for these locations
21 * driver 21 * driver
22 * | R location 22 * | R location
diff --git a/keyboards/mwstudio/mw65_rgb/config.h b/keyboards/mwstudio/mw65_rgb/config.h
index 2fd67e9e79..1da7c25390 100644
--- a/keyboards/mwstudio/mw65_rgb/config.h
+++ b/keyboards/mwstudio/mw65_rgb/config.h
@@ -43,7 +43,7 @@
43#define RGB_DI_PIN B3 43#define RGB_DI_PIN B3
44 44
45#ifdef RGB_MATRIX_ENABLE 45#ifdef RGB_MATRIX_ENABLE
46 #define DRIVER_LED_TOTAL 83 46 #define RGB_MATRIX_LED_COUNT 83
47 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 47 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
48 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 48 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
49 #define RGB_MATRIX_KEYPRESSES 49 #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/custom_gradient.c b/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/custom_gradient.c
index 49e4a242fb..0d7acd7e8b 100644
--- a/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/custom_gradient.c
+++ b/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/custom_gradient.c
@@ -70,5 +70,5 @@ static bool CUSTOM_GRADIENT(effect_params_t* params) {
70 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 70 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
71 } 71 }
72 72
73 return led_max < DRIVER_LED_TOTAL; 73 return led_max < RGB_MATRIX_LED_COUNT;
74} 74}
diff --git a/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h b/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h
index 56b204e0a9..986cbfeb9d 100644
--- a/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h
+++ b/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/rainbow_reactive_simple/rainbow_reactive_simple.h
@@ -41,5 +41,5 @@ bool effect_rainbow_reactive(effect_params_t* params, rainbow_reactive_f effect_
41 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 41 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
42 } 42 }
43 43
44 return led_max < DRIVER_LED_TOTAL; 44 return led_max < RGB_MATRIX_LED_COUNT;
45} 45}
diff --git a/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/random_breath_rainbow.c b/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/random_breath_rainbow.c
index 041417477b..29c447c61a 100644
--- a/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/random_breath_rainbow.c
+++ b/keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/random_breath_rainbow.c
@@ -14,7 +14,7 @@
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
17static uint8_t offset[DRIVER_LED_TOTAL]; 17static uint8_t offset[RGB_MATRIX_LED_COUNT];
18 18
19static void doRandom_breath_rainbow(int i, effect_params_t* params) { 19static void doRandom_breath_rainbow(int i, effect_params_t* params) {
20 if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return; 20 if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) return;
@@ -41,7 +41,7 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
41 41
42 if (!params->init) { 42 if (!params->init) {
43 // Change one LED every tick, make sure speed is not 0 43 // Change one LED every tick, make sure speed is not 0
44 doRandom_breath_rainbow(rand() % DRIVER_LED_TOTAL, params); 44 doRandom_breath_rainbow(rand() % RGB_MATRIX_LED_COUNT, params);
45 return false; 45 return false;
46 } 46 }
47 47
@@ -51,5 +51,5 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
51 doRandom_breath_rainbow(i, params); 51 doRandom_breath_rainbow(i, params);
52 } 52 }
53 53
54 return led_max < DRIVER_LED_TOTAL; 54 return led_max < RGB_MATRIX_LED_COUNT;
55} 55}
diff --git a/keyboards/mwstudio/mw75/config.h b/keyboards/mwstudio/mw75/config.h
index 2c9e3839b8..b5a8f15804 100644
--- a/keyboards/mwstudio/mw75/config.h
+++ b/keyboards/mwstudio/mw75/config.h
@@ -40,7 +40,7 @@
40 40
41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
42#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 42#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
43#define DRIVER_LED_TOTAL 97 43#define RGB_MATRIX_LED_COUNT 97
44#define RGBLED_NUM 97 44#define RGBLED_NUM 97
45#define RGB_MATRIX_KEYPRESSES 45#define RGB_MATRIX_KEYPRESSES
46 46
diff --git a/keyboards/mwstudio/mw75r2/config.h b/keyboards/mwstudio/mw75r2/config.h
index 0886a9effb..1fd6a345d1 100644
--- a/keyboards/mwstudio/mw75r2/config.h
+++ b/keyboards/mwstudio/mw75r2/config.h
@@ -40,7 +40,7 @@
40 40
41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
42#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS 42#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
43#define DRIVER_LED_TOTAL 21 43#define RGB_MATRIX_LED_COUNT 21
44#define RGBLED_NUM 21 44#define RGBLED_NUM 21
45 45
46#define ENABLE_RGB_MATRIX_ALPHAS_MODS 46#define ENABLE_RGB_MATRIX_ALPHAS_MODS
diff --git a/keyboards/nack/config.h b/keyboards/nack/config.h
index 798d4ee12d..d5e2d8a58e 100644
--- a/keyboards/nack/config.h
+++ b/keyboards/nack/config.h
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
33 #define WS2812_SPI_MOSI_PAL_MODE 5 33 #define WS2812_SPI_MOSI_PAL_MODE 5
34 #define RGB_DI_PIN B5 34 #define RGB_DI_PIN B5
35 #define RGBLED_NUM 52 35 #define RGBLED_NUM 52
36 #define DRIVER_LED_TOTAL RGBLED_NUM 36 #define RGB_MATRIX_LED_COUNT RGBLED_NUM
37 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 // Max brightness of LEDs 37 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 // Max brightness of LEDs
38 #define RGB_MATRIX_STARTUP_VAL 64 38 #define RGB_MATRIX_STARTUP_VAL 64
39 #define RGB_MATRIX_HUE_STEP 10 39 #define RGB_MATRIX_HUE_STEP 10
diff --git a/keyboards/neson_design/700e/700e.c b/keyboards/neson_design/700e/700e.c
index 6b3be48044..89c5e84efd 100644
--- a/keyboards/neson_design/700e/700e.c
+++ b/keyboards/neson_design/700e/700e.c
@@ -111,7 +111,7 @@ static void self_testing(void)
111 } 111 }
112 112
113 if (rgb_state.index >= ST_LEFT_END) { 113 if (rgb_state.index >= ST_LEFT_END) {
114 for (int i = rgb_state.index - 1; i < DRIVER_LED_TOTAL - rgb_state.index + 1; i++) { 114 for (int i = rgb_state.index - 1; i < RGB_MATRIX_LED_COUNT - rgb_state.index + 1; i++) {
115 IS31FL3731_set_color(i, led.r, led.g, led.b); 115 IS31FL3731_set_color(i, led.r, led.g, led.b);
116 } 116 }
117 if (rgb_state.index == ST_LEFT_END) { 117 if (rgb_state.index == ST_LEFT_END) {
@@ -173,13 +173,13 @@ static void self_testing(void)
173 } 173 }
174 break; 174 break;
175 case ST_STAGE_3: 175 case ST_STAGE_3:
176 if (rgb_state.index != DRIVER_LED_TOTAL/2) { 176 if (rgb_state.index != RGB_MATRIX_LED_COUNT/2) {
177 IS31FL3731_set_color_all(0, 0, 0); 177 IS31FL3731_set_color_all(0, 0, 0);
178 } 178 }
179 179
180 // light left and right 180 // light left and right
181 181
182 if (rgb_state.index == DRIVER_LED_TOTAL/2) { 182 if (rgb_state.index == RGB_MATRIX_LED_COUNT/2) {
183 if (rgb_state.duration) { 183 if (rgb_state.duration) {
184 rgb_state.duration--; 184 rgb_state.duration--;
185 } else { 185 } else {
@@ -207,7 +207,7 @@ static void self_testing(void)
207 update_ticks(); 207 update_ticks();
208} 208}
209 209
210const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 210const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
211 /* Refer to IS31 manual for these locations 211 /* Refer to IS31 manual for these locations
212 * driver 212 * driver
213 * | R location 213 * | R location
@@ -299,7 +299,7 @@ void matrix_init_kb(void)
299#ifdef DRIVER_ADDR_2 299#ifdef DRIVER_ADDR_2
300 IS31FL3731_init(DRIVER_ADDR_2); 300 IS31FL3731_init(DRIVER_ADDR_2);
301#endif 301#endif
302 for (int index = 0; index < DRIVER_LED_TOTAL; index++) { 302 for (int index = 0; index < RGB_MATRIX_LED_COUNT; index++) {
303 IS31FL3731_set_led_control_register(index, true, true, true); 303 IS31FL3731_set_led_control_register(index, true, true, true);
304 } 304 }
305 IS31FL3731_update_led_control_registers(DRIVER_ADDR_1, 0); 305 IS31FL3731_update_led_control_registers(DRIVER_ADDR_1, 0);
@@ -353,16 +353,16 @@ void rgblight_call_driver(LED_TYPE *start_led, uint8_t num_leds)
353{ 353{
354 if (rgb_state.state != NORMAL) return; 354 if (rgb_state.state != NORMAL) return;
355 355
356 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 356 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
357 IS31FL3731_set_color(i, start_led[i].r, start_led[i].g, start_led[i].b); 357 IS31FL3731_set_color(i, start_led[i].r, start_led[i].g, start_led[i].b);
358 } 358 }
359 LED_TYPE leds[4]; 359 LED_TYPE leds[4];
360 for (int i = 0; i < 4; i++) { 360 for (int i = 0; i < 4; i++) {
361 leds[i].r = start_led[DRIVER_LED_TOTAL+i].g; 361 leds[i].r = start_led[RGB_MATRIX_LED_COUNT+i].g;
362 leds[i].g = start_led[DRIVER_LED_TOTAL+i].r; 362 leds[i].g = start_led[RGB_MATRIX_LED_COUNT+i].r;
363 leds[i].b = start_led[DRIVER_LED_TOTAL+i].b; 363 leds[i].b = start_led[RGB_MATRIX_LED_COUNT+i].b;
364 } 364 }
365 //ws2812_setleds(start_led+DRIVER_LED_TOTAL, 4); 365 //ws2812_setleds(start_led+RGB_MATRIX_LED_COUNT, 4);
366 ws2812_setleds(leds, 4); 366 ws2812_setleds(leds, 4);
367} 367}
368 368
diff --git a/keyboards/neson_design/700e/config.h b/keyboards/neson_design/700e/config.h
index 83cc780d80..d5a35e21ef 100644
--- a/keyboards/neson_design/700e/config.h
+++ b/keyboards/neson_design/700e/config.h
@@ -47,7 +47,7 @@
47#define DRIVER_ADDR_1 0b1110100 47#define DRIVER_ADDR_1 0b1110100
48#define DRIVER_ADDR_2 0b1110111 48#define DRIVER_ADDR_2 0b1110111
49#define DRIVER_COUNT 2 49#define DRIVER_COUNT 2
50#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL+DRIVER_2_LED_TOTAL) 50#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL+DRIVER_2_LED_TOTAL)
51 51
52#define LED_CAPS_LOCK_PIN F5 52#define LED_CAPS_LOCK_PIN F5
53 53
diff --git a/keyboards/neson_design/n6/config.h b/keyboards/neson_design/n6/config.h
index 7d27825eaf..e06f9c8086 100644
--- a/keyboards/neson_design/n6/config.h
+++ b/keyboards/neson_design/n6/config.h
@@ -47,7 +47,7 @@
47#define DRIVER_ADDR_1 0b1110100 47#define DRIVER_ADDR_1 0b1110100
48#define DRIVER_ADDR_2 0b1110111 48#define DRIVER_ADDR_2 0b1110111
49#define DRIVER_COUNT 2 49#define DRIVER_COUNT 2
50#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL+DRIVER_2_LED_TOTAL) 50#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL+DRIVER_2_LED_TOTAL)
51 51
52#define LED_CAPS_LOCK_PIN F5 52#define LED_CAPS_LOCK_PIN F5
53 53
diff --git a/keyboards/neson_design/n6/n6.c b/keyboards/neson_design/n6/n6.c
index 4d5927cae1..a606e93c8f 100644
--- a/keyboards/neson_design/n6/n6.c
+++ b/keyboards/neson_design/n6/n6.c
@@ -115,7 +115,7 @@ static void self_testing(void)
115 } 115 }
116 116
117 if (rgb_state.index >= ST_LEFT_END) { 117 if (rgb_state.index >= ST_LEFT_END) {
118 for (int i = rgb_state.index - 1; i < DRIVER_LED_TOTAL - rgb_state.index + 1; i++) { 118 for (int i = rgb_state.index - 1; i < RGB_MATRIX_LED_COUNT - rgb_state.index + 1; i++) {
119 IS31FL3731_set_color(i, led.r, led.g, led.b); 119 IS31FL3731_set_color(i, led.r, led.g, led.b);
120 } 120 }
121 if (rgb_state.index == ST_LEFT_END) { 121 if (rgb_state.index == ST_LEFT_END) {
@@ -177,13 +177,13 @@ static void self_testing(void)
177 } 177 }
178 break; 178 break;
179 case ST_STAGE_3: 179 case ST_STAGE_3:
180 if (rgb_state.index != DRIVER_LED_TOTAL/2) { 180 if (rgb_state.index != RGB_MATRIX_LED_COUNT/2) {
181 IS31FL3731_set_color_all(0, 0, 0); 181 IS31FL3731_set_color_all(0, 0, 0);
182 } 182 }
183 183
184 // light left and right 184 // light left and right
185 185
186 if (rgb_state.index == DRIVER_LED_TOTAL/2) { 186 if (rgb_state.index == RGB_MATRIX_LED_COUNT/2) {
187 if (rgb_state.duration) { 187 if (rgb_state.duration) {
188 rgb_state.duration--; 188 rgb_state.duration--;
189 } else { 189 } else {
@@ -211,7 +211,7 @@ static void self_testing(void)
211 update_ticks(); 211 update_ticks();
212} 212}
213 213
214const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 214const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
215 /* Refer to IS31 manual for these locations 215 /* Refer to IS31 manual for these locations
216 * driver 216 * driver
217 * | R location 217 * | R location
@@ -303,7 +303,7 @@ void matrix_init_kb(void)
303#ifdef DRIVER_ADDR_2 303#ifdef DRIVER_ADDR_2
304 IS31FL3731_init(DRIVER_ADDR_2); 304 IS31FL3731_init(DRIVER_ADDR_2);
305#endif 305#endif
306 for (int index = 0; index < DRIVER_LED_TOTAL; index++) { 306 for (int index = 0; index < RGB_MATRIX_LED_COUNT; index++) {
307 IS31FL3731_set_led_control_register(index, true, true, true); 307 IS31FL3731_set_led_control_register(index, true, true, true);
308 } 308 }
309 IS31FL3731_update_led_control_registers(DRIVER_ADDR_1, 0); 309 IS31FL3731_update_led_control_registers(DRIVER_ADDR_1, 0);
@@ -355,10 +355,10 @@ void rgblight_call_driver(LED_TYPE *start_led, uint8_t num_leds)
355{ 355{
356 if (rgb_state.state != NORMAL) return; 356 if (rgb_state.state != NORMAL) return;
357 357
358 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 358 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
359 IS31FL3731_set_color(i, start_led[i].r, start_led[i].g, start_led[i].b); 359 IS31FL3731_set_color(i, start_led[i].r, start_led[i].g, start_led[i].b);
360 } 360 }
361 ws2812_setleds(start_led+DRIVER_LED_TOTAL, 1); 361 ws2812_setleds(start_led+RGB_MATRIX_LED_COUNT, 1);
362} 362}
363 363
364bool led_update_kb(led_t led_state) 364bool led_update_kb(led_t led_state)
diff --git a/keyboards/novelkeys/nk20/config.h b/keyboards/novelkeys/nk20/config.h
index 7b56d50c6f..f5a75dd14f 100644
--- a/keyboards/novelkeys/nk20/config.h
+++ b/keyboards/novelkeys/nk20/config.h
@@ -75,7 +75,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
75#define WS2812_DMA_CHANNEL 3 75#define WS2812_DMA_CHANNEL 3
76 76
77#define RGBLED_NUM 20 77#define RGBLED_NUM 20
78#define DRIVER_LED_TOTAL 20 78#define RGB_MATRIX_LED_COUNT 20
79#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 210 79#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 210
80#define RGB_DISABLE_WHEN_USB_SUSPENDED 80#define RGB_DISABLE_WHEN_USB_SUSPENDED
81#define RGB_MATRIX_KEYPRESSES 81#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/novelkeys/nk65/config.h b/keyboards/novelkeys/nk65/config.h
index df64bbe83e..9640704b48 100755
--- a/keyboards/novelkeys/nk65/config.h
+++ b/keyboards/novelkeys/nk65/config.h
@@ -112,7 +112,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
112#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } 112#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
113 113
114#define DRIVER_COUNT 2 114#define DRIVER_COUNT 2
115#define DRIVER_LED_TOTAL 128 115#define RGB_MATRIX_LED_COUNT 128
116 116
117// These define which keys in the matrix are alphas/mods 117// These define which keys in the matrix are alphas/mods
118// Used for backlight effects so colors are different for 118// Used for backlight effects so colors are different for
diff --git a/keyboards/novelkeys/nk65b/config.h b/keyboards/novelkeys/nk65b/config.h
index 45603267a1..0976b42543 100755
--- a/keyboards/novelkeys/nk65b/config.h
+++ b/keyboards/novelkeys/nk65b/config.h
@@ -79,7 +79,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
79#define WS2812_DMA_CHANNEL 3 79#define WS2812_DMA_CHANNEL 3
80 80
81#define RGBLED_NUM 68 81#define RGBLED_NUM 68
82#define DRIVER_LED_TOTAL 68 82#define RGB_MATRIX_LED_COUNT 68
83#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 130 83#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 130
84#define RGB_DISABLE_WHEN_USB_SUSPENDED 84#define RGB_DISABLE_WHEN_USB_SUSPENDED
85#define RGB_MATRIX_KEYPRESSES 85#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/novelkeys/nk87/config.h b/keyboards/novelkeys/nk87/config.h
index e5b955c3f8..0320f35d84 100755
--- a/keyboards/novelkeys/nk87/config.h
+++ b/keyboards/novelkeys/nk87/config.h
@@ -112,7 +112,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
112#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } 112#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
113 113
114#define DRIVER_COUNT 2 114#define DRIVER_COUNT 2
115#define DRIVER_LED_TOTAL 128 115#define RGB_MATRIX_LED_COUNT 128
116 116
117// These define which keys in the matrix are alphas/mods 117// These define which keys in the matrix are alphas/mods
118// Used for backlight effects so colors are different for 118// Used for backlight effects so colors are different for
diff --git a/keyboards/novelkeys/nk87b/config.h b/keyboards/novelkeys/nk87b/config.h
index 32bbb5e69e..7830b398b1 100644
--- a/keyboards/novelkeys/nk87b/config.h
+++ b/keyboards/novelkeys/nk87b/config.h
@@ -79,7 +79,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
79#define WS2812_DMA_CHANNEL 3 79#define WS2812_DMA_CHANNEL 3
80 80
81#define RGBLED_NUM 87 81#define RGBLED_NUM 87
82#define DRIVER_LED_TOTAL 87 82#define RGB_MATRIX_LED_COUNT 87
83#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 114 83#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 114
84#define RGB_DISABLE_WHEN_USB_SUSPENDED 84#define RGB_DISABLE_WHEN_USB_SUSPENDED
85#define RGB_MATRIX_KEYPRESSES 85#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/omkbd/runner3680/5x6_5x8/config.h b/keyboards/omkbd/runner3680/5x6_5x8/config.h
index 6348f10eb1..29c4c32015 100644
--- a/keyboards/omkbd/runner3680/5x6_5x8/config.h
+++ b/keyboards/omkbd/runner3680/5x6_5x8/config.h
@@ -61,7 +61,7 @@
61#define RGBLIGHT_LIMIT_VAL 100 61#define RGBLIGHT_LIMIT_VAL 100
62#endif 62#endif
63#ifdef RGB_MATRIX_ENABLE 63#ifdef RGB_MATRIX_ENABLE
64#define DRIVER_LED_TOTAL 70 64#define RGB_MATRIX_LED_COUNT 70
65#define RGB_MATRIX_SPLIT { 30, 40 } // Number of LEDs 65#define RGB_MATRIX_SPLIT { 30, 40 } // Number of LEDs
66#endif 66#endif
67 67
diff --git a/keyboards/opendeck/32/rev1/config.h b/keyboards/opendeck/32/rev1/config.h
index 6a87ad86b4..87b153c736 100644
--- a/keyboards/opendeck/32/rev1/config.h
+++ b/keyboards/opendeck/32/rev1/config.h
@@ -29,7 +29,7 @@
29// RGB matrix 29// RGB matrix
30#define DRIVER_ADDR_1 0b1110100 30#define DRIVER_ADDR_1 0b1110100
31#define DRIVER_COUNT 1 31#define DRIVER_COUNT 1
32#define DRIVER_LED_TOTAL (4 * 8 * 3) 32#define RGB_MATRIX_LED_COUNT (4 * 8 * 3)
33#define RGB_DISABLE_WHEN_USB_SUSPENDED 33#define RGB_DISABLE_WHEN_USB_SUSPENDED
34#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_SPIRAL 34#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_SPIRAL
35#define RGB_MATRIX_DISABLE_KEYCODES 35#define RGB_MATRIX_DISABLE_KEYCODES
diff --git a/keyboards/opendeck/32/rev1/rev1.c b/keyboards/opendeck/32/rev1/rev1.c
index 332dc3cc40..be50d91944 100644
--- a/keyboards/opendeck/32/rev1/rev1.c
+++ b/keyboards/opendeck/32/rev1/rev1.c
@@ -17,7 +17,7 @@
17#include "rev1.h" 17#include "rev1.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 /* Refer to IS31 manual for these locations 21 /* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/owlab/voice65/hotswap/config.h b/keyboards/owlab/voice65/hotswap/config.h
index 507b1f75e2..6b8bf0b3ac 100644
--- a/keyboards/owlab/voice65/hotswap/config.h
+++ b/keyboards/owlab/voice65/hotswap/config.h
@@ -71,7 +71,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
71# define RGB_MATRIX_STARTUP_VAL 128 71# define RGB_MATRIX_STARTUP_VAL 128
72# define DRIVER_ADDR_1 0b0110000 72# define DRIVER_ADDR_1 0b0110000
73# define DRIVER_COUNT 1 73# define DRIVER_COUNT 1
74# define DRIVER_LED_TOTAL 67 74# define RGB_MATRIX_LED_COUNT 67
75// RGB Matrix Animation modes. Explicitly enabled 75// RGB Matrix Animation modes. Explicitly enabled
76// For full list of effects, see: 76// For full list of effects, see:
77// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects 77// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
diff --git a/keyboards/owlab/voice65/hotswap/hotswap.c b/keyboards/owlab/voice65/hotswap/hotswap.c
index ca5ce7bb8b..ed40d33532 100644
--- a/keyboards/owlab/voice65/hotswap/hotswap.c
+++ b/keyboards/owlab/voice65/hotswap/hotswap.c
@@ -17,7 +17,7 @@
17#include "hotswap.h" 17#include "hotswap.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 {0, CS3_SW1, CS2_SW1, CS1_SW1}, /* RGB0-ESC ROW0*/ 21 {0, CS3_SW1, CS2_SW1, CS1_SW1}, /* RGB0-ESC ROW0*/
22 {0, CS6_SW1, CS5_SW1, CS4_SW1}, /* RGB1-1 */ 22 {0, CS6_SW1, CS5_SW1, CS4_SW1}, /* RGB1-1 */
23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB2-2 */ 23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB2-2 */
diff --git a/keyboards/owlab/voice65/soldered/config.h b/keyboards/owlab/voice65/soldered/config.h
index 74ab2db520..1bf9702a3e 100644
--- a/keyboards/owlab/voice65/soldered/config.h
+++ b/keyboards/owlab/voice65/soldered/config.h
@@ -70,7 +70,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
70# define RGB_MATRIX_STARTUP_VAL 128 70# define RGB_MATRIX_STARTUP_VAL 128
71# define DRIVER_ADDR_1 0b0110000 71# define DRIVER_ADDR_1 0b0110000
72# define DRIVER_COUNT 1 72# define DRIVER_COUNT 1
73# define DRIVER_LED_TOTAL 71 73# define RGB_MATRIX_LED_COUNT 71
74 74
75// RGB Matrix Animation modes. Explicitly enabled 75// RGB Matrix Animation modes. Explicitly enabled
76// For full list of effects, see: 76// For full list of effects, see:
diff --git a/keyboards/owlab/voice65/soldered/soldered.c b/keyboards/owlab/voice65/soldered/soldered.c
index bbd2daf293..cea25b093e 100644
--- a/keyboards/owlab/voice65/soldered/soldered.c
+++ b/keyboards/owlab/voice65/soldered/soldered.c
@@ -17,7 +17,7 @@
17#include "soldered.h" 17#include "soldered.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 {0, CS3_SW1, CS2_SW1, CS1_SW1}, /* RGB0-ESC ROW0*/ 21 {0, CS3_SW1, CS2_SW1, CS1_SW1}, /* RGB0-ESC ROW0*/
22 {0, CS6_SW1, CS5_SW1, CS4_SW1}, /* RGB1-1 */ 22 {0, CS6_SW1, CS5_SW1, CS4_SW1}, /* RGB1-1 */
23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB2-2 */ 23 {0, CS9_SW1, CS8_SW1, CS7_SW1}, /* RGB2-2 */
diff --git a/keyboards/paprikman/albacore/config.h b/keyboards/paprikman/albacore/config.h
index 862f82ea54..0835c606fa 100644
--- a/keyboards/paprikman/albacore/config.h
+++ b/keyboards/paprikman/albacore/config.h
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
42#define RGB_DI_PIN B3 42#define RGB_DI_PIN B3
43 43
44#ifdef RGB_MATRIX_ENABLE 44#ifdef RGB_MATRIX_ENABLE
45 #define DRIVER_LED_TOTAL 8 45 #define RGB_MATRIX_LED_COUNT 8
46 #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 46 #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
47 #define RGB_DISABLE_WHEN_USB_SUSPENDED 47 #define RGB_DISABLE_WHEN_USB_SUSPENDED
48 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 220 48 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 220
diff --git a/keyboards/percent/canoe_gen2/config.h b/keyboards/percent/canoe_gen2/config.h
index 1f05360aae..aec0cdfe5e 100644
--- a/keyboards/percent/canoe_gen2/config.h
+++ b/keyboards/percent/canoe_gen2/config.h
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
48/* Backlight configuration 48/* Backlight configuration
49 */ 49 */
50#define RGB_DI_PIN B7 50#define RGB_DI_PIN B7
51#define DRIVER_LED_TOTAL 77 51#define RGB_MATRIX_LED_COUNT 77
52#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 52#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
53 53
54#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT 54#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT
diff --git a/keyboards/phase_studio/titan65/hotswap/config.h b/keyboards/phase_studio/titan65/hotswap/config.h
index 9b942b20d3..06c3256501 100644
--- a/keyboards/phase_studio/titan65/hotswap/config.h
+++ b/keyboards/phase_studio/titan65/hotswap/config.h
@@ -38,7 +38,7 @@
38#define DIODE_DIRECTION COL2ROW 38#define DIODE_DIRECTION COL2ROW
39 39
40#define RGB_DI_PIN E6 40#define RGB_DI_PIN E6
41#define DRIVER_LED_TOTAL 67 41#define RGB_MATRIX_LED_COUNT 67
42#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 42#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
43// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 43// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
44#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 44#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
diff --git a/keyboards/planck/ez/config.h b/keyboards/planck/ez/config.h
index c9ed9e59ba..1840e087cf 100644
--- a/keyboards/planck/ez/config.h
+++ b/keyboards/planck/ez/config.h
@@ -109,7 +109,7 @@
109#define DRIVER_ADDR_1 0b1010000 109#define DRIVER_ADDR_1 0b1010000
110 110
111#define DRIVER_COUNT 1 111#define DRIVER_COUNT 1
112#define DRIVER_LED_TOTAL 47 112#define RGB_MATRIX_LED_COUNT 47
113 113
114#define RGB_MATRIX_KEYPRESSES 114#define RGB_MATRIX_KEYPRESSES
115#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 115#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c
index 25dfe9adfb..77ae20ba5a 100644
--- a/keyboards/planck/ez/ez.c
+++ b/keyboards/planck/ez/ez.c
@@ -21,7 +21,7 @@
21 21
22keyboard_config_t keyboard_config; 22keyboard_config_t keyboard_config;
23#ifdef RGB_MATRIX_ENABLE 23#ifdef RGB_MATRIX_ENABLE
24const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 24const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
25/* Refer to IS31 manual for these locations 25/* Refer to IS31 manual for these locations
26 * driver 26 * driver
27 * | R location 27 * | R location
diff --git a/keyboards/planck/keymaps/charlesrocket/keymap.c b/keyboards/planck/keymaps/charlesrocket/keymap.c
index f6229d2d69..d3d2f82420 100644
--- a/keyboards/planck/keymaps/charlesrocket/keymap.c
+++ b/keyboards/planck/keymaps/charlesrocket/keymap.c
@@ -71,7 +71,7 @@ void keyboard_post_init_user(void) {
71 rgb_matrix_enable(); 71 rgb_matrix_enable();
72} 72}
73 73
74const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { 74const uint8_t PROGMEM ledmap[][RGB_MATRIX_LED_COUNT][3] = {
75 [0] = { {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255} }, 75 [0] = { {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255}, {0,255,255} },
76 76
77 [1] = { {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255} }, 77 [1] = { {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255}, {193,255,255} },
@@ -83,7 +83,7 @@ const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = {
83}; 83};
84 84
85void set_layer_color(int layer) { 85void set_layer_color(int layer) {
86 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 86 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
87 HSV hsv = { 87 HSV hsv = {
88 .h = pgm_read_byte(&ledmap[layer][i][0]), 88 .h = pgm_read_byte(&ledmap[layer][i][0]),
89 .s = pgm_read_byte(&ledmap[layer][i][1]), 89 .s = pgm_read_byte(&ledmap[layer][i][1]),
diff --git a/keyboards/planck/keymaps/oryx/keymap.c b/keyboards/planck/keymaps/oryx/keymap.c
index 9e451a010a..436deadee4 100644
--- a/keyboards/planck/keymaps/oryx/keymap.c
+++ b/keyboards/planck/keymaps/oryx/keymap.c
@@ -64,7 +64,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
64}; 64};
65// clang-format on 65// clang-format on
66 66
67const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { 67const uint8_t PROGMEM ledmap[][RGB_MATRIX_LED_COUNT][3] = {
68 [0] = {{42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {32, 255, 234}, {32, 255, 234}, {32, 255, 234}, {32, 255, 234}}, 68 [0] = {{42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {146, 224, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {42, 255, 255}, {32, 255, 234}, {32, 255, 234}, {32, 255, 234}, {32, 255, 234}},
69 69
70 [1] = {{89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}}, 70 [1] = {{89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {169, 120, 255}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}, {89, 255, 246}},
@@ -74,7 +74,7 @@ const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = {
74}; 74};
75 75
76void set_layer_color(int layer) { 76void set_layer_color(int layer) {
77 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 77 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
78 HSV hsv = { 78 HSV hsv = {
79 .h = pgm_read_byte(&ledmap[layer][i][0]), 79 .h = pgm_read_byte(&ledmap[layer][i][0]),
80 .s = pgm_read_byte(&ledmap[layer][i][1]), 80 .s = pgm_read_byte(&ledmap[layer][i][1]),
diff --git a/keyboards/planck/keymaps/tom/keymap.c b/keyboards/planck/keymaps/tom/keymap.c
index 89175e0115..6d101f3a3f 100644
--- a/keyboards/planck/keymaps/tom/keymap.c
+++ b/keyboards/planck/keymaps/tom/keymap.c
@@ -230,7 +230,7 @@ void rgb_matrix_indicators_user(void) {
230 #ifdef RGB_MATRIX_ENABLE 230 #ifdef RGB_MATRIX_ENABLE
231 switch (get_highest_layer(layer_state)) { 231 switch (get_highest_layer(layer_state)) {
232 case _RAISE: 232 case _RAISE:
233 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 233 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
234 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { 234 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
235 rgb_matrix_set_color(i, 0x6B, 0x00, 0x80); 235 rgb_matrix_set_color(i, 0x6B, 0x00, 0x80);
236 } else { 236 } else {
@@ -240,7 +240,7 @@ void rgb_matrix_indicators_user(void) {
240 break; 240 break;
241 241
242 case _LOWER: 242 case _LOWER:
243 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 243 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
244 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { 244 if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
245 rgb_matrix_set_color(i, 0xFF, 0xA5, 0x00); 245 rgb_matrix_set_color(i, 0xFF, 0xA5, 0x00);
246 } else { 246 } else {
@@ -250,7 +250,7 @@ void rgb_matrix_indicators_user(void) {
250 break; 250 break;
251 251
252 case _ADJUST: 252 case _ADJUST:
253 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 253 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
254 rgb_matrix_set_color(i, 0xFF, 0x99, 0x00); 254 rgb_matrix_set_color(i, 0xFF, 0x99, 0x00);
255 } 255 }
256 rgb_matrix_set_color(1, 0xFF, 0x00, 0x00); 256 rgb_matrix_set_color(1, 0xFF, 0x00, 0x00);
diff --git a/keyboards/planck/keymaps/tylerwince/keymap.c b/keyboards/planck/keymaps/tylerwince/keymap.c
index e6d174fbce..e00fb2567d 100644
--- a/keyboards/planck/keymaps/tylerwince/keymap.c
+++ b/keyboards/planck/keymaps/tylerwince/keymap.c
@@ -130,7 +130,7 @@ void keyboard_post_init_user(void) {
130 rgb_matrix_enable(); 130 rgb_matrix_enable();
131} 131}
132 132
133const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { 133const uint8_t PROGMEM ledmap[][RGB_MATRIX_LED_COUNT][3] = {
134 [0] = { {32,255,234}, {32,255,234}, {12,225,241}, {12,225,241}, {0,204,255}, {0,204,255}, {169,120,255}, {169,120,255}, {169,120,255}, {146,224,255}, {146,224,255}, {146,224,255}, 134 [0] = { {32,255,234}, {32,255,234}, {12,225,241}, {12,225,241}, {0,204,255}, {0,204,255}, {169,120,255}, {169,120,255}, {169,120,255}, {146,224,255}, {146,224,255}, {146,224,255},
135 {32,255,234}, {32,255,234}, {12,225,241}, {12,225,241}, {0,204,255}, {0,204,255}, {169,120,255}, {169,120,255}, {169,120,255}, {146,224,255}, {146,224,255}, {146,224,255}, 135 {32,255,234}, {32,255,234}, {12,225,241}, {12,225,241}, {0,204,255}, {0,204,255}, {169,120,255}, {169,120,255}, {169,120,255}, {146,224,255}, {146,224,255}, {146,224,255},
136 {32,255,234}, {32,255,234}, {12,225,241}, {12,225,241}, {0,204,255}, {0,204,255}, {169,120,255}, {169,120,255}, {169,120,255}, {146,224,255}, {146,224,255}, {146,224,255}, 136 {32,255,234}, {32,255,234}, {12,225,241}, {12,225,241}, {0,204,255}, {0,204,255}, {169,120,255}, {169,120,255}, {169,120,255}, {146,224,255}, {146,224,255}, {146,224,255},
@@ -151,7 +151,7 @@ const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = {
151}; 151};
152 152
153void set_layer_color(int layer) { 153void set_layer_color(int layer) {
154 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 154 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
155 HSV hsv = { 155 HSV hsv = {
156 .h = pgm_read_byte(&ledmap[layer][i][0]), 156 .h = pgm_read_byte(&ledmap[layer][i][0]),
157 .s = pgm_read_byte(&ledmap[layer][i][1]), 157 .s = pgm_read_byte(&ledmap[layer][i][1]),
diff --git a/keyboards/planck/light/config.h b/keyboards/planck/light/config.h
index 67b42e8c08..d0e30bde02 100644
--- a/keyboards/planck/light/config.h
+++ b/keyboards/planck/light/config.h
@@ -34,7 +34,7 @@
34#define DRIVER_COUNT 2 34#define DRIVER_COUNT 2
35#define DRIVER_1_LED_TOTAL 25 35#define DRIVER_1_LED_TOTAL 25
36#define DRIVER_2_LED_TOTAL 24 36#define DRIVER_2_LED_TOTAL 24
37#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 37#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
38// RGB Matrix Animation modes. Explicitly enabled 38// RGB Matrix Animation modes. Explicitly enabled
39// For full list of effects, see: 39// For full list of effects, see:
40// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects 40// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
diff --git a/keyboards/planck/light/light.c b/keyboards/planck/light/light.c
index 5a7c656f1a..c2c241fab4 100644
--- a/keyboards/planck/light/light.c
+++ b/keyboards/planck/light/light.c
@@ -16,7 +16,7 @@
16 16
17#include "light.h" 17#include "light.h"
18 18
19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
20/* Refer to IS31 manual for these locations 20/* Refer to IS31 manual for these locations
21 * driver 21 * driver
22 * | R location 22 * | R location
diff --git a/keyboards/planck/rev6/config.h b/keyboards/planck/rev6/config.h
index 3879cb7690..5925feb8d9 100644
--- a/keyboards/planck/rev6/config.h
+++ b/keyboards/planck/rev6/config.h
@@ -103,7 +103,7 @@
103 */ 103 */
104#define RGB_DI_PIN A1 104#define RGB_DI_PIN A1
105#define RGBLED_NUM 9 105#define RGBLED_NUM 9
106#define DRIVER_LED_TOTAL RGBLED_NUM 106#define RGB_MATRIX_LED_COUNT RGBLED_NUM
107 107
108#define WS2812_PWM_DRIVER PWMD2 108#define WS2812_PWM_DRIVER PWMD2
109#define WS2812_PWM_CHANNEL 2 109#define WS2812_PWM_CHANNEL 2
diff --git a/keyboards/planck/rev6_drop/config.h b/keyboards/planck/rev6_drop/config.h
index 3cbee54de5..35b3a55c1f 100644
--- a/keyboards/planck/rev6_drop/config.h
+++ b/keyboards/planck/rev6_drop/config.h
@@ -108,7 +108,7 @@
108 */ 108 */
109#define RGB_DI_PIN A1 109#define RGB_DI_PIN A1
110#define RGBLED_NUM 9 110#define RGBLED_NUM 9
111#define DRIVER_LED_TOTAL RGBLED_NUM 111#define RGB_MATRIX_LED_COUNT RGBLED_NUM
112 112
113#define WS2812_PWM_DRIVER PWMD2 113#define WS2812_PWM_DRIVER PWMD2
114#define WS2812_PWM_CHANNEL 2 114#define WS2812_PWM_CHANNEL 2
diff --git a/keyboards/playkbtw/pk64rgb/config.h b/keyboards/playkbtw/pk64rgb/config.h
index 2ec5f15a39..c6f03af638 100644
--- a/keyboards/playkbtw/pk64rgb/config.h
+++ b/keyboards/playkbtw/pk64rgb/config.h
@@ -47,7 +47,7 @@
47 #define RGB_MATRIX_LED_FLUSH_LIMIT 26 47 #define RGB_MATRIX_LED_FLUSH_LIMIT 26
48 #define DRIVER_ADDR_1 0b1010000 48 #define DRIVER_ADDR_1 0b1010000
49 #define DRIVER_COUNT 1 49 #define DRIVER_COUNT 1
50 #define DRIVER_LED_TOTAL 64 50 #define RGB_MATRIX_LED_COUNT 64
51 51
52 52
53#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE 53#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
diff --git a/keyboards/playkbtw/pk64rgb/pk64rgb.c b/keyboards/playkbtw/pk64rgb/pk64rgb.c
index bc1f63a5ba..e2db8056ee 100644
--- a/keyboards/playkbtw/pk64rgb/pk64rgb.c
+++ b/keyboards/playkbtw/pk64rgb/pk64rgb.c
@@ -17,7 +17,7 @@
17#include "pk64rgb.h" 17#include "pk64rgb.h"
18 18
19#ifdef RGB_MATRIX_ENABLE 19#ifdef RGB_MATRIX_ENABLE
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 /* Refer to IS31 manual for these locations 21 /* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/pom_keyboards/tnln95/config.h b/keyboards/pom_keyboards/tnln95/config.h
index e958aebd30..f4dfa80a7e 100644
--- a/keyboards/pom_keyboards/tnln95/config.h
+++ b/keyboards/pom_keyboards/tnln95/config.h
@@ -66,7 +66,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
66 #define RGBLIGHT_SAT_STEP 8 66 #define RGBLIGHT_SAT_STEP 8
67 #define RGBLIGHT_VAL_STEP 8 67 #define RGBLIGHT_VAL_STEP 8
68 #define RGBLIGHT_SLEEP // RGB will turn off when PC is put to sleep 68 #define RGBLIGHT_SLEEP // RGB will turn off when PC is put to sleep
69// #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) 69// #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)
70// #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) 70// #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)
71// #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 225 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 71// #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 225 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
72// #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR // Sets the default mode, if none has been set 72// #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR // Sets the default mode, if none has been set
diff --git a/keyboards/preonic/rev3/config.h b/keyboards/preonic/rev3/config.h
index 5590ba0252..1c5dfe2e68 100644
--- a/keyboards/preonic/rev3/config.h
+++ b/keyboards/preonic/rev3/config.h
@@ -92,7 +92,7 @@
92#define RGBLED_NUM 9 92#define RGBLED_NUM 9
93#define RGBLIGHT_ANIMATIONS 93#define RGBLIGHT_ANIMATIONS
94// RGB Matrix support 94// RGB Matrix support
95#define DRIVER_LED_TOTAL RGBLED_NUM 95#define RGB_MATRIX_LED_COUNT RGBLED_NUM
96 96
97#define WS2812_PWM_DRIVER PWMD2 97#define WS2812_PWM_DRIVER PWMD2
98#define WS2812_PWM_CHANNEL 2 98#define WS2812_PWM_CHANNEL 2
diff --git a/keyboards/preonic/rev3_drop/config.h b/keyboards/preonic/rev3_drop/config.h
index 5590ba0252..1c5dfe2e68 100644
--- a/keyboards/preonic/rev3_drop/config.h
+++ b/keyboards/preonic/rev3_drop/config.h
@@ -92,7 +92,7 @@
92#define RGBLED_NUM 9 92#define RGBLED_NUM 9
93#define RGBLIGHT_ANIMATIONS 93#define RGBLIGHT_ANIMATIONS
94// RGB Matrix support 94// RGB Matrix support
95#define DRIVER_LED_TOTAL RGBLED_NUM 95#define RGB_MATRIX_LED_COUNT RGBLED_NUM
96 96
97#define WS2812_PWM_DRIVER PWMD2 97#define WS2812_PWM_DRIVER PWMD2
98#define WS2812_PWM_CHANNEL 2 98#define WS2812_PWM_CHANNEL 2
diff --git a/keyboards/qpockets/space_space/rev2/config.h b/keyboards/qpockets/space_space/rev2/config.h
index b762783d7e..a1ad4fc021 100644
--- a/keyboards/qpockets/space_space/rev2/config.h
+++ b/keyboards/qpockets/space_space/rev2/config.h
@@ -46,5 +46,5 @@
46#define RGB_DI_PIN F0 46#define RGB_DI_PIN F0
47#define RGBLED_NUM 4 47#define RGBLED_NUM 4
48 48
49#define DRIVER_LED_TOTAL RGBLED_NUM 49#define RGB_MATRIX_LED_COUNT RGBLED_NUM
50#define RGBLIGHT_DEFAULT_HUE 130 50#define RGBLIGHT_DEFAULT_HUE 130
diff --git a/keyboards/rgbkb/mun/config.h b/keyboards/rgbkb/mun/config.h
index 0c39127af5..cd92c3893d 100644
--- a/keyboards/rgbkb/mun/config.h
+++ b/keyboards/rgbkb/mun/config.h
@@ -71,7 +71,7 @@
71#define RGBLED_SPLIT { 49, 49 } 71#define RGBLED_SPLIT { 49, 49 }
72#define RGBLIGHT_ANIMATIONS 72#define RGBLIGHT_ANIMATIONS
73 73
74#define DRIVER_LED_TOTAL RGBLED_NUM 74#define RGB_MATRIX_LED_COUNT RGBLED_NUM
75#define RGB_MATRIX_SPLIT RGBLED_SPLIT 75#define RGB_MATRIX_SPLIT RGBLED_SPLIT
76#define RGB_MATRIX_CENTER { 128, 34 } 76#define RGB_MATRIX_CENTER { 128, 34 }
77#define RGB_MATRIX_LED_FLUSH_LIMIT 33 77#define RGB_MATRIX_LED_FLUSH_LIMIT 33
diff --git a/keyboards/rgbkb/pan/config.h b/keyboards/rgbkb/pan/config.h
index 5b6ca7e876..35699147db 100644
--- a/keyboards/rgbkb/pan/config.h
+++ b/keyboards/rgbkb/pan/config.h
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
25#define ENCODER_RESOLUTION 4 25#define ENCODER_RESOLUTION 4
26#define RGBLED_NUM 64 26#define RGBLED_NUM 64
27#define RGBLIGHT_ANIMATIONS 27#define RGBLIGHT_ANIMATIONS
28#define DRIVER_LED_TOTAL RGBLED_NUM 28#define RGB_MATRIX_LED_COUNT RGBLED_NUM
29 29
30/* COL2ROW, ROW2COL*/ 30/* COL2ROW, ROW2COL*/
31#define DIODE_DIRECTION COL2ROW 31#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/rgbkb/pan/pan.c b/keyboards/rgbkb/pan/pan.c
index 6a17456390..f0194ebdfd 100644
--- a/keyboards/rgbkb/pan/pan.c
+++ b/keyboards/rgbkb/pan/pan.c
@@ -22,13 +22,13 @@
22# include "ws2812.h" 22# include "ws2812.h"
23 23
24// LED color buffer 24// LED color buffer
25LED_TYPE rgb_matrix_ws2812_array[DRIVER_LED_TOTAL]; 25LED_TYPE rgb_matrix_ws2812_array[RGB_MATRIX_LED_COUNT];
26 26
27static void init(void) {} 27static void init(void) {}
28 28
29static void flush(void) { 29static void flush(void) {
30 // Assumes use of RGB_DI_PIN 30 // Assumes use of RGB_DI_PIN
31 ws2812_setleds(rgb_matrix_ws2812_array, DRIVER_LED_TOTAL); 31 ws2812_setleds(rgb_matrix_ws2812_array, RGB_MATRIX_LED_COUNT);
32} 32}
33 33
34// Set an led in the buffer to a color 34// Set an led in the buffer to a color
diff --git a/keyboards/rgbkb/sol/rev1/config.h b/keyboards/rgbkb/sol/rev1/config.h
index 3e08848f6b..48f341583d 100644
--- a/keyboards/rgbkb/sol/rev1/config.h
+++ b/keyboards/rgbkb/sol/rev1/config.h
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
26#else 26#else
27 #define RGBLED_NUM 70 27 #define RGBLED_NUM 70
28#endif 28#endif
29#define DRIVER_LED_TOTAL RGBLED_NUM 29#define RGB_MATRIX_LED_COUNT RGBLED_NUM
30 30
31#define RGB_MATRIX_CENTER { 112, 35 } 31#define RGB_MATRIX_CENTER { 112, 35 }
32 32
diff --git a/keyboards/rgbkb/sol/rev2/config.h b/keyboards/rgbkb/sol/rev2/config.h
index cdaf9c0536..874ec536b1 100644
--- a/keyboards/rgbkb/sol/rev2/config.h
+++ b/keyboards/rgbkb/sol/rev2/config.h
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
48 #endif 48 #endif
49#endif 49#endif
50 50
51#define DRIVER_LED_TOTAL RGBLED_NUM 51#define RGB_MATRIX_LED_COUNT RGBLED_NUM
52 52
53#define RGB_MATRIX_CENTER { 112, 37 } 53#define RGB_MATRIX_CENTER { 112, 37 }
54 54
diff --git a/keyboards/rgbkb/sol3/config.h b/keyboards/rgbkb/sol3/config.h
index 20435a159a..9689f65356 100644
--- a/keyboards/rgbkb/sol3/config.h
+++ b/keyboards/rgbkb/sol3/config.h
@@ -96,7 +96,7 @@
96#define RGBLIGHT_EFFECT_ALTERNATING 96#define RGBLIGHT_EFFECT_ALTERNATING
97#define RGBLIGHT_EFFECT_TWINKLE 97#define RGBLIGHT_EFFECT_TWINKLE
98 98
99#define DRIVER_LED_TOTAL RGBLED_NUM 99#define RGB_MATRIX_LED_COUNT RGBLED_NUM
100#define RGB_MATRIX_SPLIT RGBLED_SPLIT 100#define RGB_MATRIX_SPLIT RGBLED_SPLIT
101#define RGB_MATRIX_CENTER { 81, 28 } 101#define RGB_MATRIX_CENTER { 81, 28 }
102#define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL 102#define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
diff --git a/keyboards/rgbkb/zygomorph/rev1/config.h b/keyboards/rgbkb/zygomorph/rev1/config.h
index 3835a3e705..4c5801f4cf 100644
--- a/keyboards/rgbkb/zygomorph/rev1/config.h
+++ b/keyboards/rgbkb/zygomorph/rev1/config.h
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
49 #define RGBLED_SPLIT { 30, 30 } 49 #define RGBLED_SPLIT { 30, 30 }
50#endif 50#endif
51 51
52#define DRIVER_LED_TOTAL 60 52#define RGB_MATRIX_LED_COUNT 60
53#define RGB_MATRIX_SPLIT { 30, 30 } 53#define RGB_MATRIX_SPLIT { 30, 30 }
54 54
55#ifdef IOS_DEVICE_ENABLE 55#ifdef IOS_DEVICE_ENABLE
diff --git a/keyboards/ryanskidmore/rskeys100/config.h b/keyboards/ryanskidmore/rskeys100/config.h
index 187834f7e3..e80efaef64 100644
--- a/keyboards/ryanskidmore/rskeys100/config.h
+++ b/keyboards/ryanskidmore/rskeys100/config.h
@@ -31,7 +31,7 @@
31/* RGB Data Pin */ 31/* RGB Data Pin */
32#define RGB_DI_PIN C7 32#define RGB_DI_PIN C7
33/* The number of RGB LEDs connected */ 33/* The number of RGB LEDs connected */
34#define DRIVER_LED_TOTAL 118 34#define RGB_MATRIX_LED_COUNT 118
35/* Set the maximum brightness to 110 to avoid going over 500 mA. 35/* Set the maximum brightness to 110 to avoid going over 500 mA.
36 * At full brightness with all three indicator LEDs on, the power draw is about 450 mA. */ 36 * At full brightness with all three indicator LEDs on, the power draw is about 450 mA. */
37#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 110 37#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 110
diff --git a/keyboards/s_ol/0xc_pad/config.h b/keyboards/s_ol/0xc_pad/config.h
index 4260c7a07d..7a6d897e47 100644
--- a/keyboards/s_ol/0xc_pad/config.h
+++ b/keyboards/s_ol/0xc_pad/config.h
@@ -19,7 +19,7 @@
19 19
20/* ws2812 RGB LED */ 20/* ws2812 RGB LED */
21#define RGB_DI_PIN C7 21#define RGB_DI_PIN C7
22#define DRIVER_LED_TOTAL 12 22#define RGB_MATRIX_LED_COUNT 12
23#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 23#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
24#define RGB_MATRIX_CENTER \ 24#define RGB_MATRIX_CENTER \
25 { 112, 63 } 25 { 112, 63 }
diff --git a/keyboards/salicylic_acid3/naked48/keymaps/salicylic/config.h b/keyboards/salicylic_acid3/naked48/keymaps/salicylic/config.h
index 71a43e208c..026e8d9097 100644
--- a/keyboards/salicylic_acid3/naked48/keymaps/salicylic/config.h
+++ b/keyboards/salicylic_acid3/naked48/keymaps/salicylic/config.h
@@ -25,14 +25,14 @@
25 #undef RGBLED_NUM 25 #undef RGBLED_NUM
26#endif 26#endif
27 27
28#define DRIVER_LED_TOTAL 48 28#define RGB_MATRIX_LED_COUNT 48
29 29
30#ifdef RGB_MATRIX_ENABLE 30#ifdef RGB_MATRIX_ENABLE
31# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 31# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
32// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 32// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
33// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 33// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
34# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 34# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
35// # 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) 35// # 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)
36// # 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) 36// # 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)
37// # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 37// # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
38# define RGB_MATRIX_HUE_STEP 8 38# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/salicylic_acid3/naked48/keymaps/via_rgb_matrix/config.h b/keyboards/salicylic_acid3/naked48/keymaps/via_rgb_matrix/config.h
index 7eabf9e831..129e9a5548 100644
--- a/keyboards/salicylic_acid3/naked48/keymaps/via_rgb_matrix/config.h
+++ b/keyboards/salicylic_acid3/naked48/keymaps/via_rgb_matrix/config.h
@@ -25,7 +25,7 @@
25 #undef RGBLED_NUM 25 #undef RGBLED_NUM
26#endif 26#endif
27 27
28#define DRIVER_LED_TOTAL 48 28#define RGB_MATRIX_LED_COUNT 48
29 29
30#ifdef RGB_MATRIX_ENABLE 30#ifdef RGB_MATRIX_ENABLE
31 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses 31 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
@@ -34,7 +34,7 @@
34// #define RGB_DISABLE_TIMEOUT 0 // number of milliseconds to wait until rgb automatically turns off 34// #define RGB_DISABLE_TIMEOUT 0 // number of milliseconds to wait until rgb automatically turns off
35// #define RGB_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects 35// #define RGB_DISABLE_AFTER_TIMEOUT 0 // OBSOLETE: number of ticks to wait until disabling effects
36 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 36 #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
37 #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) 37 #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)
38 #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) 38 #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)
39 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 39 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
40// #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set 40// #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
diff --git a/keyboards/salicylic_acid3/setta21/keymaps/salicylic/config.h b/keyboards/salicylic_acid3/setta21/keymaps/salicylic/config.h
index 06e23ba7a3..0fa44eb3ce 100644
--- a/keyboards/salicylic_acid3/setta21/keymaps/salicylic/config.h
+++ b/keyboards/salicylic_acid3/setta21/keymaps/salicylic/config.h
@@ -21,14 +21,14 @@
21#define TAPPING_FORCE_HOLD 21#define TAPPING_FORCE_HOLD
22#define TAPPING_TERM 180 22#define TAPPING_TERM 180
23 23
24#define DRIVER_LED_TOTAL RGBLED_NUM 24#define RGB_MATRIX_LED_COUNT RGBLED_NUM
25 25
26#ifdef RGB_MATRIX_ENABLE 26#ifdef RGB_MATRIX_ENABLE
27# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 27# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
28// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 28// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
29// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 29// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
30# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 30# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
31// # 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) 31// # 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)
32// # 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) 32// # 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)
33// # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 33// # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
34# define RGB_MATRIX_HUE_STEP 8 34# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/sawnsprojects/satxri6key/config.h b/keyboards/sawnsprojects/satxri6key/config.h
index 077b18d0d8..f1b06ace22 100644
--- a/keyboards/sawnsprojects/satxri6key/config.h
+++ b/keyboards/sawnsprojects/satxri6key/config.h
@@ -59,7 +59,7 @@
59// #define RGBLIGHT_EFFECT_ALTERNATING 59// #define RGBLIGHT_EFFECT_ALTERNATING
60#endif 60#endif
61 61
62#define DRIVER_LED_TOTAL 6 62#define RGB_MATRIX_LED_COUNT 6
63#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 63#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
64#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 64#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
65#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 65#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/senselessclay/ck60/config.h b/keyboards/senselessclay/ck60/config.h
index ea48db4e15..d02cf04421 100644
--- a/keyboards/senselessclay/ck60/config.h
+++ b/keyboards/senselessclay/ck60/config.h
@@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
35 35
36/* RGB matrix lighting */ 36/* RGB matrix lighting */
37#define RGB_DI_PIN B1 37#define RGB_DI_PIN B1
38#define DRIVER_LED_TOTAL 62 38#define RGB_MATRIX_LED_COUNT 62
39#define RGB_MATRIX_KEYPRESSES 39#define RGB_MATRIX_KEYPRESSES
40#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 40#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160 // limit brightness to not overamp the USB 41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160 // limit brightness to not overamp the USB
diff --git a/keyboards/sets3n/kk980/config.h b/keyboards/sets3n/kk980/config.h
index e24468054e..a988171755 100644
--- a/keyboards/sets3n/kk980/config.h
+++ b/keyboards/sets3n/kk980/config.h
@@ -86,7 +86,7 @@
86#endif 86#endif
87 87
88#ifdef RGB_MATRIX_ENABLE 88#ifdef RGB_MATRIX_ENABLE
89#define DRIVER_LED_TOTAL RGBLED_NUM 89#define RGB_MATRIX_LED_COUNT RGBLED_NUM
90#define RGB_MATRIX_KEYPRESSES 90#define RGB_MATRIX_KEYPRESSES
91#endif 91#endif
92 92
diff --git a/keyboards/silverbullet44/config.h b/keyboards/silverbullet44/config.h
index 28339ff431..5e011267f1 100644
--- a/keyboards/silverbullet44/config.h
+++ b/keyboards/silverbullet44/config.h
@@ -55,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
55 #define RGBLED_SPLIT {26, 26} 55 #define RGBLED_SPLIT {26, 26}
56 #define RGBLED_NUM 52 56 #define RGBLED_NUM 52
57 #ifdef RGB_MATRIX_ENABLE 57 #ifdef RGB_MATRIX_ENABLE
58 #define DRIVER_LED_TOTAL 52 58 #define RGB_MATRIX_LED_COUNT 52
59 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 59 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
60 60
61 #define RGB_MATRIX_HUE_STEP 8 61 #define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/skmt/15k/config.h b/keyboards/skmt/15k/config.h
index 6144e332ea..e1f021159e 100644
--- a/keyboards/skmt/15k/config.h
+++ b/keyboards/skmt/15k/config.h
@@ -23,7 +23,7 @@
23 23
24#define RGB_DI_PIN GP1 // RGB LED pin 24#define RGB_DI_PIN GP1 // RGB LED pin
25#define RGBLED_NUM 15 // Number of LEDs 25#define RGBLED_NUM 15 // Number of LEDs
26#define DRIVER_LED_TOTAL 15 // Number of LEDs 26#define RGB_MATRIX_LED_COUNT 15 // Number of LEDs
27#define RGB_DISABLE_WHEN_USB_SUSPENDED 27#define RGB_DISABLE_WHEN_USB_SUSPENDED
28#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 28#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
29#define RGB_MATRIX_LED_FLUSH_LIMIT 16 29#define RGB_MATRIX_LED_FLUSH_LIMIT 16
diff --git a/keyboards/smallkeyboard/config.h b/keyboards/smallkeyboard/config.h
index 20a9f2d88a..7163947920 100644
--- a/keyboards/smallkeyboard/config.h
+++ b/keyboards/smallkeyboard/config.h
@@ -102,7 +102,7 @@
102#define DRIVER_ADDR_1 0b1110100 102#define DRIVER_ADDR_1 0b1110100
103 103
104#define DRIVER_COUNT 1 104#define DRIVER_COUNT 1
105#define DRIVER_LED_TOTAL 6 105#define RGB_MATRIX_LED_COUNT 6
106#endif 106#endif
107//#define RGB_DI_PIN B7 107//#define RGB_DI_PIN B7
108//#ifdef RGB_DI_PIN 108//#ifdef RGB_DI_PIN
diff --git a/keyboards/smallkeyboard/smallkeyboard.c b/keyboards/smallkeyboard/smallkeyboard.c
index af38cb6121..40cf3fc71a 100644
--- a/keyboards/smallkeyboard/smallkeyboard.c
+++ b/keyboards/smallkeyboard/smallkeyboard.c
@@ -17,7 +17,7 @@
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19 19
20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
21 /* Refer to IS31 manual for these locations 21 /* Refer to IS31 manual for these locations
22 * driver 22 * driver
23 * | R location 23 * | R location
diff --git a/keyboards/sofle/keymaps/devdev/config.h b/keyboards/sofle/keymaps/devdev/config.h
index c34da8382b..cb5ff7210a 100644
--- a/keyboards/sofle/keymaps/devdev/config.h
+++ b/keyboards/sofle/keymaps/devdev/config.h
@@ -51,7 +51,7 @@
51#ifdef RGB_MATRIX_ENABLE 51#ifdef RGB_MATRIX_ENABLE
52#define RGBLED_NUM 35 // Number of LEDs 52#define RGBLED_NUM 35 // Number of LEDs
53#define RGBLED_NUM 35 // Number of LEDs 53#define RGBLED_NUM 35 // Number of LEDs
54#define DRIVER_LED_TOTAL RGBLED_NUM 54#define RGB_MATRIX_LED_COUNT RGBLED_NUM
55#endif 55#endif
56 56
57#ifdef RGBLIGHT_ENABLE 57#ifdef RGBLIGHT_ENABLE
@@ -86,7 +86,7 @@
86// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 86// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
87# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 87# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
88# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 88# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
89// # 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) 89// # 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)
90// # 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) 90// # 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)
91# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 91# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
92 92
diff --git a/keyboards/sofle/keymaps/killmaster/config.h b/keyboards/sofle/keymaps/killmaster/config.h
index 9d1de12d5a..db44250c17 100644
--- a/keyboards/sofle/keymaps/killmaster/config.h
+++ b/keyboards/sofle/keymaps/killmaster/config.h
@@ -25,7 +25,7 @@ for more options.
25#ifdef RGB_MATRIX_ENABLE 25#ifdef RGB_MATRIX_ENABLE
26 26
27#define RGBLED_NUM 72 27#define RGBLED_NUM 72
28#define DRIVER_LED_TOTAL RGBLED_NUM 28#define RGB_MATRIX_LED_COUNT RGBLED_NUM
29#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 29#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
30#define RGB_MATRIX_HUE_STEP 8 30#define RGB_MATRIX_HUE_STEP 8
31#define RGB_MATRIX_SAT_STEP 8 31#define RGB_MATRIX_SAT_STEP 8
diff --git a/keyboards/sofle/keymaps/rgb_default/config.h b/keyboards/sofle/keymaps/rgb_default/config.h
index c34da8382b..cb5ff7210a 100644
--- a/keyboards/sofle/keymaps/rgb_default/config.h
+++ b/keyboards/sofle/keymaps/rgb_default/config.h
@@ -51,7 +51,7 @@
51#ifdef RGB_MATRIX_ENABLE 51#ifdef RGB_MATRIX_ENABLE
52#define RGBLED_NUM 35 // Number of LEDs 52#define RGBLED_NUM 35 // Number of LEDs
53#define RGBLED_NUM 35 // Number of LEDs 53#define RGBLED_NUM 35 // Number of LEDs
54#define DRIVER_LED_TOTAL RGBLED_NUM 54#define RGB_MATRIX_LED_COUNT RGBLED_NUM
55#endif 55#endif
56 56
57#ifdef RGBLIGHT_ENABLE 57#ifdef RGBLIGHT_ENABLE
@@ -86,7 +86,7 @@
86// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 86// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
87# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 87# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
88# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 88# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
89// # 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) 89// # 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)
90// # 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) 90// # 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)
91# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 91# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
92 92
diff --git a/keyboards/sofle/keymaps/via/config.h b/keyboards/sofle/keymaps/via/config.h
index 77ce4f2590..0fb2cbf36d 100644
--- a/keyboards/sofle/keymaps/via/config.h
+++ b/keyboards/sofle/keymaps/via/config.h
@@ -29,7 +29,7 @@ for more options.
29# define RGBLED_SPLIT \ 29# define RGBLED_SPLIT \
30 { 36, 36 } 30 { 36, 36 }
31# ifdef RGB_MATRIX_ENABLE 31# ifdef RGB_MATRIX_ENABLE
32# define DRIVER_LED_TOTAL RGBLED_NUM 32# define RGB_MATRIX_LED_COUNT RGBLED_NUM
33# define RGB_MATRIX_SPLIT RGBLED_SPLIT 33# define RGB_MATRIX_SPLIT RGBLED_SPLIT
34# define SPLIT_TRANSPORT_MIRROR 34# define SPLIT_TRANSPORT_MIRROR
35# else 35# else
diff --git a/keyboards/sowbug/68keys/config.h b/keyboards/sowbug/68keys/config.h
index 44d75e670a..48b13e6a28 100644
--- a/keyboards/sowbug/68keys/config.h
+++ b/keyboards/sowbug/68keys/config.h
@@ -40,7 +40,7 @@
40// #define BACKLIGHT_PIN rgb_matrix 40// #define BACKLIGHT_PIN rgb_matrix
41#define RGB_MATRIX_KEYPRESSES 41#define RGB_MATRIX_KEYPRESSES
42#define RGBLED_NUM 68 42#define RGBLED_NUM 68
43#define DRIVER_LED_TOTAL RGBLED_NUM 43#define RGB_MATRIX_LED_COUNT RGBLED_NUM
44#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 44#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
45#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 45#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128
46// RGB Matrix Animation modes. Explicitly enabled 46// RGB Matrix Animation modes. Explicitly enabled
diff --git a/keyboards/sowbug/ansi_tkl/config.h b/keyboards/sowbug/ansi_tkl/config.h
index e4752f9425..f34d4434ff 100644
--- a/keyboards/sowbug/ansi_tkl/config.h
+++ b/keyboards/sowbug/ansi_tkl/config.h
@@ -36,7 +36,7 @@
36#define RGB_DI_PIN B9 36#define RGB_DI_PIN B9
37#define RGB_MATRIX_KEYPRESSES 37#define RGB_MATRIX_KEYPRESSES
38#define RGBLED_NUM 87 38#define RGBLED_NUM 87
39#define DRIVER_LED_TOTAL RGBLED_NUM 39#define RGB_MATRIX_LED_COUNT RGBLED_NUM
40#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 40#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128
42 42
diff --git a/keyboards/spaceholdings/nebula12/config.h b/keyboards/spaceholdings/nebula12/config.h
index 97623f0ff0..07b2e9fc6c 100755
--- a/keyboards/spaceholdings/nebula12/config.h
+++ b/keyboards/spaceholdings/nebula12/config.h
@@ -144,7 +144,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
144#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } 144#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
145 145
146#define DRIVER_COUNT 1 146#define DRIVER_COUNT 1
147#define DRIVER_LED_TOTAL 16 147#define RGB_MATRIX_LED_COUNT 16
148 148
149// These define which keys in the matrix are alphas/mods 149// These define which keys in the matrix are alphas/mods
150// Used for backlight effects so colors are different for 150// Used for backlight effects so colors are different for
diff --git a/keyboards/spaceholdings/nebula12b/config.h b/keyboards/spaceholdings/nebula12b/config.h
index ac3826b253..b4e319b603 100755
--- a/keyboards/spaceholdings/nebula12b/config.h
+++ b/keyboards/spaceholdings/nebula12b/config.h
@@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
68/* RGB options */ 68/* RGB options */
69 69
70#define RGB_DI_PIN D5 70#define RGB_DI_PIN D5
71#define DRIVER_LED_TOTAL 16 71#define RGB_MATRIX_LED_COUNT 16
72#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 72#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
73#define RGB_DISABLE_WHEN_USB_SUSPENDED 73#define RGB_DISABLE_WHEN_USB_SUSPENDED
74#define RGB_MATRIX_KEYPRESSES 74#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/spaceholdings/nebula68/config.h b/keyboards/spaceholdings/nebula68/config.h
index a8a9803d15..0d2db2c824 100755
--- a/keyboards/spaceholdings/nebula68/config.h
+++ b/keyboards/spaceholdings/nebula68/config.h
@@ -128,7 +128,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
128#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 } 128#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
129 129
130#define DRIVER_COUNT 2 130#define DRIVER_COUNT 2
131#define DRIVER_LED_TOTAL 128 131#define RGB_MATRIX_LED_COUNT 128
132 132
133// These define which keys in the matrix are alphas/mods 133// These define which keys in the matrix are alphas/mods
134// Used for backlight effects so colors are different for 134// Used for backlight effects so colors are different for
diff --git a/keyboards/spaceholdings/nebula68b/config.h b/keyboards/spaceholdings/nebula68b/config.h
index 4e22e69e10..b95adb0508 100755
--- a/keyboards/spaceholdings/nebula68b/config.h
+++ b/keyboards/spaceholdings/nebula68b/config.h
@@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
68/* RGB options */ 68/* RGB options */
69 69
70#define RGB_DI_PIN B7 70#define RGB_DI_PIN B7
71#define DRIVER_LED_TOTAL 79 71#define RGB_MATRIX_LED_COUNT 79
72#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 130 72#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 130
73#define RGB_DISABLE_WHEN_USB_SUSPENDED 73#define RGB_DISABLE_WHEN_USB_SUSPENDED
74#define RGB_MATRIX_KEYPRESSES 74#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/spaceholdings/nebula68b/hs/config.h b/keyboards/spaceholdings/nebula68b/hs/config.h
index ac25a8ef1d..b66344facc 100755
--- a/keyboards/spaceholdings/nebula68b/hs/config.h
+++ b/keyboards/spaceholdings/nebula68b/hs/config.h
@@ -15,5 +15,5 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#undef DRIVER_LED_TOTAL 18#undef RGB_MATRIX_LED_COUNT
19#define DRIVER_LED_TOTAL 78 19#define RGB_MATRIX_LED_COUNT 78
diff --git a/keyboards/splitkb/kyria/rev1/config.h b/keyboards/splitkb/kyria/rev1/config.h
index f6f9a98c3e..7bc756c042 100644
--- a/keyboards/splitkb/kyria/rev1/config.h
+++ b/keyboards/splitkb/kyria/rev1/config.h
@@ -82,7 +82,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
82/* RGB matrix support */ 82/* RGB matrix support */
83#ifdef RGB_MATRIX_ENABLE 83#ifdef RGB_MATRIX_ENABLE
84# define SPLIT_TRANSPORT_MIRROR 84# define SPLIT_TRANSPORT_MIRROR
85# define DRIVER_LED_TOTAL RGBLED_NUM // Number of LEDs 85# define RGB_MATRIX_LED_COUNT RGBLED_NUM // Number of LEDs
86# define RGB_MATRIX_SPLIT { 10, 10 } 86# define RGB_MATRIX_SPLIT { 10, 10 }
87# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170 87# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170
88# define RGB_DISABLE_WHEN_USB_SUSPENDED 88# define RGB_DISABLE_WHEN_USB_SUSPENDED
diff --git a/keyboards/splitkb/kyria/rev2/config.h b/keyboards/splitkb/kyria/rev2/config.h
index 6af99e0a7c..1733eddf9a 100644
--- a/keyboards/splitkb/kyria/rev2/config.h
+++ b/keyboards/splitkb/kyria/rev2/config.h
@@ -92,7 +92,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
92/* RGB matrix support */ 92/* RGB matrix support */
93#ifdef RGB_MATRIX_ENABLE 93#ifdef RGB_MATRIX_ENABLE
94# define SPLIT_TRANSPORT_MIRROR 94# define SPLIT_TRANSPORT_MIRROR
95# define DRIVER_LED_TOTAL RGBLED_NUM // Number of LEDs 95# define RGB_MATRIX_LED_COUNT RGBLED_NUM // Number of LEDs
96# define RGB_MATRIX_SPLIT { 10, 10 } 96# define RGB_MATRIX_SPLIT { 10, 10 }
97# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170 97# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170
98# define RGB_DISABLE_WHEN_USB_SUSPENDED 98# define RGB_DISABLE_WHEN_USB_SUSPENDED
diff --git a/keyboards/synapse/config.h b/keyboards/synapse/config.h
index b4311c1402..c52ae2edc8 100644
--- a/keyboards/synapse/config.h
+++ b/keyboards/synapse/config.h
@@ -46,5 +46,5 @@
46//#define RGB_DI_PIN D5 46//#define RGB_DI_PIN D5
47//#define RGBLED_NUM 4 47//#define RGBLED_NUM 4
48 48
49//#define DRIVER_LED_TOTAL RGBLED_NUM 49//#define RGB_MATRIX_LED_COUNT RGBLED_NUM
50//#define RGBLIGHT_DEFAULT_HUE 130 50//#define RGBLIGHT_DEFAULT_HUE 130
diff --git a/keyboards/system76/launch_1/config.h b/keyboards/system76/launch_1/config.h
index 50a6e6f9d7..6f257e9118 100644
--- a/keyboards/system76/launch_1/config.h
+++ b/keyboards/system76/launch_1/config.h
@@ -43,7 +43,7 @@
43 43
44#ifdef RGB_MATRIX_ENABLE 44#ifdef RGB_MATRIX_ENABLE
45# define RGB_DI_PIN E2 45# define RGB_DI_PIN E2
46# define DRIVER_LED_TOTAL 84 46# define RGB_MATRIX_LED_COUNT 84
47# define RGB_MATRIX_KEYPRESSES // Reacts to keypresses 47# define RGB_MATRIX_KEYPRESSES // Reacts to keypresses
48// # define RGB_MATRIX_KEYRELEASES // Reacts to keyreleases (instead of keypresses) 48// # define RGB_MATRIX_KEYRELEASES // Reacts to keyreleases (instead of keypresses)
49// # define RGB_MATRIX_FRAMEBUFFER_EFFECTS // Enables framebuffer effects 49// # define RGB_MATRIX_FRAMEBUFFER_EFFECTS // Enables framebuffer effects
diff --git a/keyboards/system76/launch_1/rgb_matrix_kb.inc b/keyboards/system76/launch_1/rgb_matrix_kb.inc
index 484483e0a1..02de10ed50 100644
--- a/keyboards/system76/launch_1/rgb_matrix_kb.inc
+++ b/keyboards/system76/launch_1/rgb_matrix_kb.inc
@@ -24,13 +24,13 @@ RGB_MATRIX_EFFECT(unlocked)
24#include "dynamic_keymap.h" 24#include "dynamic_keymap.h"
25 25
26static bool active_keys_initialized = false; 26static bool active_keys_initialized = false;
27static uint8_t active_keys_table[DRIVER_LED_TOTAL] = {0}; 27static uint8_t active_keys_table[RGB_MATRIX_LED_COUNT] = {0};
28 28
29static void active_keys_initialize(void) { 29static void active_keys_initialize(void) {
30 for (uint8_t row = 0; row < MATRIX_ROWS; row++) { 30 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
31 for (uint8_t col = 0; col < MATRIX_COLS; col++) { 31 for (uint8_t col = 0; col < MATRIX_COLS; col++) {
32 uint8_t led = g_led_config.matrix_co[row][col]; 32 uint8_t led = g_led_config.matrix_co[row][col];
33 if (led < DRIVER_LED_TOTAL && row < 16 && col < 16) { 33 if (led < RGB_MATRIX_LED_COUNT && row < 16 && col < 16) {
34 active_keys_table[led] = (row << 4) | col; 34 active_keys_table[led] = (row << 4) | col;
35 } 35 }
36 } 36 }
@@ -65,10 +65,10 @@ static bool active_keys(effect_params_t* params) {
65 } 65 }
66 } 66 }
67 67
68 return led_max < DRIVER_LED_TOTAL; 68 return led_max < RGB_MATRIX_LED_COUNT;
69} 69}
70 70
71RGB raw_rgb_data[DRIVER_LED_TOTAL] = {0}; 71RGB raw_rgb_data[RGB_MATRIX_LED_COUNT] = {0};
72 72
73static uint8_t normalize_component(uint8_t component) { 73static uint8_t normalize_component(uint8_t component) {
74 uint16_t x = (uint16_t)component; 74 uint16_t x = (uint16_t)component;
@@ -94,7 +94,7 @@ static bool raw_rgb(effect_params_t* params) {
94 RGB rgb = normalize_index(i); 94 RGB rgb = normalize_index(i);
95 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 95 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
96 } 96 }
97 return led_max < DRIVER_LED_TOTAL; 97 return led_max < RGB_MATRIX_LED_COUNT;
98} 98}
99 99
100static uint8_t unlocked_keys[8][2] = { 100static uint8_t unlocked_keys[8][2] = {
@@ -151,7 +151,7 @@ static bool unlocked(effect_params_t* params) {
151 RGB rgb = hsv_to_rgb(hsv); 151 RGB rgb = hsv_to_rgb(hsv);
152 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 152 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
153 } 153 }
154 return led_max < DRIVER_LED_TOTAL; 154 return led_max < RGB_MATRIX_LED_COUNT;
155} 155}
156 156
157#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS 157#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
diff --git a/keyboards/system76/system76_ec.c b/keyboards/system76/system76_ec.c
index f6c8af82fe..5474181eca 100644
--- a/keyboards/system76/system76_ec.c
+++ b/keyboards/system76/system76_ec.c
@@ -129,7 +129,7 @@ static enum rgb_matrix_effects mode_map[] = {
129 129
130_Static_assert(sizeof(mode_map) == MODE_LAST, "mode_map_length"); 130_Static_assert(sizeof(mode_map) == MODE_LAST, "mode_map_length");
131 131
132RGB raw_rgb_data[DRIVER_LED_TOTAL]; 132RGB raw_rgb_data[RGB_MATRIX_LED_COUNT];
133 133
134// clang-format off 134// clang-format off
135rgb_config_t layer_rgb[DYNAMIC_KEYMAP_LAYER_COUNT] = { 135rgb_config_t layer_rgb[DYNAMIC_KEYMAP_LAYER_COUNT] = {
@@ -294,7 +294,7 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
294 case CMD_LED_GET_COLOR: 294 case CMD_LED_GET_COLOR:
295 if (!bootloader_unlocked) { 295 if (!bootloader_unlocked) {
296 uint8_t index = data[2]; 296 uint8_t index = data[2];
297 if (index < DRIVER_LED_TOTAL) { 297 if (index < RGB_MATRIX_LED_COUNT) {
298 data[3] = raw_rgb_data[index].r; 298 data[3] = raw_rgb_data[index].r;
299 data[4] = raw_rgb_data[index].g; 299 data[4] = raw_rgb_data[index].g;
300 data[5] = raw_rgb_data[index].b; 300 data[5] = raw_rgb_data[index].b;
@@ -322,7 +322,7 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
322 .b = data[5], 322 .b = data[5],
323 }; 323 };
324 324
325 if (index < DRIVER_LED_TOTAL) { 325 if (index < RGB_MATRIX_LED_COUNT) {
326 raw_rgb_data[index] = rgb; 326 raw_rgb_data[index] = rgb;
327 data[1] = 0; 327 data[1] = 0;
328 } else { 328 } else {
diff --git a/keyboards/terrazzo/config.h b/keyboards/terrazzo/config.h
index ec4ded7eb9..1d7224a09b 100644
--- a/keyboards/terrazzo/config.h
+++ b/keyboards/terrazzo/config.h
@@ -76,7 +76,7 @@ so there is only one configuration. */
76 76
77#define LED_DRIVER_ADDR_1 0x74 77#define LED_DRIVER_ADDR_1 0x74
78#define LED_DRIVER_COUNT 1 78#define LED_DRIVER_COUNT 1
79#define DRIVER_LED_TOTAL 105 79#define LED_MATRIX_LED_COUNT 105
80#define LED_MATRIX_ROWS 15 80#define LED_MATRIX_ROWS 15
81#define LED_MATRIX_COLS 7 81#define LED_MATRIX_COLS 7
82#define LED_MATRIX_MAXIMUM_BRIGHTNESS 20 82#define LED_MATRIX_MAXIMUM_BRIGHTNESS 20
diff --git a/keyboards/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c
index 731efec20c..35452acf4a 100644
--- a/keyboards/terrazzo/terrazzo.c
+++ b/keyboards/terrazzo/terrazzo.c
@@ -21,7 +21,7 @@
21 #include "print.h" 21 #include "print.h"
22 #include "quantum.h" 22 #include "quantum.h"
23 23
24const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 24const is31_led PROGMEM g_is31_leds[LED_MATRIX_LED_COUNT] = {
25/* Refer to IS31 manual for these locations 25/* Refer to IS31 manual for these locations
26 * https://cdn-learn.adafruit.com/downloads/pdf/adafruit-15x7-7x15-charlieplex-led-matrix-charliewing-featherwing.pdf 26 * https://cdn-learn.adafruit.com/downloads/pdf/adafruit-15x7-7x15-charlieplex-led-matrix-charliewing-featherwing.pdf
27 */ 27 */
@@ -90,7 +90,7 @@ uint8_t terrazzo_effect = 1;
90 90
91void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) { 91void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) {
92 uint8_t target = y * LED_MATRIX_COLS + x; 92 uint8_t target = y * LED_MATRIX_COLS + x;
93 if (target < DRIVER_LED_TOTAL && target >= 0) { 93 if (target < LED_MATRIX_LED_COUNT && target >= 0) {
94 led_matrix_set_value(y * LED_MATRIX_COLS + x, value); 94 led_matrix_set_value(y * LED_MATRIX_COLS + x, value);
95 } 95 }
96} 96}
@@ -117,10 +117,10 @@ void terrazzo_scroll_pixel(bool clockwise) {
117 terrazzo_led_index = terrazzo_led_index - 1; 117 terrazzo_led_index = terrazzo_led_index - 1;
118 } 118 }
119 119
120 if (terrazzo_led_index >= DRIVER_LED_TOTAL) { 120 if (terrazzo_led_index >= LED_MATRIX_LED_COUNT) {
121 terrazzo_led_index = 0; 121 terrazzo_led_index = 0;
122 } else if (terrazzo_led_index <= 0 ) { 122 } else if (terrazzo_led_index <= 0 ) {
123 terrazzo_led_index = DRIVER_LED_TOTAL - 1; 123 terrazzo_led_index = LED_MATRIX_LED_COUNT - 1;
124 } 124 }
125} 125}
126 126
diff --git a/keyboards/tkc/portico/config.h b/keyboards/tkc/portico/config.h
index 0a52f2e3af..38919aa55c 100644
--- a/keyboards/tkc/portico/config.h
+++ b/keyboards/tkc/portico/config.h
@@ -58,12 +58,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
58# define DRIVER_COUNT 2 58# define DRIVER_COUNT 2
59# define DRIVER_1_LED_TOTAL 36 59# define DRIVER_1_LED_TOTAL 36
60# define DRIVER_2_LED_TOTAL 31 60# define DRIVER_2_LED_TOTAL 31
61# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 61# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
62 62
63#else 63#else
64// IS31FL3731 driver 64// IS31FL3731 driver
65#define DRIVER_COUNT 2 65#define DRIVER_COUNT 2
66#define DRIVER_LED_TOTAL 67 66#define RGB_MATRIX_LED_COUNT 67
67 67
68#define RGB_BACKLIGHT_ENABLED 1 68#define RGB_BACKLIGHT_ENABLED 1
69 69
diff --git a/keyboards/tkc/portico/portico.c b/keyboards/tkc/portico/portico.c
index 0e2b4b2499..47dfe88231 100644
--- a/keyboards/tkc/portico/portico.c
+++ b/keyboards/tkc/portico/portico.c
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
21 21
22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
23 { 0, C2_1, C3_1, C4_1 }, 23 { 0, C2_1, C3_1, C4_1 },
24 { 0, C1_1, C3_2, C4_2 }, 24 { 0, C1_1, C3_2, C4_2 },
25 { 0, C1_2, C2_2, C4_3 }, 25 { 0, C1_2, C2_2, C4_3 },
diff --git a/keyboards/tkc/portico68v2/config.h b/keyboards/tkc/portico68v2/config.h
index 5cfdf43c3d..4b6d5a2ef6 100644
--- a/keyboards/tkc/portico68v2/config.h
+++ b/keyboards/tkc/portico68v2/config.h
@@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
35#define DRIVER_ADDR_1 0b0110000 35#define DRIVER_ADDR_1 0b0110000
36#define DRIVER_COUNT 1 36#define DRIVER_COUNT 1
37#define DRIVER_1_LED_TOTAL 82 37#define DRIVER_1_LED_TOTAL 82
38#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 38#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
39#define DRIVER_INDICATOR_LED_TOTAL 0 39#define DRIVER_INDICATOR_LED_TOTAL 0
40#define RGB_MATRIX_CENTER { 116, 32 } 40#define RGB_MATRIX_CENTER { 116, 32 }
41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 175 41#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 175
diff --git a/keyboards/tkc/portico68v2/portico68v2.c b/keyboards/tkc/portico68v2/portico68v2.c
index 8e98034ca5..6022d5674f 100644
--- a/keyboards/tkc/portico68v2/portico68v2.c
+++ b/keyboards/tkc/portico68v2/portico68v2.c
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18#include "portico68v2.h" 18#include "portico68v2.h"
19 19
20#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
21const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
22 {0, CS18_SW1, CS17_SW1, CS16_SW1}, /* RGB1 */ 22 {0, CS18_SW1, CS17_SW1, CS16_SW1}, /* RGB1 */
23 {0, CS18_SW2, CS17_SW2, CS16_SW2}, /* RGB2 */ 23 {0, CS18_SW2, CS17_SW2, CS16_SW2}, /* RGB2 */
24 {0, CS18_SW3, CS17_SW3, CS16_SW3}, /* RGB3 */ 24 {0, CS18_SW3, CS17_SW3, CS16_SW3}, /* RGB3 */
diff --git a/keyboards/tkc/portico75/config.h b/keyboards/tkc/portico75/config.h
index 63a9ee4958..fe00c26b6a 100644
--- a/keyboards/tkc/portico75/config.h
+++ b/keyboards/tkc/portico75/config.h
@@ -100,12 +100,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
100# define DRIVER_ADDR_1 0b0110000 100# define DRIVER_ADDR_1 0b0110000
101# define DRIVER_COUNT 1 101# define DRIVER_COUNT 1
102# define DRIVER_1_LED_TOTAL 98 102# define DRIVER_1_LED_TOTAL 98
103# define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 103# define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
104# define DRIVER_INDICATOR_LED_TOTAL 0 104# define DRIVER_INDICATOR_LED_TOTAL 0
105#else 105#else
106// WT_RGB IS31FL3741 driver code 106// WT_RGB IS31FL3741 driver code
107# define DRIVER_COUNT 1 107# define DRIVER_COUNT 1
108# define DRIVER_LED_TOTAL 98 108# define RGB_MATRIX_LED_COUNT 98
109 109
110# define RGB_BACKLIGHT_ENABLED 1 110# define RGB_BACKLIGHT_ENABLED 1
111 111
diff --git a/keyboards/tkc/portico75/portico75.c b/keyboards/tkc/portico75/portico75.c
index 812345b384..30fafa2dfc 100644
--- a/keyboards/tkc/portico75/portico75.c
+++ b/keyboards/tkc/portico75/portico75.c
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
20 20
21#ifdef RGB_MATRIX_ENABLE 21#ifdef RGB_MATRIX_ENABLE
22 22
23const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 23const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
24 {0, CS18_SW1, CS17_SW1, CS16_SW1}, 24 {0, CS18_SW1, CS17_SW1, CS16_SW1},
25 {0, CS18_SW2, CS17_SW2, CS16_SW2}, 25 {0, CS18_SW2, CS17_SW2, CS16_SW2},
26 {0, CS18_SW3, CS17_SW3, CS16_SW3}, 26 {0, CS18_SW3, CS17_SW3, CS16_SW3},
diff --git a/keyboards/tominabox1/le_chiffre/config.h b/keyboards/tominabox1/le_chiffre/config.h
index e5715bdbce..f6fed063c5 100644
--- a/keyboards/tominabox1/le_chiffre/config.h
+++ b/keyboards/tominabox1/le_chiffre/config.h
@@ -39,7 +39,7 @@
39 39
40#define RGBLED_NUM 11 40#define RGBLED_NUM 11
41 41
42#define DRIVER_LED_TOTAL RGBLED_NUM 42#define RGB_MATRIX_LED_COUNT RGBLED_NUM
43 43
44#define RGBLIGHT_ANIMATIONS 44#define RGBLIGHT_ANIMATIONS
45 45
diff --git a/keyboards/tzarc/djinn/rev1/config.h b/keyboards/tzarc/djinn/rev1/config.h
index 14cdaf2fdb..6f001cbd0c 100644
--- a/keyboards/tzarc/djinn/rev1/config.h
+++ b/keyboards/tzarc/djinn/rev1/config.h
@@ -21,7 +21,7 @@
21 21
22// RGB configuration 22// RGB configuration
23#define RGBLED_NUM 84 23#define RGBLED_NUM 84
24#define DRIVER_LED_TOTAL 84 24#define RGB_MATRIX_LED_COUNT 84
25#define RGB_MATRIX_SPLIT \ 25#define RGB_MATRIX_SPLIT \
26 { 42, 42 } 26 { 42, 42 }
27#define RGB_POWER_ENABLE_PIN B1 27#define RGB_POWER_ENABLE_PIN B1
diff --git a/keyboards/tzarc/djinn/rev2/config.h b/keyboards/tzarc/djinn/rev2/config.h
index 52c909d442..b0deb6d991 100644
--- a/keyboards/tzarc/djinn/rev2/config.h
+++ b/keyboards/tzarc/djinn/rev2/config.h
@@ -23,7 +23,7 @@
23 23
24// RGB configuration 24// RGB configuration
25#define RGBLED_NUM 86 25#define RGBLED_NUM 86
26#define DRIVER_LED_TOTAL 86 26#define RGB_MATRIX_LED_COUNT 86
27#define RGB_MATRIX_SPLIT \ 27#define RGB_MATRIX_SPLIT \
28 { 43, 43 } 28 { 43, 43 }
29#define RGB_POWER_ENABLE_PIN B0 29#define RGB_POWER_ENABLE_PIN B0
diff --git a/keyboards/ungodly/launch_pad/config.h b/keyboards/ungodly/launch_pad/config.h
index d641bab9cd..54ef84a71e 100644
--- a/keyboards/ungodly/launch_pad/config.h
+++ b/keyboards/ungodly/launch_pad/config.h
@@ -45,13 +45,13 @@
45#define RGB_DI_PIN F7 45#define RGB_DI_PIN F7
46#ifdef RGB_MATRIX_ENABLE 46#ifdef RGB_MATRIX_ENABLE
47# define RGBLED_NUM 22 47# define RGBLED_NUM 22
48# define DRIVER_LED_TOTAL RGBLED_NUM 48# define RGB_MATRIX_LED_COUNT RGBLED_NUM
49# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 49# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
50// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 50// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
51// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 51// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
52# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 52# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
53# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 53# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
54// # 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) 54// # 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)
55// # 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) 55// # 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)
56# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 56# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
57# define RGB_MATRIX_HUE_STEP 8 57# define RGB_MATRIX_HUE_STEP 8
diff --git a/keyboards/wekey/we27/config.h b/keyboards/wekey/we27/config.h
index a02bc1661a..67428d5dec 100644
--- a/keyboards/wekey/we27/config.h
+++ b/keyboards/wekey/we27/config.h
@@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
48// The pin connected to the data pin of the LEDs 48// The pin connected to the data pin of the LEDs
49#define RGB_DI_PIN C6 49#define RGB_DI_PIN C6
50// The number of LEDs connected 50// The number of LEDs connected
51#define DRIVER_LED_TOTAL 27 51#define RGB_MATRIX_LED_COUNT 27
52 52
53#define RGB_MATRIX_KEYPRESSES // reacts to keypresses 53#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
54#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 54#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
diff --git a/keyboards/wilba_tech/rama_works_kara/config.h b/keyboards/wilba_tech/rama_works_kara/config.h
index 3ce58330ed..7c9489e922 100644
--- a/keyboards/wilba_tech/rama_works_kara/config.h
+++ b/keyboards/wilba_tech/rama_works_kara/config.h
@@ -27,7 +27,7 @@
27 27
28// IS31FL3731 driver 28// IS31FL3731 driver
29#define DRIVER_COUNT 2 29#define DRIVER_COUNT 2
30#define DRIVER_LED_TOTAL 72 30#define RGB_MATRIX_LED_COUNT 72
31 31
32// COL2ROW or ROW2COL 32// COL2ROW or ROW2COL
33#define DIODE_DIRECTION COL2ROW 33#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/wilba_tech/rama_works_koyu/config.h b/keyboards/wilba_tech/rama_works_koyu/config.h
index 8a02f0bd98..9b5048d11a 100644
--- a/keyboards/wilba_tech/rama_works_koyu/config.h
+++ b/keyboards/wilba_tech/rama_works_koyu/config.h
@@ -27,7 +27,7 @@
27 27
28// IS31FL3731 driver 28// IS31FL3731 driver
29#define DRIVER_COUNT 2 29#define DRIVER_COUNT 2
30#define DRIVER_LED_TOTAL 72 30#define RGB_MATRIX_LED_COUNT 72
31 31
32// COL2ROW or ROW2COL 32// COL2ROW or ROW2COL
33#define DIODE_DIRECTION COL2ROW 33#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/wilba_tech/rama_works_m10_c/config.h b/keyboards/wilba_tech/rama_works_m10_c/config.h
index d42c329b96..456023d414 100644
--- a/keyboards/wilba_tech/rama_works_m10_c/config.h
+++ b/keyboards/wilba_tech/rama_works_m10_c/config.h
@@ -47,7 +47,7 @@
47 47
48// IS31FL3731 driver 48// IS31FL3731 driver
49#define DRIVER_COUNT 1 49#define DRIVER_COUNT 1
50#define DRIVER_LED_TOTAL 12 50#define RGB_MATRIX_LED_COUNT 12
51 51
52// Enable WT RGB backlight 52// Enable WT RGB backlight
53#define RGB_BACKLIGHT_ENABLED 1 53#define RGB_BACKLIGHT_ENABLED 1
diff --git a/keyboards/wilba_tech/rama_works_m50_a/config.h b/keyboards/wilba_tech/rama_works_m50_a/config.h
index fb6ffd8aba..6284a4027a 100644
--- a/keyboards/wilba_tech/rama_works_m50_a/config.h
+++ b/keyboards/wilba_tech/rama_works_m50_a/config.h
@@ -47,7 +47,7 @@
47 47
48// IS31FL3731 driver 48// IS31FL3731 driver
49#define DRIVER_COUNT 2 49#define DRIVER_COUNT 2
50#define DRIVER_LED_TOTAL 72 50#define RGB_MATRIX_LED_COUNT 72
51 51
52// Enable WT RGB backlight 52// Enable WT RGB backlight
53#define RGB_BACKLIGHT_ENABLED 1 53#define RGB_BACKLIGHT_ENABLED 1
diff --git a/keyboards/wilba_tech/rama_works_m60_a/config.h b/keyboards/wilba_tech/rama_works_m60_a/config.h
index 55fa484716..22abe6ee60 100644
--- a/keyboards/wilba_tech/rama_works_m60_a/config.h
+++ b/keyboards/wilba_tech/rama_works_m60_a/config.h
@@ -27,7 +27,7 @@
27 27
28// IS31FL3731 driver 28// IS31FL3731 driver
29#define DRIVER_COUNT 2 29#define DRIVER_COUNT 2
30#define DRIVER_LED_TOTAL 72 30#define RGB_MATRIX_LED_COUNT 72
31 31
32// COL2ROW or ROW2COL 32// COL2ROW or ROW2COL
33#define DIODE_DIRECTION COL2ROW 33#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/wilba_tech/rama_works_m65_b/config.h b/keyboards/wilba_tech/rama_works_m65_b/config.h
index c753a93841..1982b2e8e1 100644
--- a/keyboards/wilba_tech/rama_works_m65_b/config.h
+++ b/keyboards/wilba_tech/rama_works_m65_b/config.h
@@ -47,7 +47,7 @@
47 47
48// IS31FL3731 driver 48// IS31FL3731 driver
49#define DRIVER_COUNT 2 49#define DRIVER_COUNT 2
50#define DRIVER_LED_TOTAL 72 50#define RGB_MATRIX_LED_COUNT 72
51 51
52// Enable WT RGB backlight 52// Enable WT RGB backlight
53#define RGB_BACKLIGHT_ENABLED 1 53#define RGB_BACKLIGHT_ENABLED 1
diff --git a/keyboards/wilba_tech/rama_works_m65_bx/config.h b/keyboards/wilba_tech/rama_works_m65_bx/config.h
index f0eb52940c..83c2be2001 100644
--- a/keyboards/wilba_tech/rama_works_m65_bx/config.h
+++ b/keyboards/wilba_tech/rama_works_m65_bx/config.h
@@ -47,7 +47,7 @@
47 47
48// IS31FL3731 driver 48// IS31FL3731 driver
49#define DRIVER_COUNT 2 49#define DRIVER_COUNT 2
50#define DRIVER_LED_TOTAL 72 50#define RGB_MATRIX_LED_COUNT 72
51 51
52// Enable WT RGB backlight 52// Enable WT RGB backlight
53#define RGB_BACKLIGHT_ENABLED 1 53#define RGB_BACKLIGHT_ENABLED 1
diff --git a/keyboards/wilba_tech/rama_works_u80_a/config.h b/keyboards/wilba_tech/rama_works_u80_a/config.h
index 44582ada4f..4653556190 100644
--- a/keyboards/wilba_tech/rama_works_u80_a/config.h
+++ b/keyboards/wilba_tech/rama_works_u80_a/config.h
@@ -99,7 +99,7 @@
99 99
100// IS31FL3731 driver 100// IS31FL3731 driver
101#define DRIVER_COUNT 3 101#define DRIVER_COUNT 3
102#define DRIVER_LED_TOTAL 108 102#define RGB_MATRIX_LED_COUNT 108
103 103
104#define RGB_BACKLIGHT_ENABLED 1 104#define RGB_BACKLIGHT_ENABLED 1
105 105
diff --git a/keyboards/wilba_tech/wt60_b/config.h b/keyboards/wilba_tech/wt60_b/config.h
index a68cfa5ec2..43a10844da 100644
--- a/keyboards/wilba_tech/wt60_b/config.h
+++ b/keyboards/wilba_tech/wt60_b/config.h
@@ -50,7 +50,7 @@
50 50
51// IS31FL3731 driver 51// IS31FL3731 driver
52#define DRIVER_COUNT 2 52#define DRIVER_COUNT 2
53#define DRIVER_LED_TOTAL 72 53#define RGB_MATRIX_LED_COUNT 72
54 54
55#define RGB_BACKLIGHT_ENABLED 1 55#define RGB_BACKLIGHT_ENABLED 1
56 56
diff --git a/keyboards/wilba_tech/wt60_bx/config.h b/keyboards/wilba_tech/wt60_bx/config.h
index cab8276545..d26b3a02ba 100644
--- a/keyboards/wilba_tech/wt60_bx/config.h
+++ b/keyboards/wilba_tech/wt60_bx/config.h
@@ -50,7 +50,7 @@
50 50
51// IS31FL3731 driver 51// IS31FL3731 driver
52#define DRIVER_COUNT 2 52#define DRIVER_COUNT 2
53#define DRIVER_LED_TOTAL 72 53#define RGB_MATRIX_LED_COUNT 72
54 54
55#define RGB_BACKLIGHT_ENABLED 1 55#define RGB_BACKLIGHT_ENABLED 1
56 56
diff --git a/keyboards/wilba_tech/wt60_c/config.h b/keyboards/wilba_tech/wt60_c/config.h
index 47636eef4b..489207d56c 100644
--- a/keyboards/wilba_tech/wt60_c/config.h
+++ b/keyboards/wilba_tech/wt60_c/config.h
@@ -50,7 +50,7 @@
50 50
51// IS31FL3731 driver 51// IS31FL3731 driver
52#define DRIVER_COUNT 2 52#define DRIVER_COUNT 2
53#define DRIVER_LED_TOTAL 72 53#define RGB_MATRIX_LED_COUNT 72
54 54
55#define RGB_BACKLIGHT_ENABLED 1 55#define RGB_BACKLIGHT_ENABLED 1
56 56
diff --git a/keyboards/wilba_tech/wt_rgb_backlight.c b/keyboards/wilba_tech/wt_rgb_backlight.c
index a696fe7ed4..e0a04ce32c 100644
--- a/keyboards/wilba_tech/wt_rgb_backlight.c
+++ b/keyboards/wilba_tech/wt_rgb_backlight.c
@@ -162,7 +162,7 @@ uint32_t g_any_key_hit = 0;
162// ADDR_2 is not needed. it is here as a dummy 162// ADDR_2 is not needed. it is here as a dummy
163#define ISSI_ADDR_1 0x50 163#define ISSI_ADDR_1 0x50
164 164
165const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 165const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
166/* Refer to IS31 manual for these locations 166/* Refer to IS31 manual for these locations
167 * driver 167 * driver
168 * | R location 168 * | R location
@@ -243,7 +243,7 @@ const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
243#define ISSI_ADDR_1 0x50 243#define ISSI_ADDR_1 0x50
244#define ISSI_ADDR_2 0x52 244#define ISSI_ADDR_2 0x52
245 245
246const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 246const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
247/* Refer to IS31 manual for these locations 247/* Refer to IS31 manual for these locations
248 * driver 248 * driver
249 * | R location 249 * | R location
@@ -386,7 +386,7 @@ const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
386// set to 0 for write, 1 for read (as per I2C protocol) 386// set to 0 for write, 1 for read (as per I2C protocol)
387#define ISSI_ADDR_1 0x74 387#define ISSI_ADDR_1 0x74
388 388
389const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 389const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
390/* Refer to IS31 manual for these locations 390/* Refer to IS31 manual for these locations
391 * driver 391 * driver
392 * | R location 392 * | R location
@@ -418,7 +418,7 @@ const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
418#define ISSI_ADDR_2 0x76 // 11101[10] <- SDA 418#define ISSI_ADDR_2 0x76 // 11101[10] <- SDA
419#define ISSI_ADDR_3 0x75 // 11101[01] <- SCL 419#define ISSI_ADDR_3 0x75 // 11101[01] <- SCL
420 420
421const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 421const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
422/* Refer to IS31 manual for these locations 422/* Refer to IS31 manual for these locations
423 * driver 423 * driver
424 * | R location 424 * | R location
@@ -545,7 +545,7 @@ const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
545#define ISSI_ADDR_1 0x74 545#define ISSI_ADDR_1 0x74
546#define ISSI_ADDR_2 0x76 546#define ISSI_ADDR_2 0x76
547 547
548const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 548const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
549/* Refer to IS31 manual for these locations 549/* Refer to IS31 manual for these locations
550 * driver 550 * driver
551 * | R location 551 * | R location
@@ -626,7 +626,7 @@ const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
626#define ISSI_ADDR_1 0x74 626#define ISSI_ADDR_1 0x74
627#define ISSI_ADDR_2 0x77 627#define ISSI_ADDR_2 0x77
628 628
629const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 629const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
630/* Refer to IS31 manual for these locations 630/* Refer to IS31 manual for these locations
631 * driver 631 * driver
632 * | R location 632 * | R location
@@ -712,7 +712,7 @@ const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
712#define ISSI_ADDR_1 0x30 712#define ISSI_ADDR_1 0x30
713#define ISSI_ADDR_2 713#define ISSI_ADDR_2
714 714
715const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 715const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
716/* Refer to IS31 manual for these locations 716/* Refer to IS31 manual for these locations
717 * driver 717 * driver
718 * | R location 718 * | R location
@@ -842,7 +842,7 @@ const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
842#define ISSI_ADDR_1 0x74 842#define ISSI_ADDR_1 0x74
843#define ISSI_ADDR_2 843#define ISSI_ADDR_2
844 844
845const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 845const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
846 {0, C1_9, C3_10, C4_10}, // LB1 846 {0, C1_9, C3_10, C4_10}, // LB1
847 {0, C1_10, C2_10, C4_11}, // LB2 847 {0, C1_10, C2_10, C4_11}, // LB2
848 {0, C1_11, C2_11, C3_11}, // LB3 848 {0, C1_11, C2_11, C3_11}, // LB3
@@ -862,7 +862,7 @@ const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
862#define ISSI_ADDR_1 0x74 862#define ISSI_ADDR_1 0x74
863#define ISSI_ADDR_2 0x76 863#define ISSI_ADDR_2 0x76
864 864
865const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 865const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
866/* Refer to IS31 manual for these locations 866/* Refer to IS31 manual for these locations
867 * driver 867 * driver
868 * | R location 868 * | R location
@@ -1832,12 +1832,12 @@ void backlight_set_color( int index, uint8_t red, uint8_t green, uint8_t blue )
1832 IS31FL3733_set_color( index, red, green, blue ); 1832 IS31FL3733_set_color( index, red, green, blue );
1833 } 1833 }
1834#elif defined(RGB_BACKLIGHT_DAWN60) 1834#elif defined(RGB_BACKLIGHT_DAWN60)
1835 if( index < DRIVER_LED_TOTAL ) { 1835 if( index < RGB_MATRIX_LED_COUNT ) {
1836 IS31FL3731_set_color( index, red, green, blue ); 1836 IS31FL3731_set_color( index, red, green, blue );
1837 } else { 1837 } else {
1838 g_ws2812_leds[index - DRIVER_LED_TOTAL].r = red; 1838 g_ws2812_leds[index - RGB_MATRIX_LED_COUNT].r = red;
1839 g_ws2812_leds[index - DRIVER_LED_TOTAL].g = green; 1839 g_ws2812_leds[index - RGB_MATRIX_LED_COUNT].g = green;
1840 g_ws2812_leds[index - DRIVER_LED_TOTAL].b = blue; 1840 g_ws2812_leds[index - RGB_MATRIX_LED_COUNT].b = blue;
1841 ws2812_setleds(g_ws2812_leds, WS2812_LED_TOTAL); 1841 ws2812_setleds(g_ws2812_leds, WS2812_LED_TOTAL);
1842 } 1842 }
1843#else 1843#else
@@ -2131,9 +2131,9 @@ void backlight_effect_alphas_mods(void)
2131 for (int i = 0; i < WS2812_LED_TOTAL; i++) { 2131 for (int i = 0; i < WS2812_LED_TOTAL; i++) {
2132 if ((RGB_UNDERGLOW_ALPHA_TOP_START <= i && i <= RGB_UNDERGLOW_ALPHA_TOP_END) || 2132 if ((RGB_UNDERGLOW_ALPHA_TOP_START <= i && i <= RGB_UNDERGLOW_ALPHA_TOP_END) ||
2133 (RGB_UNDERGLOW_ALPHA_BOT_START <= i && i <= RGB_UNDERGLOW_ALPHA_BOT_END)) { 2133 (RGB_UNDERGLOW_ALPHA_BOT_START <= i && i <= RGB_UNDERGLOW_ALPHA_BOT_END)) {
2134 backlight_set_color(i + DRIVER_LED_TOTAL, rgb1.r, rgb1.g, rgb1.b); 2134 backlight_set_color(i + RGB_MATRIX_LED_COUNT, rgb1.r, rgb1.g, rgb1.b);
2135 } else { 2135 } else {
2136 backlight_set_color(i + DRIVER_LED_TOTAL, rgb2.r, rgb2.g, rgb2.b); 2136 backlight_set_color(i + RGB_MATRIX_LED_COUNT, rgb2.r, rgb2.g, rgb2.b);
2137 } 2137 }
2138 } 2138 }
2139#endif 2139#endif
@@ -2927,7 +2927,7 @@ void backlight_init_drivers(void)
2927#elif defined(RGB_BACKLIGHT_HS60) 2927#elif defined(RGB_BACKLIGHT_HS60)
2928 IS31FL3733_init( ISSI_ADDR_1, 0 ); 2928 IS31FL3733_init( ISSI_ADDR_1, 0 );
2929 2929
2930 for ( int index = 0; index < DRIVER_LED_TOTAL; index++ ) 2930 for ( int index = 0; index < RGB_MATRIX_LED_COUNT; index++ )
2931 { 2931 {
2932#if defined(HS60_ANSI) 2932#if defined(HS60_ANSI)
2933 bool enabled = !( ( index == 48-1 ) || //LA48 2933 bool enabled = !( ( index == 48-1 ) || //LA48
@@ -2949,7 +2949,7 @@ void backlight_init_drivers(void)
2949 IS31FL3733_init( ISSI_ADDR_1, 0 ); 2949 IS31FL3733_init( ISSI_ADDR_1, 0 );
2950 IS31FL3733_init( ISSI_ADDR_2, 0 ); 2950 IS31FL3733_init( ISSI_ADDR_2, 0 );
2951 2951
2952 for ( int index = 0; index < DRIVER_LED_TOTAL; index++ ) 2952 for ( int index = 0; index < RGB_MATRIX_LED_COUNT; index++ )
2953 { 2953 {
2954 bool enabled = !( ( index == 61-1 ) || //LA61 2954 bool enabled = !( ( index == 61-1 ) || //LA61
2955 ( index > 6+64-1 ) ); //LB7-LB64 2955 ( index > 6+64-1 ) ); //LB7-LB64
@@ -2964,7 +2964,7 @@ void backlight_init_drivers(void)
2964 IS31FL3733_init( ISSI_ADDR_1, 0 ); 2964 IS31FL3733_init( ISSI_ADDR_1, 0 );
2965 IS31FL3733_init( ISSI_ADDR_2, 0 ); 2965 IS31FL3733_init( ISSI_ADDR_2, 0 );
2966 2966
2967 for ( int index = 0; index < DRIVER_LED_TOTAL; index++ ) 2967 for ( int index = 0; index < RGB_MATRIX_LED_COUNT; index++ )
2968 { 2968 {
2969 bool enabled = !( ( index == 61-1 ) || //LA61 2969 bool enabled = !( ( index == 61-1 ) || //LA61
2970 ( (index >= 2+64-1) && (index <= 4+64-1) ) || 2970 ( (index >= 2+64-1) && (index <= 4+64-1) ) ||
@@ -2994,7 +2994,7 @@ void backlight_init_drivers(void)
2994 IS31FL3733_init( ISSI_ADDR_1, 0 ); 2994 IS31FL3733_init( ISSI_ADDR_1, 0 );
2995 IS31FL3733_init( ISSI_ADDR_2, 0 ); 2995 IS31FL3733_init( ISSI_ADDR_2, 0 );
2996 2996
2997 for ( int index = 0; index < DRIVER_LED_TOTAL; index++ ) 2997 for ( int index = 0; index < RGB_MATRIX_LED_COUNT; index++ )
2998 { 2998 {
2999 bool enabled = !( ( index == 61-1 ) || //LA61 2999 bool enabled = !( ( index == 61-1 ) || //LA61
3000 ( index > 5+64-1 ) ); //LB6-LB64 3000 ( index > 5+64-1 ) ); //LB6-LB64
@@ -3007,7 +3007,7 @@ void backlight_init_drivers(void)
3007#elif defined(RGB_BACKLIGHT_PORTICO75) 3007#elif defined(RGB_BACKLIGHT_PORTICO75)
3008 IS31FL3741_init( ISSI_ADDR_1 ); 3008 IS31FL3741_init( ISSI_ADDR_1 );
3009 bool enabled = true; 3009 bool enabled = true;
3010 for ( int index = 0; index < DRIVER_LED_TOTAL; index++ ) 3010 for ( int index = 0; index < RGB_MATRIX_LED_COUNT; index++ )
3011 { 3011 {
3012 IS31FL3741_set_led_control_register( index, enabled, enabled, enabled ); 3012 IS31FL3741_set_led_control_register( index, enabled, enabled, enabled );
3013 } 3013 }
@@ -3017,7 +3017,7 @@ void backlight_init_drivers(void)
3017 IS31FL3733_init( ISSI_ADDR_1, 0 ); 3017 IS31FL3733_init( ISSI_ADDR_1, 0 );
3018 IS31FL3733_init( ISSI_ADDR_2, 0 ); 3018 IS31FL3733_init( ISSI_ADDR_2, 0 );
3019 3019
3020 for ( int index = 0; index < DRIVER_LED_TOTAL; index++ ) 3020 for ( int index = 0; index < RGB_MATRIX_LED_COUNT; index++ )
3021 { 3021 {
3022 bool enabled = !( ( index == 61-1 ) || //LA61 3022 bool enabled = !( ( index == 61-1 ) || //LA61
3023 ( index > 6+64-1 ) ); //LB7-LB64 3023 ( index > 6+64-1 ) ); //LB7-LB64
@@ -3044,7 +3044,7 @@ void backlight_init_drivers(void)
3044 bool disable_spacebar_stab_leds = false; 3044 bool disable_spacebar_stab_leds = false;
3045#endif 3045#endif
3046 3046
3047 for ( int index = 0; index < DRIVER_LED_TOTAL; index++ ) 3047 for ( int index = 0; index < RGB_MATRIX_LED_COUNT; index++ )
3048 { 3048 {
3049 // OR the possible "disabled" cases together, then NOT the result to get the enabled state 3049 // OR the possible "disabled" cases together, then NOT the result to get the enabled state
3050 // LC6 LD13 not present on Zeal65 3050 // LC6 LD13 not present on Zeal65
diff --git a/keyboards/wilba_tech/zeal60/config.h b/keyboards/wilba_tech/zeal60/config.h
index b3c0477342..eaf7b76504 100644
--- a/keyboards/wilba_tech/zeal60/config.h
+++ b/keyboards/wilba_tech/zeal60/config.h
@@ -27,7 +27,7 @@
27 27
28// IS31FL3731 driver 28// IS31FL3731 driver
29#define DRIVER_COUNT 2 29#define DRIVER_COUNT 2
30#define DRIVER_LED_TOTAL 72 30#define RGB_MATRIX_LED_COUNT 72
31 31
32// COL2ROW or ROW2COL 32// COL2ROW or ROW2COL
33#define DIODE_DIRECTION COL2ROW 33#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/wilba_tech/zeal65/config.h b/keyboards/wilba_tech/zeal65/config.h
index 27f4fd4b44..d5e83a11e3 100644
--- a/keyboards/wilba_tech/zeal65/config.h
+++ b/keyboards/wilba_tech/zeal65/config.h
@@ -27,7 +27,7 @@
27 27
28// IS31FL3731 driver 28// IS31FL3731 driver
29#define DRIVER_COUNT 2 29#define DRIVER_COUNT 2
30#define DRIVER_LED_TOTAL 72 30#define RGB_MATRIX_LED_COUNT 72
31 31
32// COL2ROW or ROW2COL 32// COL2ROW or ROW2COL
33#define DIODE_DIRECTION COL2ROW 33#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/winry/winry315/config.h b/keyboards/winry/winry315/config.h
index 1a9617c1e3..3d0921590e 100644
--- a/keyboards/winry/winry315/config.h
+++ b/keyboards/winry/winry315/config.h
@@ -62,7 +62,7 @@
62 62
63// RGB Matrix configuration. 63// RGB Matrix configuration.
64#ifdef RGB_MATRIX_ENABLE 64#ifdef RGB_MATRIX_ENABLE
65# define DRIVER_LED_TOTAL RGBLED_NUM 65# define RGB_MATRIX_LED_COUNT RGBLED_NUM
66# define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL 66# define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
67 67
68# define RGB_MATRIX_CENTER \ 68# define RGB_MATRIX_CENTER \
diff --git a/keyboards/winry/winry315/winry315.c b/keyboards/winry/winry315/winry315.c
index c741ffeb74..d8042606c0 100644
--- a/keyboards/winry/winry315/winry315.c
+++ b/keyboards/winry/winry315/winry315.c
@@ -223,7 +223,7 @@ void raw_hid_receive_kb(uint8_t *data, uint8_t length) {
223void winry315_set_orientation(uint8_t orientation) { 223void winry315_set_orientation(uint8_t orientation) {
224 (void)orientation; 224 (void)orientation;
225#if defined(RGB_MATRIX_ENABLE) 225#if defined(RGB_MATRIX_ENABLE)
226 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; ++i) { 226 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; ++i) {
227 led_point_t * dst_point = &g_led_config.point[i]; 227 led_point_t * dst_point = &g_led_config.point[i];
228 const led_point_t *src_point = &initial_led_config.point[i]; 228 const led_point_t *src_point = &initial_led_config.point[i];
229 uint8_t x = pgm_read_byte(&src_point->x); 229 uint8_t x = pgm_read_byte(&src_point->x);
diff --git a/keyboards/work_louder/loop/config.h b/keyboards/work_louder/loop/config.h
index 32856ecebf..fc1ce6c902 100644
--- a/keyboards/work_louder/loop/config.h
+++ b/keyboards/work_louder/loop/config.h
@@ -79,7 +79,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
79//#endif 79//#endif
80 80
81#define RGB_DI_PIN F1 81#define RGB_DI_PIN F1
82#define DRIVER_LED_TOTAL 9 82#define RGB_MATRIX_LED_COUNT 9
83#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 83#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
84#define RGB_MATRIX_DISABLE_KEYCODES 84#define RGB_MATRIX_DISABLE_KEYCODES
85#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set 85#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
diff --git a/keyboards/work_louder/micro/config.h b/keyboards/work_louder/micro/config.h
index a4d5ca2c93..0f1c76ff41 100644
--- a/keyboards/work_louder/micro/config.h
+++ b/keyboards/work_louder/micro/config.h
@@ -11,7 +11,7 @@
11 */ 11 */
12 12
13#define RGB_DI_PIN D1 13#define RGB_DI_PIN D1
14#define DRIVER_LED_TOTAL 12 14#define RGB_MATRIX_LED_COUNT 12
15#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 15#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
16#define RGB_MATRIX_DISABLE_KEYCODES 16#define RGB_MATRIX_DISABLE_KEYCODES
17#define RGB_DISABLE_WHEN_USB_SUSPENDED 17#define RGB_DISABLE_WHEN_USB_SUSPENDED
diff --git a/keyboards/work_louder/nano/config.h b/keyboards/work_louder/nano/config.h
index 7a7d03b8a3..8d3732e825 100644
--- a/keyboards/work_louder/nano/config.h
+++ b/keyboards/work_louder/nano/config.h
@@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
80//#endif 80//#endif
81 81
82#define RGB_DI_PIN F6 82#define RGB_DI_PIN F6
83#define DRIVER_LED_TOTAL 2 83#define RGB_MATRIX_LED_COUNT 2
84#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 84#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
85#define RGB_MATRIX_DISABLE_KEYCODES 85#define RGB_MATRIX_DISABLE_KEYCODES
86#define RGB_DISABLE_WHEN_USB_SUSPENDED 86#define RGB_DISABLE_WHEN_USB_SUSPENDED
diff --git a/keyboards/work_louder/work_board/config.h b/keyboards/work_louder/work_board/config.h
index 512c282794..28cc82e412 100644
--- a/keyboards/work_louder/work_board/config.h
+++ b/keyboards/work_louder/work_board/config.h
@@ -69,7 +69,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
69//#endif 69//#endif
70 70
71#define RGB_DI_PIN D1 71#define RGB_DI_PIN D1
72#define DRIVER_LED_TOTAL 49 72#define RGB_MATRIX_LED_COUNT 49
73#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 73#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
74#define RGB_MATRIX_DISABLE_KEYCODES 74#define RGB_MATRIX_DISABLE_KEYCODES
75#define RGB_DISABLE_WHEN_USB_SUSPENDED 75#define RGB_DISABLE_WHEN_USB_SUSPENDED
diff --git a/keyboards/xbows/knight/config.h b/keyboards/xbows/knight/config.h
index f0fc0f712a..1612f636bd 100644
--- a/keyboards/xbows/knight/config.h
+++ b/keyboards/xbows/knight/config.h
@@ -64,5 +64,5 @@
64# define DRIVER_1_LED_TOTAL 36 64# define DRIVER_1_LED_TOTAL 36
65# define DRIVER_2_LED_TOTAL 35 65# define DRIVER_2_LED_TOTAL 35
66# define DRIVER_3_LED_TOTAL 15 66# define DRIVER_3_LED_TOTAL 15
67# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + DRIVER_3_LED_TOTAL) 67# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + DRIVER_3_LED_TOTAL)
68#endif 68#endif
diff --git a/keyboards/xbows/knight/knight.c b/keyboards/xbows/knight/knight.c
index 9d9d7cfd10..9b6628b63e 100644
--- a/keyboards/xbows/knight/knight.c
+++ b/keyboards/xbows/knight/knight.c
@@ -15,7 +15,7 @@
15 */ 15 */
16 #include "knight.h" 16 #include "knight.h"
17 #ifdef RGB_MATRIX_ENABLE 17 #ifdef RGB_MATRIX_ENABLE
18 const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
19 19
20 {0, C1_3, C2_3, C3_3}, // L01 20 {0, C1_3, C2_3, C3_3}, // L01
21 {0, C1_4, C2_4, C3_4}, // L02 21 {0, C1_4, C2_4, C3_4}, // L02
diff --git a/keyboards/xbows/knight_plus/config.h b/keyboards/xbows/knight_plus/config.h
index 91c6dcebd4..bc496ee3da 100644
--- a/keyboards/xbows/knight_plus/config.h
+++ b/keyboards/xbows/knight_plus/config.h
@@ -64,5 +64,5 @@
64# define DRIVER_1_LED_TOTAL 36 64# define DRIVER_1_LED_TOTAL 36
65# define DRIVER_2_LED_TOTAL 35 65# define DRIVER_2_LED_TOTAL 35
66# define DRIVER_3_LED_TOTAL 15 66# define DRIVER_3_LED_TOTAL 15
67# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + DRIVER_3_LED_TOTAL) 67# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + DRIVER_3_LED_TOTAL)
68#endif 68#endif
diff --git a/keyboards/xbows/knight_plus/knight_plus.c b/keyboards/xbows/knight_plus/knight_plus.c
index bf008fd091..bdf862dbe4 100644
--- a/keyboards/xbows/knight_plus/knight_plus.c
+++ b/keyboards/xbows/knight_plus/knight_plus.c
@@ -15,7 +15,7 @@
15 */ 15 */
16 #include "knight_plus.h" 16 #include "knight_plus.h"
17 #ifdef RGB_MATRIX_ENABLE 17 #ifdef RGB_MATRIX_ENABLE
18 const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
19 19
20 {0, C1_3, C2_3, C3_3}, // L01 20 {0, C1_3, C2_3, C3_3}, // L01
21 {0, C1_4, C2_4, C3_4}, // L02 21 {0, C1_4, C2_4, C3_4}, // L02
diff --git a/keyboards/xbows/nature/config.h b/keyboards/xbows/nature/config.h
index a248fa37bb..444133cd00 100644
--- a/keyboards/xbows/nature/config.h
+++ b/keyboards/xbows/nature/config.h
@@ -66,5 +66,5 @@
66# define DRIVER_1_LED_TOTAL 36 66# define DRIVER_1_LED_TOTAL 36
67# define DRIVER_2_LED_TOTAL 36 67# define DRIVER_2_LED_TOTAL 36
68# define DRIVER_3_LED_TOTAL 15 68# define DRIVER_3_LED_TOTAL 15
69# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + DRIVER_3_LED_TOTAL) 69# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + DRIVER_3_LED_TOTAL)
70#endif 70#endif
diff --git a/keyboards/xbows/nature/nature.c b/keyboards/xbows/nature/nature.c
index d4957003bd..48534d87c4 100644
--- a/keyboards/xbows/nature/nature.c
+++ b/keyboards/xbows/nature/nature.c
@@ -15,7 +15,7 @@
15 */ 15 */
16 #include "nature.h" 16 #include "nature.h"
17 #ifdef RGB_MATRIX_ENABLE 17 #ifdef RGB_MATRIX_ENABLE
18 const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
19 19
20 {0, C1_3, C2_3, C3_3}, // L01 20 {0, C1_3, C2_3, C3_3}, // L01
21 {0, C1_4, C2_4, C3_4}, // L02 21 {0, C1_4, C2_4, C3_4}, // L02
diff --git a/keyboards/xbows/numpad/config.h b/keyboards/xbows/numpad/config.h
index 7eb56caea7..5022f26339 100644
--- a/keyboards/xbows/numpad/config.h
+++ b/keyboards/xbows/numpad/config.h
@@ -59,5 +59,5 @@
59 59
60# define DRIVER_ADDR_1 0b1110111 60# define DRIVER_ADDR_1 0b1110111
61# define DRIVER_COUNT 1 61# define DRIVER_COUNT 1
62# define DRIVER_LED_TOTAL 22 62# define RGB_MATRIX_LED_COUNT 22
63#endif 63#endif
diff --git a/keyboards/xbows/numpad/numpad.c b/keyboards/xbows/numpad/numpad.c
index bbc2a1e98a..f998e8122e 100644
--- a/keyboards/xbows/numpad/numpad.c
+++ b/keyboards/xbows/numpad/numpad.c
@@ -15,7 +15,7 @@
15 */ 15 */
16 #include "numpad.h" 16 #include "numpad.h"
17 #ifdef RGB_MATRIX_ENABLE 17 #ifdef RGB_MATRIX_ENABLE
18 const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
19 19
20 {0, C3_3, C2_3, C1_3}, // L01 20 {0, C3_3, C2_3, C1_3}, // L01
21 {0, C3_4, C2_4, C1_4}, // L02 21 {0, C3_4, C2_4, C1_4}, // L02
diff --git a/keyboards/xbows/ranger/config.h b/keyboards/xbows/ranger/config.h
index 6c557bf341..15846a8dc9 100644
--- a/keyboards/xbows/ranger/config.h
+++ b/keyboards/xbows/ranger/config.h
@@ -63,6 +63,6 @@
63# define DRIVER_1_LED_TOTAL 36 63# define DRIVER_1_LED_TOTAL 36
64# define DRIVER_2_LED_TOTAL 36 64# define DRIVER_2_LED_TOTAL 36
65# define DRIVER_3_LED_TOTAL 15 65# define DRIVER_3_LED_TOTAL 15
66# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + DRIVER_3_LED_TOTAL) 66# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + DRIVER_3_LED_TOTAL)
67 67
68#endif 68#endif
diff --git a/keyboards/xbows/ranger/ranger.c b/keyboards/xbows/ranger/ranger.c
index 9a09918967..c4b0e54544 100644
--- a/keyboards/xbows/ranger/ranger.c
+++ b/keyboards/xbows/ranger/ranger.c
@@ -15,7 +15,7 @@
15 */ 15 */
16 #include "ranger.h" 16 #include "ranger.h"
17 #ifdef RGB_MATRIX_ENABLE 17 #ifdef RGB_MATRIX_ENABLE
18const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 18const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
19 19
20 {0, C3_3, C2_3, C1_3}, // L01 20 {0, C3_3, C2_3, C1_3}, // L01
21 {0, C3_4, C2_4, C1_4}, // L02 21 {0, C3_4, C2_4, C1_4}, // L02
diff --git a/keyboards/xbows/woody/config.h b/keyboards/xbows/woody/config.h
index d6b7f32c68..ad2a7101cf 100644
--- a/keyboards/xbows/woody/config.h
+++ b/keyboards/xbows/woody/config.h
@@ -69,5 +69,5 @@
69# define DRIVER_COUNT 2 69# define DRIVER_COUNT 2
70# define DRIVER_1_LED_TOTAL 35 70# define DRIVER_1_LED_TOTAL 35
71# define DRIVER_2_LED_TOTAL 32 71# define DRIVER_2_LED_TOTAL 32
72# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 72# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
73#endif 73#endif
diff --git a/keyboards/xbows/woody/woody.c b/keyboards/xbows/woody/woody.c
index 41601d39a9..9dd57d2fd3 100644
--- a/keyboards/xbows/woody/woody.c
+++ b/keyboards/xbows/woody/woody.c
@@ -1,6 +1,6 @@
1#include "woody.h" 1#include "woody.h"
2#ifdef RGB_MATRIX_ENABLE 2#ifdef RGB_MATRIX_ENABLE
3const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
4 4
5 {0, C8_8, C7_8, C6_8}, // LA17 5 {0, C8_8, C7_8, C6_8}, // LA17
6 {0, C9_8, C7_7, C6_7}, // LA16 6 {0, C9_8, C7_7, C6_7}, // LA16
diff --git a/keyboards/xelus/dawn60/rev1/config.h b/keyboards/xelus/dawn60/rev1/config.h
index 4b3a1641b9..af4c31e478 100644
--- a/keyboards/xelus/dawn60/rev1/config.h
+++ b/keyboards/xelus/dawn60/rev1/config.h
@@ -31,7 +31,7 @@
31 31
32// IS31FL3731 driver 32// IS31FL3731 driver
33#define DRIVER_COUNT 2 33#define DRIVER_COUNT 2
34#define DRIVER_LED_TOTAL 64 34#define RGB_MATRIX_LED_COUNT 64
35 35
36// COL2ROW or ROW2COL 36// COL2ROW or ROW2COL
37#define DIODE_DIRECTION COL2ROW 37#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/xelus/dawn60/rev1_qmk/config.h b/keyboards/xelus/dawn60/rev1_qmk/config.h
index 11c59f8847..755e2c9000 100644
--- a/keyboards/xelus/dawn60/rev1_qmk/config.h
+++ b/keyboards/xelus/dawn60/rev1_qmk/config.h
@@ -48,7 +48,7 @@
48#define DRIVER_1_LED_TOTAL 32 48#define DRIVER_1_LED_TOTAL 32
49#define DRIVER_2_LED_TOTAL 32 49#define DRIVER_2_LED_TOTAL 32
50#define ISSI_DRIVER_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 50#define ISSI_DRIVER_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
51#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + WS2812_LED_TOTAL) 51#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + WS2812_LED_TOTAL)
52 52
53#define RGB_MATRIX_STARTUP_VAL 80 53#define RGB_MATRIX_STARTUP_VAL 80
54#define RGB_MATRIX_KEYPRESSES 54#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/xelus/dawn60/rev1_qmk/rev1_qmk.c b/keyboards/xelus/dawn60/rev1_qmk/rev1_qmk.c
index 8b044ee4f6..203ad4b5c6 100644
--- a/keyboards/xelus/dawn60/rev1_qmk/rev1_qmk.c
+++ b/keyboards/xelus/dawn60/rev1_qmk/rev1_qmk.c
@@ -25,7 +25,7 @@
25#ifdef RGB_MATRIX_ENABLE 25#ifdef RGB_MATRIX_ENABLE
26LED_TYPE rgb_matrix_ws2812_array[WS2812_LED_TOTAL]; 26LED_TYPE rgb_matrix_ws2812_array[WS2812_LED_TOTAL];
27 27
28const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 28const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
29/* Refer to IS31 manual for these locations 29/* Refer to IS31 manual for these locations
30 * driver 30 * driver
31 * | R location 31 * | R location
diff --git a/keyboards/xelus/la_plus/config.h b/keyboards/xelus/la_plus/config.h
index 40d53adb06..9561596fd0 100755
--- a/keyboards/xelus/la_plus/config.h
+++ b/keyboards/xelus/la_plus/config.h
@@ -42,7 +42,7 @@
42// The pin connected to the data pin of the LEDs 42// The pin connected to the data pin of the LEDs
43#define RGB_DI_PIN F1 43#define RGB_DI_PIN F1
44// The number of LEDs connected 44// The number of LEDs connected
45#define DRIVER_LED_TOTAL 32 45#define RGB_MATRIX_LED_COUNT 32
46 46
47#define RGB_MATRIX_STARTUP_VAL 80 47#define RGB_MATRIX_STARTUP_VAL 80
48#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 48#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
diff --git a/keyboards/xelus/pachi/rgb/rev1/config.h b/keyboards/xelus/pachi/rgb/rev1/config.h
index 9eda99ed32..9b14fbcbf5 100644
--- a/keyboards/xelus/pachi/rgb/rev1/config.h
+++ b/keyboards/xelus/pachi/rgb/rev1/config.h
@@ -58,8 +58,8 @@
58 58
59#define DRIVER_COUNT 1 59#define DRIVER_COUNT 1
60#define DRIVER_1_LED_TOTAL 117 60#define DRIVER_1_LED_TOTAL 117
61#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 61#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
62#define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL 62#define ISSI_DRIVER_TOTAL RGB_MATRIX_LED_COUNT
63 63
64#define RGB_MATRIX_STARTUP_VAL 80 64#define RGB_MATRIX_STARTUP_VAL 80
65#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 65#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/xelus/pachi/rgb/rev1/rev1.c b/keyboards/xelus/pachi/rgb/rev1/rev1.c
index 7074265009..7dd446a41e 100644
--- a/keyboards/xelus/pachi/rgb/rev1/rev1.c
+++ b/keyboards/xelus/pachi/rgb/rev1/rev1.c
@@ -22,7 +22,7 @@ void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
22#ifdef RGB_MATRIX_ENABLE 22#ifdef RGB_MATRIX_ENABLE
23#include "i2c_master.h" 23#include "i2c_master.h"
24#include "drivers/led/issi/is31fl3741.h" 24#include "drivers/led/issi/is31fl3741.h"
25const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 25const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
26/* Refer to IS31 manual for these locations 26/* Refer to IS31 manual for these locations
27 * driver 27 * driver
28 * | R location 28 * | R location
diff --git a/keyboards/xelus/pachi/rgb/rev2/config.h b/keyboards/xelus/pachi/rgb/rev2/config.h
index 6295228c31..52a8331867 100644
--- a/keyboards/xelus/pachi/rgb/rev2/config.h
+++ b/keyboards/xelus/pachi/rgb/rev2/config.h
@@ -55,8 +55,8 @@
55 55
56#define DRIVER_COUNT 1 56#define DRIVER_COUNT 1
57#define DRIVER_1_LED_TOTAL 117 57#define DRIVER_1_LED_TOTAL 117
58#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL 58#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
59#define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL 59#define ISSI_DRIVER_TOTAL RGB_MATRIX_LED_COUNT
60 60
61#define RGB_MATRIX_STARTUP_VAL 80 61#define RGB_MATRIX_STARTUP_VAL 80
62#define RGB_MATRIX_FRAMEBUFFER_EFFECTS 62#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
diff --git a/keyboards/xelus/pachi/rgb/rev2/rev2.c b/keyboards/xelus/pachi/rgb/rev2/rev2.c
index f8ca9ec53e..53552d2909 100644
--- a/keyboards/xelus/pachi/rgb/rev2/rev2.c
+++ b/keyboards/xelus/pachi/rgb/rev2/rev2.c
@@ -22,7 +22,7 @@ void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
22#ifdef RGB_MATRIX_ENABLE 22#ifdef RGB_MATRIX_ENABLE
23#include "i2c_master.h" 23#include "i2c_master.h"
24#include "drivers/led/issi/is31fl3741.h" 24#include "drivers/led/issi/is31fl3741.h"
25const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 25const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
26/* Refer to IS31 manual for these locations 26/* Refer to IS31 manual for these locations
27 * driver 27 * driver
28 * | R location 28 * | R location
diff --git a/keyboards/xelus/valor/rev2/config.h b/keyboards/xelus/valor/rev2/config.h
index 44a16e9b7e..875d8e988f 100644
--- a/keyboards/xelus/valor/rev2/config.h
+++ b/keyboards/xelus/valor/rev2/config.h
@@ -58,7 +58,7 @@
58/* RGB Matrix */ 58/* RGB Matrix */
59#define RGB_DI_PIN A9 59#define RGB_DI_PIN A9
60#define RGBLED_NUM 28 60#define RGBLED_NUM 28
61#define DRIVER_LED_TOTAL 28 61#define RGB_MATRIX_LED_COUNT 28
62#define NOP_FUDGE 0.4 62#define NOP_FUDGE 0.4
63 63
64// RGB PWM 64// RGB PWM
diff --git a/keyboards/yandrstudio/nz64/config.h b/keyboards/yandrstudio/nz64/config.h
index 665cc96275..224eb16bb3 100644
--- a/keyboards/yandrstudio/nz64/config.h
+++ b/keyboards/yandrstudio/nz64/config.h
@@ -37,7 +37,7 @@
37#ifdef RGB_MATRIX_ENABLE 37#ifdef RGB_MATRIX_ENABLE
38# define RGB_DI_PIN A7 38# define RGB_DI_PIN A7
39# define RGBLED_NUM 82 39# define RGBLED_NUM 82
40# define DRIVER_LED_TOTAL RGBLED_NUM 40# define RGB_MATRIX_LED_COUNT RGBLED_NUM
41 41
42# define WS2812_PWM_DRIVER PWMD3 // default: PWMD2 42# define WS2812_PWM_DRIVER PWMD3 // default: PWMD2
43# define WS2812_PWM_CHANNEL 2 // default: 2 43# define WS2812_PWM_CHANNEL 2 // default: 2
@@ -105,7 +105,7 @@
105#ifdef RGBLIGHT_ENABLE 105#ifdef RGBLIGHT_ENABLE
106# define RGB_DI_PIN A7 106# define RGB_DI_PIN A7
107# define RGBLED_NUM 82 107# define RGBLED_NUM 82
108# define DRIVER_LED_TOTAL RGBLED_NUM 108# define RGB_MATRIX_LED_COUNT RGBLED_NUM
109 109
110# define WS2812_PWM_DRIVER PWMD3 // default: PWMD2 110# define WS2812_PWM_DRIVER PWMD3 // default: PWMD2
111# define WS2812_PWM_CHANNEL 2 // default: 2 111# define WS2812_PWM_CHANNEL 2 // default: 2
diff --git a/keyboards/yandrstudio/nz67v2/config.h b/keyboards/yandrstudio/nz67v2/config.h
index 77f050aa1f..faa7f82141 100644
--- a/keyboards/yandrstudio/nz67v2/config.h
+++ b/keyboards/yandrstudio/nz67v2/config.h
@@ -46,7 +46,7 @@
46 46
47# define RGB_DI_PIN B5 47# define RGB_DI_PIN B5
48# define RGBLED_NUM 86 48# define RGBLED_NUM 86
49# define DRIVER_LED_TOTAL RGBLED_NUM 49# define RGB_MATRIX_LED_COUNT RGBLED_NUM
50 50
51# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 51# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180
52# define RGBLIGHT_VAL_STEP 5 52# define RGBLIGHT_VAL_STEP 5
diff --git a/keyboards/yandrstudio/tg67/config.h b/keyboards/yandrstudio/tg67/config.h
index 767e54687d..d4ef221dee 100644
--- a/keyboards/yandrstudio/tg67/config.h
+++ b/keyboards/yandrstudio/tg67/config.h
@@ -35,7 +35,7 @@
35 35
36# define RGB_DI_PIN A7 36# define RGB_DI_PIN A7
37# define RGBLED_NUM 69 37# define RGBLED_NUM 69
38# define DRIVER_LED_TOTAL RGBLED_NUM 38# define RGB_MATRIX_LED_COUNT RGBLED_NUM
39 39
40# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 250 40# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 250
41# define RGBLIGHT_VAL_STEP 5 41# define RGBLIGHT_VAL_STEP 5
diff --git a/keyboards/yanghu/unicorne/config.h b/keyboards/yanghu/unicorne/config.h
index 749f7f69e4..285f3209aa 100644
--- a/keyboards/yanghu/unicorne/config.h
+++ b/keyboards/yanghu/unicorne/config.h
@@ -51,7 +51,7 @@
51/* RGB LED */ 51/* RGB LED */
52#define RGB_DI_PIN B1 52#define RGB_DI_PIN B1
53#define RGBLED_NUM 8 53#define RGBLED_NUM 8
54#define DRIVER_LED_TOTAL RGBLED_NUM 54#define RGB_MATRIX_LED_COUNT RGBLED_NUM
55#define RGBLIGHT_EFFECT_BREATHING 55#define RGBLIGHT_EFFECT_BREATHING
56#define RGBLIGHT_EFFECT_RAINBOW_MOOD 56#define RGBLIGHT_EFFECT_RAINBOW_MOOD
57#define RGBLIGHT_EFFECT_RAINBOW_SWIRL 57#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
diff --git a/keyboards/yncognito/batpad/config.h b/keyboards/yncognito/batpad/config.h
index a9cac6d816..4db1cdf568 100644
--- a/keyboards/yncognito/batpad/config.h
+++ b/keyboards/yncognito/batpad/config.h
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
39#define DIODE_DIRECTION COL2ROW 39#define DIODE_DIRECTION COL2ROW
40 40
41#define RGB_DI_PIN B5 41#define RGB_DI_PIN B5
42#define DRIVER_LED_TOTAL 8 42#define RGB_MATRIX_LED_COUNT 8
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/yushakobo/quick17/config.h b/keyboards/yushakobo/quick17/config.h
index 3595bf20c6..36dc55747d 100644
--- a/keyboards/yushakobo/quick17/config.h
+++ b/keyboards/yushakobo/quick17/config.h
@@ -52,13 +52,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
52#define RGBLED_NUM 18 52#define RGBLED_NUM 18
53 53
54#ifdef RGB_MATRIX_ENABLE 54#ifdef RGB_MATRIX_ENABLE
55# define DRIVER_LED_TOTAL RGBLED_NUM 55# define RGB_MATRIX_LED_COUNT RGBLED_NUM
56# define RGB_MATRIX_KEYPRESSES // reacts to keypresses 56# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
57// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 57// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
58// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 58// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
59# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 59# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
60# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 60# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
61// # 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) 61// # 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)
62// # 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) 62// # 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)
63# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. 63# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
64// HSV_TEAL 64// HSV_TEAL
diff --git a/keyboards/yushakobo/quick17/rgb_matrix_kb.inc b/keyboards/yushakobo/quick17/rgb_matrix_kb.inc
index 0232b05ab9..d0071205af 100644
--- a/keyboards/yushakobo/quick17/rgb_matrix_kb.inc
+++ b/keyboards/yushakobo/quick17/rgb_matrix_kb.inc
@@ -27,7 +27,7 @@ enum lighting_types {
27 NUM_L 27 NUM_L
28}; 28};
29 29
30const uint8_t rgb_keymaps [][DRIVER_LED_TOTAL] = { 30const uint8_t rgb_keymaps [][RGB_MATRIX_LED_COUNT] = {
31 [_CONTROL] = LED_LAYOUT( 31 [_CONTROL] = LED_LAYOUT(
32 _____, INDC2, INDC1, INDC2, INDC3, INDC4, 32 _____, INDC2, INDC1, INDC2, INDC3, INDC4,
33 _____, INDC1, INDC1, INDC1, INDC3, INDC4, 33 _____, INDC1, INDC1, INDC1, INDC3, INDC4,
diff --git a/layouts/community/ortho_3x10/bbaserdem/config.h b/layouts/community/ortho_3x10/bbaserdem/config.h
index d781d34478..b792b2e6fa 100644
--- a/layouts/community/ortho_3x10/bbaserdem/config.h
+++ b/layouts/community/ortho_3x10/bbaserdem/config.h
@@ -17,5 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17#ifdef KEYBOARD_40percentclub_gherkin 17#ifdef KEYBOARD_40percentclub_gherkin
18 #define MUSIC_MAP 18 #define MUSIC_MAP
19 #define RGB_DI_PIN F6 19 #define RGB_DI_PIN F6
20 #define DRIVER_LED_TOTAL 10 20 #define RGB_MATRIX_LED_COUNT 10
21#endif 21#endif
diff --git a/layouts/community/ortho_4x12/drashna/config.h b/layouts/community/ortho_4x12/drashna/config.h
index 1c88d66f3b..3f47a3dcbc 100644
--- a/layouts/community/ortho_4x12/drashna/config.h
+++ b/layouts/community/ortho_4x12/drashna/config.h
@@ -41,7 +41,7 @@
41# undef RGB_MATRIX_LED_PROCESS_LIMIT 41# undef RGB_MATRIX_LED_PROCESS_LIMIT
42# undef RGB_MATRIX_LED_FLUSH_LIMIT 42# undef RGB_MATRIX_LED_FLUSH_LIMIT
43# ifdef KEYBOARD_planck_rev6 43# ifdef KEYBOARD_planck_rev6
44# define DRIVER_LED_TOTAL RGBLED_NUM 44# define RGB_MATRIX_LED_COUNT RGBLED_NUM
45# endif 45# endif
46#endif 46#endif
47 47
diff --git a/layouts/community/split_3x5_3/bbaserdem/config.h b/layouts/community/split_3x5_3/bbaserdem/config.h
index 6bb3515b9e..2f7c0f7068 100644
--- a/layouts/community/split_3x5_3/bbaserdem/config.h
+++ b/layouts/community/split_3x5_3/bbaserdem/config.h
@@ -27,9 +27,9 @@
27# ifdef RGBLED_NUM 27# ifdef RGBLED_NUM
28# undef RGBLED_NUM 28# undef RGBLED_NUM
29# endif 29# endif
30# ifdef DRIVER_LED_TOTAL 30# ifdef RGB_MATRIX_LED_COUNT
31# undef DRIVER_LED_TOTAL 31# undef RGB_MATRIX_LED_COUNT
32# endif 32# endif
33# define RGBLED_NUM 48 33# define RGBLED_NUM 48
34# define DRIVER_LED_TOTAL RGBLED_NUM 34# define RGB_MATRIX_LED_COUNT RGBLED_NUM
35#endif // KEYBOARD_crkbd_rev1 35#endif // KEYBOARD_crkbd_rev1
diff --git a/layouts/community/split_3x6_3/drashna/config.h b/layouts/community/split_3x6_3/drashna/config.h
index a84d6eef2e..cfe2d4436f 100644
--- a/layouts/community/split_3x6_3/drashna/config.h
+++ b/layouts/community/split_3x6_3/drashna/config.h
@@ -48,7 +48,7 @@
48// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) 48// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
49// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 49// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
50# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 50# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
51// # 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) 51// # 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)
52// # 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) 52// # 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)
53# ifndef RGB_MATRIX_MAXIMUM_BRIGHTNESS 53# ifndef RGB_MATRIX_MAXIMUM_BRIGHTNESS
54# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 54# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
diff --git a/quantum/led_matrix/led_matrix.c b/quantum/led_matrix/led_matrix.c
index 14dd0dd48a..5bff154480 100644
--- a/quantum/led_matrix/led_matrix.c
+++ b/quantum/led_matrix/led_matrix.c
@@ -170,7 +170,7 @@ void led_matrix_set_value(int index, uint8_t value) {
170 170
171void led_matrix_set_value_all(uint8_t value) { 171void led_matrix_set_value_all(uint8_t value) {
172#if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT) 172#if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT)
173 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) 173 for (uint8_t i = 0; i < LED_MATRIX_LED_COUNT; i++)
174 led_matrix_set_value(i, value); 174 led_matrix_set_value(i, value);
175#else 175#else
176# ifdef USE_CIE1931_CURVE 176# ifdef USE_CIE1931_CURVE
@@ -399,13 +399,13 @@ void led_matrix_indicators_advanced(effect_params_t *params) {
399 * and not sure which would be better. Otherwise, this should be called from 399 * and not sure which would be better. Otherwise, this should be called from
400 * led_task_render, right before the iter++ line. 400 * led_task_render, right before the iter++ line.
401 */ 401 */
402#if defined(LED_MATRIX_LED_PROCESS_LIMIT) && LED_MATRIX_LED_PROCESS_LIMIT > 0 && LED_MATRIX_LED_PROCESS_LIMIT < DRIVER_LED_TOTAL 402#if defined(LED_MATRIX_LED_PROCESS_LIMIT) && LED_MATRIX_LED_PROCESS_LIMIT > 0 && LED_MATRIX_LED_PROCESS_LIMIT < LED_MATRIX_LED_COUNT
403 uint8_t min = LED_MATRIX_LED_PROCESS_LIMIT * (params->iter - 1); 403 uint8_t min = LED_MATRIX_LED_PROCESS_LIMIT * (params->iter - 1);
404 uint8_t max = min + LED_MATRIX_LED_PROCESS_LIMIT; 404 uint8_t max = min + LED_MATRIX_LED_PROCESS_LIMIT;
405 if (max > DRIVER_LED_TOTAL) max = DRIVER_LED_TOTAL; 405 if (max > LED_MATRIX_LED_COUNT) max = LED_MATRIX_LED_COUNT;
406#else 406#else
407 uint8_t min = 0; 407 uint8_t min = 0;
408 uint8_t max = DRIVER_LED_TOTAL; 408 uint8_t max = LED_MATRIX_LED_COUNT;
409#endif 409#endif
410 led_matrix_indicators_advanced_kb(min, max); 410 led_matrix_indicators_advanced_kb(min, max);
411 led_matrix_indicators_advanced_user(min, max); 411 led_matrix_indicators_advanced_user(min, max);
diff --git a/quantum/led_matrix/led_matrix.h b/quantum/led_matrix/led_matrix.h
index 446f293c78..db4f223d5b 100644
--- a/quantum/led_matrix/led_matrix.h
+++ b/quantum/led_matrix/led_matrix.h
@@ -42,15 +42,15 @@
42#endif 42#endif
43 43
44#ifndef LED_MATRIX_LED_PROCESS_LIMIT 44#ifndef LED_MATRIX_LED_PROCESS_LIMIT
45# define LED_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 45# define LED_MATRIX_LED_PROCESS_LIMIT (LED_MATRIX_LED_COUNT + 4) / 5
46#endif 46#endif
47 47
48#if defined(LED_MATRIX_LED_PROCESS_LIMIT) && LED_MATRIX_LED_PROCESS_LIMIT > 0 && LED_MATRIX_LED_PROCESS_LIMIT < DRIVER_LED_TOTAL 48#if defined(LED_MATRIX_LED_PROCESS_LIMIT) && LED_MATRIX_LED_PROCESS_LIMIT > 0 && LED_MATRIX_LED_PROCESS_LIMIT < LED_MATRIX_LED_COUNT
49# if defined(LED_MATRIX_SPLIT) 49# if defined(LED_MATRIX_SPLIT)
50# define LED_MATRIX_USE_LIMITS(min, max) \ 50# define LED_MATRIX_USE_LIMITS(min, max) \
51 uint8_t min = LED_MATRIX_LED_PROCESS_LIMIT * params->iter; \ 51 uint8_t min = LED_MATRIX_LED_PROCESS_LIMIT * params->iter; \
52 uint8_t max = min + LED_MATRIX_LED_PROCESS_LIMIT; \ 52 uint8_t max = min + LED_MATRIX_LED_PROCESS_LIMIT; \
53 if (max > DRIVER_LED_TOTAL) max = DRIVER_LED_TOTAL; \ 53 if (max > LED_MATRIX_LED_COUNT) max = LED_MATRIX_LED_COUNT; \
54 uint8_t k_led_matrix_split[2] = LED_MATRIX_SPLIT; \ 54 uint8_t k_led_matrix_split[2] = LED_MATRIX_SPLIT; \
55 if (is_keyboard_left() && (max > k_led_matrix_split[0])) max = k_led_matrix_split[0]; \ 55 if (is_keyboard_left() && (max > k_led_matrix_split[0])) max = k_led_matrix_split[0]; \
56 if (!(is_keyboard_left()) && (min < k_led_matrix_split[0])) min = k_led_matrix_split[0]; 56 if (!(is_keyboard_left()) && (min < k_led_matrix_split[0])) min = k_led_matrix_split[0];
@@ -58,20 +58,20 @@
58# define LED_MATRIX_USE_LIMITS(min, max) \ 58# define LED_MATRIX_USE_LIMITS(min, max) \
59 uint8_t min = LED_MATRIX_LED_PROCESS_LIMIT * params->iter; \ 59 uint8_t min = LED_MATRIX_LED_PROCESS_LIMIT * params->iter; \
60 uint8_t max = min + LED_MATRIX_LED_PROCESS_LIMIT; \ 60 uint8_t max = min + LED_MATRIX_LED_PROCESS_LIMIT; \
61 if (max > DRIVER_LED_TOTAL) max = DRIVER_LED_TOTAL; 61 if (max > LED_MATRIX_LED_COUNT) max = LED_MATRIX_LED_COUNT;
62# endif 62# endif
63#else 63#else
64# if defined(LED_MATRIX_SPLIT) 64# if defined(LED_MATRIX_SPLIT)
65# define LED_MATRIX_USE_LIMITS(min, max) \ 65# define LED_MATRIX_USE_LIMITS(min, max) \
66 uint8_t min = 0; \ 66 uint8_t min = 0; \
67 uint8_t max = DRIVER_LED_TOTAL; \ 67 uint8_t max = LED_MATRIX_LED_COUNT; \
68 const uint8_t k_led_matrix_split[2] = LED_MATRIX_SPLIT; \ 68 const uint8_t k_led_matrix_split[2] = LED_MATRIX_SPLIT; \
69 if (is_keyboard_left() && (max > k_led_matrix_split[0])) max = k_led_matrix_split[0]; \ 69 if (is_keyboard_left() && (max > k_led_matrix_split[0])) max = k_led_matrix_split[0]; \
70 if (!(is_keyboard_left()) && (min < k_led_matrix_split[0])) min = k_led_matrix_split[0]; 70 if (!(is_keyboard_left()) && (min < k_led_matrix_split[0])) min = k_led_matrix_split[0];
71# else 71# else
72# define LED_MATRIX_USE_LIMITS(min, max) \ 72# define LED_MATRIX_USE_LIMITS(min, max) \
73 uint8_t min = 0; \ 73 uint8_t min = 0; \
74 uint8_t max = DRIVER_LED_TOTAL; 74 uint8_t max = LED_MATRIX_LED_COUNT;
75# endif 75# endif
76#endif 76#endif
77 77
@@ -181,9 +181,9 @@ static inline bool led_matrix_check_finished_leds(uint8_t led_idx) {
181 uint8_t k_led_matrix_split[2] = LED_MATRIX_SPLIT; 181 uint8_t k_led_matrix_split[2] = LED_MATRIX_SPLIT;
182 return led_idx < k_led_matrix_split[0]; 182 return led_idx < k_led_matrix_split[0];
183 } else 183 } else
184 return led_idx < DRIVER_LED_TOTAL; 184 return led_idx < LED_MATRIX_LED_COUNT;
185#else 185#else
186 return led_idx < DRIVER_LED_TOTAL; 186 return led_idx < LED_MATRIX_LED_COUNT;
187#endif 187#endif
188} 188}
189 189
diff --git a/quantum/led_matrix/led_matrix_drivers.c b/quantum/led_matrix/led_matrix_drivers.c
index f01b395c15..2c09ba82b1 100644
--- a/quantum/led_matrix/led_matrix_drivers.c
+++ b/quantum/led_matrix/led_matrix_drivers.c
@@ -96,7 +96,7 @@ static void init(void) {
96# endif 96# endif
97# endif 97# endif
98 98
99 for (int index = 0; index < DRIVER_LED_TOTAL; index++) { 99 for (int index = 0; index < LED_MATRIX_LED_COUNT; index++) {
100# if defined(IS31FL3731) 100# if defined(IS31FL3731)
101 IS31FL3731_set_led_control_register(index, true); 101 IS31FL3731_set_led_control_register(index, true);
102# elif defined(IS31FL3733) 102# elif defined(IS31FL3733)
diff --git a/quantum/led_matrix/led_matrix_types.h b/quantum/led_matrix/led_matrix_types.h
index 3dc533100f..6d79a3592d 100644
--- a/quantum/led_matrix/led_matrix_types.h
+++ b/quantum/led_matrix/led_matrix_types.h
@@ -76,8 +76,8 @@ typedef struct PACKED {
76 76
77typedef struct PACKED { 77typedef struct PACKED {
78 uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; 78 uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
79 led_point_t point[DRIVER_LED_TOTAL]; 79 led_point_t point[LED_MATRIX_LED_COUNT];
80 uint8_t flags[DRIVER_LED_TOTAL]; 80 uint8_t flags[LED_MATRIX_LED_COUNT];
81} led_config_t; 81} led_config_t;
82 82
83typedef union { 83typedef union {
diff --git a/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h b/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h
index 31dffcbc5a..69bf265d14 100644
--- a/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h
+++ b/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h
@@ -13,7 +13,7 @@ bool JELLYBEAN_RAINDROPS(effect_params_t* params) {
13 if (!params->init) { 13 if (!params->init) {
14 // Change one LED every tick, make sure speed is not 0 14 // Change one LED every tick, make sure speed is not 0
15 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 5 == 0) { 15 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 5 == 0) {
16 jellybean_raindrops_set_color(rand() % DRIVER_LED_TOTAL, params); 16 jellybean_raindrops_set_color(rand() % RGB_MATRIX_LED_COUNT, params);
17 } 17 }
18 return false; 18 return false;
19 } 19 }
diff --git a/quantum/rgb_matrix/animations/pixel_flow_anim.h b/quantum/rgb_matrix/animations/pixel_flow_anim.h
index 714f5d174e..8628c3c2ec 100644
--- a/quantum/rgb_matrix/animations/pixel_flow_anim.h
+++ b/quantum/rgb_matrix/animations/pixel_flow_anim.h
@@ -7,7 +7,7 @@ RGB_MATRIX_EFFECT(PIXEL_FLOW)
7 7
8static bool PIXEL_FLOW(effect_params_t* params) { 8static bool PIXEL_FLOW(effect_params_t* params) {
9 // LED state array 9 // LED state array
10 static RGB led[DRIVER_LED_TOTAL]; 10 static RGB led[RGB_MATRIX_LED_COUNT];
11 11
12 static uint32_t wait_timer = 0; 12 static uint32_t wait_timer = 0;
13 if (wait_timer > g_rgb_timer) { 13 if (wait_timer > g_rgb_timer) {
@@ -21,7 +21,7 @@ static bool PIXEL_FLOW(effect_params_t* params) {
21 if (params->init) { 21 if (params->init) {
22 // Clear LEDs and fill the state array 22 // Clear LEDs and fill the state array
23 rgb_matrix_set_color_all(0, 0, 0); 23 rgb_matrix_set_color_all(0, 0, 0);
24 for (uint8_t j = 0; j < DRIVER_LED_TOTAL; ++j) { 24 for (uint8_t j = 0; j < RGB_MATRIX_LED_COUNT; ++j) {
25 led[j] = (random8() & 2) ? (RGB){0, 0, 0} : hsv_to_rgb((HSV){random8(), qadd8(random8() >> 1, 127), rgb_matrix_config.hsv.v}); 25 led[j] = (random8() & 2) ? (RGB){0, 0, 0} : hsv_to_rgb((HSV){random8(), qadd8(random8() >> 1, 127), rgb_matrix_config.hsv.v});
26 } 26 }
27 } 27 }
diff --git a/quantum/rgb_matrix/animations/pixel_rain_anim.h b/quantum/rgb_matrix/animations/pixel_rain_anim.h
index ce2528a26d..fded60340f 100644
--- a/quantum/rgb_matrix/animations/pixel_rain_anim.h
+++ b/quantum/rgb_matrix/animations/pixel_rain_anim.h
@@ -41,7 +41,7 @@ static bool PIXEL_RAIN(effect_params_t* params) {
41 41
42 RGB_MATRIX_USE_LIMITS(led_min, led_max); 42 RGB_MATRIX_USE_LIMITS(led_min, led_max);
43 if (g_rgb_timer > wait_timer) { 43 if (g_rgb_timer > wait_timer) {
44 rain_pixel(mod8(random8(), DRIVER_LED_TOTAL), params, random8() & 2); 44 rain_pixel(mod8(random8(), RGB_MATRIX_LED_COUNT), params, random8() & 2);
45 } 45 }
46 return rgb_matrix_check_finished_leds(led_max); 46 return rgb_matrix_check_finished_leds(led_max);
47} 47}
diff --git a/quantum/rgb_matrix/animations/raindrops_anim.h b/quantum/rgb_matrix/animations/raindrops_anim.h
index a508e51183..6b92d649ad 100644
--- a/quantum/rgb_matrix/animations/raindrops_anim.h
+++ b/quantum/rgb_matrix/animations/raindrops_anim.h
@@ -24,7 +24,7 @@ bool RAINDROPS(effect_params_t* params) {
24 if (!params->init) { 24 if (!params->init) {
25 // Change one LED every tick, make sure speed is not 0 25 // Change one LED every tick, make sure speed is not 0
26 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) { 26 if (scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 16)) % 10 == 0) {
27 raindrops_set_color(random8() % DRIVER_LED_TOTAL, params); 27 raindrops_set_color(random8() % RGB_MATRIX_LED_COUNT, params);
28 } 28 }
29 } else { 29 } else {
30 for (int i = led_min; i < led_max; i++) { 30 for (int i = led_min; i < led_max; i++) {
diff --git a/quantum/rgb_matrix/rgb_matrix.c b/quantum/rgb_matrix/rgb_matrix.c
index 2730686839..ae61e75535 100644
--- a/quantum/rgb_matrix/rgb_matrix.c
+++ b/quantum/rgb_matrix/rgb_matrix.c
@@ -202,7 +202,7 @@ void rgb_matrix_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
202 202
203void rgb_matrix_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { 203void rgb_matrix_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
204#if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT) 204#if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT)
205 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) 205 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++)
206 rgb_matrix_set_color(i, red, green, blue); 206 rgb_matrix_set_color(i, red, green, blue);
207#else 207#else
208 rgb_matrix_driver.set_color_all(red, green, blue); 208 rgb_matrix_driver.set_color_all(red, green, blue);
@@ -461,13 +461,13 @@ void rgb_matrix_indicators_advanced(effect_params_t *params) {
461 * and not sure which would be better. Otherwise, this should be called from 461 * and not sure which would be better. Otherwise, this should be called from
462 * rgb_task_render, right before the iter++ line. 462 * rgb_task_render, right before the iter++ line.
463 */ 463 */
464#if defined(RGB_MATRIX_LED_PROCESS_LIMIT) && RGB_MATRIX_LED_PROCESS_LIMIT > 0 && RGB_MATRIX_LED_PROCESS_LIMIT < DRIVER_LED_TOTAL 464#if defined(RGB_MATRIX_LED_PROCESS_LIMIT) && RGB_MATRIX_LED_PROCESS_LIMIT > 0 && RGB_MATRIX_LED_PROCESS_LIMIT < RGB_MATRIX_LED_COUNT
465 uint8_t min = RGB_MATRIX_LED_PROCESS_LIMIT * (params->iter - 1); 465 uint8_t min = RGB_MATRIX_LED_PROCESS_LIMIT * (params->iter - 1);
466 uint8_t max = min + RGB_MATRIX_LED_PROCESS_LIMIT; 466 uint8_t max = min + RGB_MATRIX_LED_PROCESS_LIMIT;
467 if (max > DRIVER_LED_TOTAL) max = DRIVER_LED_TOTAL; 467 if (max > RGB_MATRIX_LED_COUNT) max = RGB_MATRIX_LED_COUNT;
468#else 468#else
469 uint8_t min = 0; 469 uint8_t min = 0;
470 uint8_t max = DRIVER_LED_TOTAL; 470 uint8_t max = RGB_MATRIX_LED_COUNT;
471#endif 471#endif
472 rgb_matrix_indicators_advanced_kb(min, max); 472 rgb_matrix_indicators_advanced_kb(min, max);
473 rgb_matrix_indicators_advanced_user(min, max); 473 rgb_matrix_indicators_advanced_user(min, max);
diff --git a/quantum/rgb_matrix/rgb_matrix.h b/quantum/rgb_matrix/rgb_matrix.h
index fc9fc3e020..0b35e98f45 100644
--- a/quantum/rgb_matrix/rgb_matrix.h
+++ b/quantum/rgb_matrix/rgb_matrix.h
@@ -47,15 +47,15 @@
47#endif 47#endif
48 48
49#ifndef RGB_MATRIX_LED_PROCESS_LIMIT 49#ifndef RGB_MATRIX_LED_PROCESS_LIMIT
50# define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 50# define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5
51#endif 51#endif
52 52
53#if defined(RGB_MATRIX_LED_PROCESS_LIMIT) && RGB_MATRIX_LED_PROCESS_LIMIT > 0 && RGB_MATRIX_LED_PROCESS_LIMIT < DRIVER_LED_TOTAL 53#if defined(RGB_MATRIX_LED_PROCESS_LIMIT) && RGB_MATRIX_LED_PROCESS_LIMIT > 0 && RGB_MATRIX_LED_PROCESS_LIMIT < RGB_MATRIX_LED_COUNT
54# if defined(RGB_MATRIX_SPLIT) 54# if defined(RGB_MATRIX_SPLIT)
55# define RGB_MATRIX_USE_LIMITS(min, max) \ 55# define RGB_MATRIX_USE_LIMITS(min, max) \
56 uint8_t min = RGB_MATRIX_LED_PROCESS_LIMIT * params->iter; \ 56 uint8_t min = RGB_MATRIX_LED_PROCESS_LIMIT * params->iter; \
57 uint8_t max = min + RGB_MATRIX_LED_PROCESS_LIMIT; \ 57 uint8_t max = min + RGB_MATRIX_LED_PROCESS_LIMIT; \
58 if (max > DRIVER_LED_TOTAL) max = DRIVER_LED_TOTAL; \ 58 if (max > RGB_MATRIX_LED_COUNT) max = RGB_MATRIX_LED_COUNT; \
59 uint8_t k_rgb_matrix_split[2] = RGB_MATRIX_SPLIT; \ 59 uint8_t k_rgb_matrix_split[2] = RGB_MATRIX_SPLIT; \
60 if (is_keyboard_left() && (max > k_rgb_matrix_split[0])) max = k_rgb_matrix_split[0]; \ 60 if (is_keyboard_left() && (max > k_rgb_matrix_split[0])) max = k_rgb_matrix_split[0]; \
61 if (!(is_keyboard_left()) && (min < k_rgb_matrix_split[0])) min = k_rgb_matrix_split[0]; 61 if (!(is_keyboard_left()) && (min < k_rgb_matrix_split[0])) min = k_rgb_matrix_split[0];
@@ -63,20 +63,20 @@
63# define RGB_MATRIX_USE_LIMITS(min, max) \ 63# define RGB_MATRIX_USE_LIMITS(min, max) \
64 uint8_t min = RGB_MATRIX_LED_PROCESS_LIMIT * params->iter; \ 64 uint8_t min = RGB_MATRIX_LED_PROCESS_LIMIT * params->iter; \
65 uint8_t max = min + RGB_MATRIX_LED_PROCESS_LIMIT; \ 65 uint8_t max = min + RGB_MATRIX_LED_PROCESS_LIMIT; \
66 if (max > DRIVER_LED_TOTAL) max = DRIVER_LED_TOTAL; 66 if (max > RGB_MATRIX_LED_COUNT) max = RGB_MATRIX_LED_COUNT;
67# endif 67# endif
68#else 68#else
69# if defined(RGB_MATRIX_SPLIT) 69# if defined(RGB_MATRIX_SPLIT)
70# define RGB_MATRIX_USE_LIMITS(min, max) \ 70# define RGB_MATRIX_USE_LIMITS(min, max) \
71 uint8_t min = 0; \ 71 uint8_t min = 0; \
72 uint8_t max = DRIVER_LED_TOTAL; \ 72 uint8_t max = RGB_MATRIX_LED_COUNT; \
73 const uint8_t k_rgb_matrix_split[2] = RGB_MATRIX_SPLIT; \ 73 const uint8_t k_rgb_matrix_split[2] = RGB_MATRIX_SPLIT; \
74 if (is_keyboard_left() && (max > k_rgb_matrix_split[0])) max = k_rgb_matrix_split[0]; \ 74 if (is_keyboard_left() && (max > k_rgb_matrix_split[0])) max = k_rgb_matrix_split[0]; \
75 if (!(is_keyboard_left()) && (min < k_rgb_matrix_split[0])) min = k_rgb_matrix_split[0]; 75 if (!(is_keyboard_left()) && (min < k_rgb_matrix_split[0])) min = k_rgb_matrix_split[0];
76# else 76# else
77# define RGB_MATRIX_USE_LIMITS(min, max) \ 77# define RGB_MATRIX_USE_LIMITS(min, max) \
78 uint8_t min = 0; \ 78 uint8_t min = 0; \
79 uint8_t max = DRIVER_LED_TOTAL; 79 uint8_t max = RGB_MATRIX_LED_COUNT;
80# endif 80# endif
81#endif 81#endif
82 82
@@ -246,9 +246,9 @@ static inline bool rgb_matrix_check_finished_leds(uint8_t led_idx) {
246 uint8_t k_rgb_matrix_split[2] = RGB_MATRIX_SPLIT; 246 uint8_t k_rgb_matrix_split[2] = RGB_MATRIX_SPLIT;
247 return led_idx < k_rgb_matrix_split[0]; 247 return led_idx < k_rgb_matrix_split[0];
248 } else 248 } else
249 return led_idx < DRIVER_LED_TOTAL; 249 return led_idx < RGB_MATRIX_LED_COUNT;
250#else 250#else
251 return led_idx < DRIVER_LED_TOTAL; 251 return led_idx < RGB_MATRIX_LED_COUNT;
252#endif 252#endif
253} 253}
254 254
diff --git a/quantum/rgb_matrix/rgb_matrix_drivers.c b/quantum/rgb_matrix/rgb_matrix_drivers.c
index 99151e5a92..e75b2c6c9d 100644
--- a/quantum/rgb_matrix/rgb_matrix_drivers.c
+++ b/quantum/rgb_matrix/rgb_matrix_drivers.c
@@ -106,7 +106,7 @@ static void init(void) {
106# endif 106# endif
107# endif 107# endif
108 108
109 for (int index = 0; index < DRIVER_LED_TOTAL; index++) { 109 for (int index = 0; index < RGB_MATRIX_LED_COUNT; index++) {
110 bool enabled = true; 110 bool enabled = true;
111 111
112 // This only caches it for later 112 // This only caches it for later
@@ -336,13 +336,13 @@ const rgb_matrix_driver_t rgb_matrix_driver = {
336# endif 336# endif
337 337
338// LED color buffer 338// LED color buffer
339LED_TYPE rgb_matrix_ws2812_array[DRIVER_LED_TOTAL]; 339LED_TYPE rgb_matrix_ws2812_array[RGB_MATRIX_LED_COUNT];
340 340
341static void init(void) {} 341static void init(void) {}
342 342
343static void flush(void) { 343static void flush(void) {
344 // Assumes use of RGB_DI_PIN 344 // Assumes use of RGB_DI_PIN
345 ws2812_setleds(rgb_matrix_ws2812_array, DRIVER_LED_TOTAL); 345 ws2812_setleds(rgb_matrix_ws2812_array, RGB_MATRIX_LED_COUNT);
346} 346}
347 347
348// Set an led in the buffer to a color 348// Set an led in the buffer to a color
diff --git a/quantum/rgb_matrix/rgb_matrix_types.h b/quantum/rgb_matrix/rgb_matrix_types.h
index d0ac4e4466..eea603c41c 100644
--- a/quantum/rgb_matrix/rgb_matrix_types.h
+++ b/quantum/rgb_matrix/rgb_matrix_types.h
@@ -78,8 +78,8 @@ typedef struct PACKED {
78 78
79typedef struct PACKED { 79typedef struct PACKED {
80 uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; 80 uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
81 led_point_t point[DRIVER_LED_TOTAL]; 81 led_point_t point[RGB_MATRIX_LED_COUNT];
82 uint8_t flags[DRIVER_LED_TOTAL]; 82 uint8_t flags[RGB_MATRIX_LED_COUNT];
83} led_config_t; 83} led_config_t;
84 84
85typedef union { 85typedef union {
diff --git a/users/brandonschlack/rgb_bs.c b/users/brandonschlack/rgb_bs.c
index 94842021cd..6b88503f41 100644
--- a/users/brandonschlack/rgb_bs.c
+++ b/users/brandonschlack/rgb_bs.c
@@ -98,7 +98,7 @@ void rgb_theme_layer(layer_state_t state) {
98 98
99#ifdef RGB_MATRIX_ENABLE 99#ifdef RGB_MATRIX_ENABLE
100void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, uint8_t led_type) { 100void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, uint8_t led_type) {
101 for (int i = 0; i < DRIVER_LED_TOTAL; i++) { 101 for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
102 if (!HAS_ANY_FLAGS(g_led_config.flags[i], led_type)) { 102 if (!HAS_ANY_FLAGS(g_led_config.flags[i], led_type)) {
103 rgb_matrix_set_color( i, red, green, blue ); 103 rgb_matrix_set_color( i, red, green, blue );
104 } 104 }
diff --git a/users/byungyoonc/saturated_solid_multisplash.h b/users/byungyoonc/saturated_solid_multisplash.h
index f302348524..c6850a7873 100644
--- a/users/byungyoonc/saturated_solid_multisplash.h
+++ b/users/byungyoonc/saturated_solid_multisplash.h
@@ -43,7 +43,7 @@ static bool saturated_solid_multisplash(effect_params_t* params) {
43 RGB rgb = rgb_matrix_hsv_to_rgb(hsv); 43 RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
44 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 44 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
45 } 45 }
46 return led_max < DRIVER_LED_TOTAL; 46 return led_max < RGB_MATRIX_LED_COUNT;
47} 47}
48 48
49# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS 49# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
diff --git a/users/curry/rgb_matrix_user.c b/users/curry/rgb_matrix_user.c
index 96f1f1d4f3..053226ab60 100644
--- a/users/curry/rgb_matrix_user.c
+++ b/users/curry/rgb_matrix_user.c
@@ -131,7 +131,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode
131 uint16_t time = scale16by8(RGBLED_NUM, speed / 8); 131 uint16_t time = scale16by8(RGBLED_NUM, speed / 8);
132 hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v); 132 hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v);
133 RGB rgb = hsv_to_rgb(hsv); 133 RGB rgb = hsv_to_rgb(hsv);
134 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 134 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
135 if (HAS_FLAGS(g_led_config.flags[i], led_type)) { 135 if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
136 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 136 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
137 } 137 }
@@ -141,7 +141,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode
141 default: // Solid Color 141 default: // Solid Color
142 { 142 {
143 RGB rgb = hsv_to_rgb(hsv); 143 RGB rgb = hsv_to_rgb(hsv);
144 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 144 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
145 if (HAS_FLAGS(g_led_config.flags[i], led_type)) { 145 if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
146 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 146 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
147 } 147 }
diff --git a/users/drashna/rgb/rgb_matrix_stuff.c b/users/drashna/rgb/rgb_matrix_stuff.c
index 2c23c29784..64549d8fae 100644
--- a/users/drashna/rgb/rgb_matrix_stuff.c
+++ b/users/drashna/rgb/rgb_matrix_stuff.c
@@ -20,7 +20,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode
20 uint16_t time = scale16by8(g_rgb_timer, speed / 8); 20 uint16_t time = scale16by8(g_rgb_timer, speed / 8);
21 hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v); 21 hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v);
22 RGB rgb = hsv_to_rgb(hsv); 22 RGB rgb = hsv_to_rgb(hsv);
23 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 23 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
24 if (HAS_FLAGS(g_led_config.flags[i], led_type)) { 24 if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
25 RGB_MATRIX_INDICATOR_SET_COLOR(i, rgb.r, rgb.g, rgb.b); 25 RGB_MATRIX_INDICATOR_SET_COLOR(i, rgb.r, rgb.g, rgb.b);
26 } 26 }
@@ -30,7 +30,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode
30 default: // Solid Color 30 default: // Solid Color
31 { 31 {
32 RGB rgb = hsv_to_rgb(hsv); 32 RGB rgb = hsv_to_rgb(hsv);
33 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 33 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
34 if (HAS_FLAGS(g_led_config.flags[i], led_type)) { 34 if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
35 RGB_MATRIX_INDICATOR_SET_COLOR(i, rgb.r, rgb.g, rgb.b); 35 RGB_MATRIX_INDICATOR_SET_COLOR(i, rgb.r, rgb.g, rgb.b);
36 } 36 }
diff --git a/users/tominabox1/config.h b/users/tominabox1/config.h
index f853e18605..5fd8ba3a74 100644
--- a/users/tominabox1/config.h
+++ b/users/tominabox1/config.h
@@ -22,7 +22,7 @@
22 #ifdef RGB_MATRIX_ENABLE 22 #ifdef RGB_MATRIX_ENABLE
23 #undef RGBLED_NUM 23 #undef RGBLED_NUM
24 #define RGBLED_NUM 50 24 #define RGBLED_NUM 50
25 #define DRIVER_LED_TOTAL RGBLED_NUM 25 #define RGB_MATRIX_LED_COUNT RGBLED_NUM
26 #endif // RGBL_MATRIX_ENABLE 26 #endif // RGBL_MATRIX_ENABLE
27#endif // KEYBOARD_lazydesigners_dimple 27#endif // KEYBOARD_lazydesigners_dimple
28 28
diff --git a/users/tominabox1/dimple_rgb.c b/users/tominabox1/dimple_rgb.c
index 49d95eb43a..299dc830f1 100644
--- a/users/tominabox1/dimple_rgb.c
+++ b/users/tominabox1/dimple_rgb.c
@@ -1,7 +1,7 @@
1#include "dz60rgb.h" 1#include "dz60rgb.h"
2#include "config.h" 2#include "config.h"
3#if defined (dzrgb60_iso) 3#if defined (dzrgb60_iso)
4const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
5 {0, K_14, J_14, L_14}, 5 {0, K_14, J_14, L_14},
6 {0, K_13, J_13, L_13}, 6 {0, K_13, J_13, L_13},
7 {0, K_12, J_12, L_12}, 7 {0, K_12, J_12, L_12},
@@ -86,7 +86,7 @@ led_config_t g_led_config = { {
86} }; 86} };
87 87
88#elif defined (dzrgb60_hhkb) 88#elif defined (dzrgb60_hhkb)
89const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 89const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
90 {0, H_15, G_15, I_15}, 90 {0, H_15, G_15, I_15},
91 {0, K_14, J_14, L_14}, 91 {0, K_14, J_14, L_14},
92 {0, K_13, J_13, L_13}, 92 {0, K_13, J_13, L_13},
@@ -172,7 +172,7 @@ led_config_t g_led_config = { {
172} }; 172} };
173 173
174#elif defined (dzrgb60_hhkb_iso) 174#elif defined (dzrgb60_hhkb_iso)
175const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 175const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
176 {0, H_15, G_15, I_15}, 176 {0, H_15, G_15, I_15},
177 {0, K_14, J_14, L_14}, 177 {0, K_14, J_14, L_14},
178 {0, K_13, J_13, L_13}, 178 {0, K_13, J_13, L_13},
@@ -258,7 +258,7 @@ led_config_t g_led_config = { {
258} }; 258} };
259 259
260#elif defined (dzrgb60_ansi) 260#elif defined (dzrgb60_ansi)
261const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 261const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
262 {0, K_14, J_14, L_14}, 262 {0, K_14, J_14, L_14},
263 {0, K_13, J_13, L_13}, 263 {0, K_13, J_13, L_13},
264 {0, K_12, J_12, L_12}, 264 {0, K_12, J_12, L_12},
@@ -343,7 +343,7 @@ led_config_t g_led_config = { {
343} }; 343} };
344 344
345#else 345#else
346const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 346const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = {
347 {0, K_14, J_14, L_14}, 347 {0, K_14, J_14, L_14},
348 {0, K_13, J_13, L_13}, 348 {0, K_13, J_13, L_13},
349 {0, K_12, J_12, L_12}, 349 {0, K_12, J_12, L_12},
diff --git a/users/tominabox1/tominabox1.c b/users/tominabox1/tominabox1.c
index b4ec224d07..999222fa67 100644
--- a/users/tominabox1/tominabox1.c
+++ b/users/tominabox1/tominabox1.c
@@ -58,7 +58,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode
58 uint16_t time = scale16by8(g_rgb_counters.tick, speed / 8); 58 uint16_t time = scale16by8(g_rgb_counters.tick, speed / 8);
59 hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v); 59 hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v);
60 RGB rgb = hsv_to_rgb(hsv); 60 RGB rgb = hsv_to_rgb(hsv);
61 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 61 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
62 if (HAS_FLAGS(g_led_config.flags[i], led_type)) { 62 if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
63 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 63 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
64 } 64 }
@@ -68,7 +68,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode
68 default: // Solid Color 68 default: // Solid Color
69 { 69 {
70 RGB rgb = hsv_to_rgb(hsv); 70 RGB rgb = hsv_to_rgb(hsv);
71 for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) { 71 for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
72 if (HAS_FLAGS(g_led_config.flags[i], led_type)) { 72 if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
73 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); 73 rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
74 } 74 }