aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/feature_led_matrix.md2
-rw-r--r--docs/feature_rgb_matrix.md8
-rw-r--r--docs/ja/feature_led_matrix.md2
-rw-r--r--drivers/led/aw20216.c3
-rw-r--r--drivers/led/aw20216.h2
-rw-r--r--drivers/led/ckled2001.c6
-rw-r--r--drivers/led/ckled2001.h2
-rw-r--r--drivers/led/issi/is31fl3731-simple.c6
-rw-r--r--drivers/led/issi/is31fl3731-simple.h2
-rw-r--r--drivers/led/issi/is31fl3731.c6
-rw-r--r--drivers/led/issi/is31fl3731.h2
-rw-r--r--drivers/led/issi/is31fl3733.c6
-rw-r--r--drivers/led/issi/is31fl3733.h2
-rw-r--r--drivers/led/issi/is31fl3736.c6
-rw-r--r--drivers/led/issi/is31fl3736.h2
-rw-r--r--drivers/led/issi/is31fl3737.c6
-rw-r--r--drivers/led/issi/is31fl3737.h2
-rw-r--r--drivers/led/issi/is31fl3741.c6
-rw-r--r--drivers/led/issi/is31fl3741.h2
-rw-r--r--keyboards/canary/canary60rgb/canary60rgb.c2
-rw-r--r--keyboards/clueboard/66_hotswap/gen1/gen1.c2
-rw-r--r--keyboards/dp60/dp60.c2
-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_ansi/dz60rgb_ansi.c2
-rw-r--r--keyboards/dztech/dz60rgb_wkl/dz60rgb_wkl.c2
-rw-r--r--keyboards/dztech/dz65rgb/v1/v1.c2
-rw-r--r--keyboards/dztech/dz65rgb/v2/v2.c2
-rwxr-xr-xkeyboards/dztech/dz65rgb/v3/v3.c2
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c2
-rw-r--r--keyboards/ergodox_infinity/ergodox_infinity.c2
-rw-r--r--keyboards/evyd13/atom47/rev5/rev5.c2
-rw-r--r--keyboards/exclusive/e6_rgb/e6_rgb.c2
-rwxr-xr-xkeyboards/fallacy/indicators.c2
-rw-r--r--keyboards/geekboards/tester/tester.c2
-rw-r--r--keyboards/gmmk/pro/ansi/keymaps/mattgauf/ansi.c2
-rw-r--r--keyboards/hs60/v1/v1.c4
-rw-r--r--keyboards/inett_studio/sqx/hotswap/hotswap.c2
-rw-r--r--keyboards/inett_studio/sqx/universal/universal.c2
-rw-r--r--keyboards/k_type/is31fl3733-dual.h2
-rw-r--r--keyboards/k_type/k_type.c2
-rw-r--r--keyboards/kbdfans/bella/rgb/rgb.c2
-rw-r--r--keyboards/kbdfans/bella/rgb_iso/rgb_iso.c2
-rw-r--r--keyboards/kbdfans/boop65/rgb/rgb.c2
-rw-r--r--keyboards/kbdfans/kbd67/mkiirgb/v1/v1.c2
-rw-r--r--keyboards/kbdfans/kbd67/mkiirgb/v2/v2.c2
-rwxr-xr-xkeyboards/kbdfans/kbd67/mkiirgb/v3/v3.c2
-rw-r--r--keyboards/kbdfans/kbdmini/kbdmini.c2
-rwxr-xr-xkeyboards/kbdfans/maja/maja.c2
-rw-r--r--keyboards/keychron/q1/rev_0100/rev_0100.c2
-rw-r--r--keyboards/keychron/q1/rev_0102/rev_0102.c2
-rw-r--r--keyboards/latin17rgb/latin17rgb.c2
-rw-r--r--keyboards/latin60rgb/latin60rgb.c2
-rw-r--r--keyboards/latin6rgb/latin6rgb.c2
-rw-r--r--keyboards/matrix/m20add/rgb_ring.c2
-rw-r--r--keyboards/matrix/noah/noah.c2
-rw-r--r--keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c2
-rw-r--r--keyboards/mechlovin/adelais/rgb_led/rev3/rev3.c2
-rw-r--r--keyboards/mechlovin/delphine/rgb_led/rgb_led.c2
-rw-r--r--keyboards/mechlovin/hannah60rgb/rev2/rev2.c2
-rw-r--r--keyboards/mechlovin/infinity87/rgb_rev1/rgb_rev1.c2
-rwxr-xr-xkeyboards/melgeek/mach80/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/mj61/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/mj61/rev2/rev2.c2
-rw-r--r--keyboards/melgeek/mj63/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/mj63/rev2/rev2.c2
-rw-r--r--keyboards/melgeek/mj64/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/mj64/rev2/rev2.c2
-rw-r--r--keyboards/melgeek/mj64/rev3/rev3.c2
-rw-r--r--keyboards/melgeek/mj65/rev3/rev3.c2
-rwxr-xr-xkeyboards/melgeek/mojo68/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/mojo75/rev1/rev1.c2
-rw-r--r--keyboards/melgeek/z70ultra/z70ultra.c2
-rw-r--r--keyboards/miller/gm862/gm862.c2
-rw-r--r--keyboards/moonlander/moonlander.c2
-rw-r--r--keyboards/mt64rgb/mt64rgb.c2
-rw-r--r--keyboards/mt84/mt84.c2
-rw-r--r--keyboards/neson_design/n6/n6.c2
-rw-r--r--keyboards/opendeck/32/rev1/rev1.c2
-rw-r--r--keyboards/planck/ez/ez.c2
-rw-r--r--keyboards/planck/light/light.c2
-rw-r--r--keyboards/playkbtw/pk64rgb/pk64rgb.c2
-rw-r--r--keyboards/smallkeyboard/smallkeyboard.c2
-rw-r--r--keyboards/terrazzo/terrazzo.c2
-rw-r--r--keyboards/tkc/portico/portico.c2
-rw-r--r--keyboards/whitefox/whitefox.c2
-rw-r--r--keyboards/wilba_tech/wt_rgb_backlight.c16
-rw-r--r--keyboards/xbows/knight/knight.c2
-rw-r--r--keyboards/xbows/knight_plus/knight_plus.c2
-rw-r--r--keyboards/xbows/nature/nature.c2
-rw-r--r--keyboards/xbows/numpad/numpad.c2
-rw-r--r--keyboards/xbows/ranger/ranger.c2
-rw-r--r--keyboards/xbows/woody/woody.c2
-rw-r--r--keyboards/xelus/dawn60/rev1_qmk/rev1_qmk.c2
-rw-r--r--keyboards/xelus/pachi/rgb/rev1/rev1.c2
-rw-r--r--keyboards/xelus/pachi/rgb/rev2/rev2.c2
-rw-r--r--platforms/progmem.h1
99 files changed, 131 insertions, 117 deletions
diff --git a/docs/feature_led_matrix.md b/docs/feature_led_matrix.md
index d96199a3c..dfd63503f 100644
--- a/docs/feature_led_matrix.md
+++ b/docs/feature_led_matrix.md
@@ -54,7 +54,7 @@ For split keyboards using `LED_MATRIX_SPLIT` with an LED driver, you can either
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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 57const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md
index d3d740c1b..d07c02e18 100644
--- a/docs/feature_rgb_matrix.md
+++ b/docs/feature_rgb_matrix.md
@@ -55,7 +55,7 @@ For split keyboards using `RGB_MATRIX_SPLIT` with an LED driver, you can either
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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 58const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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
@@ -140,7 +140,7 @@ Currently only 4 drivers are supported, but it would be trivial to support all 8
140Define these arrays listing all the LEDs in your `<keyboard>.c`: 140Define these arrays listing all the LEDs in your `<keyboard>.c`:
141 141
142```c 142```c
143const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 143const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
144/* Refer to IS31 manual for these locations 144/* Refer to IS31 manual for these locations
145 * driver 145 * driver
146 * | R location 146 * | R location
@@ -218,7 +218,7 @@ Currently only 2 drivers are supported, but it would be trivial to support all 4
218Define these arrays listing all the LEDs in your `<keyboard>.c`: 218Define these arrays listing all the LEDs in your `<keyboard>.c`:
219 219
220```c 220```c
221const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 221const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
222/* Refer to IS31 manual for these locations 222/* Refer to IS31 manual for these locations
223 * driver 223 * driver
224 * | R location 224 * | R location
@@ -319,7 +319,7 @@ Here is an example using 2 drivers.
319Define these arrays listing all the LEDs in your `<keyboard>.c`: 319Define these arrays listing all the LEDs in your `<keyboard>.c`:
320 320
321```c 321```c
322const aw_led __flash g_aw_leds[DRIVER_LED_TOTAL] = { 322const aw_led PROGMEM g_aw_leds[DRIVER_LED_TOTAL] = {
323/* Each AW20216 channel is controlled by a register at some offset between 0x00 323/* Each AW20216 channel is controlled by a register at some offset between 0x00
324 * and 0xD7 inclusive. 324 * and 0xD7 inclusive.
325 * See drivers/awinic/aw20216.h for the mapping between register offsets and 325 * See drivers/awinic/aw20216.h for the mapping between register offsets and
diff --git a/docs/ja/feature_led_matrix.md b/docs/ja/feature_led_matrix.md
index 6511b2824..2b1979ec6 100644
--- a/docs/ja/feature_led_matrix.md
+++ b/docs/ja/feature_led_matrix.md
@@ -52,7 +52,7 @@ I2C IS31FL3731 RGB コントローラを使ったアドレス指定可能な LED
52 52
53`<keyboard>.c` に全ての LED を列挙する配列を定義します: 53`<keyboard>.c` に全ての LED を列挙する配列を定義します:
54 54
55 const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 55 const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
56 /* これらの位置については IS31 マニュアルを参照してください 56 /* これらの位置については IS31 マニュアルを参照してください
57 * driver 57 * driver
58 * | LED address 58 * | LED address
diff --git a/drivers/led/aw20216.c b/drivers/led/aw20216.c
index c608c0ab4..2c7ff8f08 100644
--- a/drivers/led/aw20216.c
+++ b/drivers/led/aw20216.c
@@ -119,7 +119,8 @@ void AW20216_init(pin_t cs_pin, pin_t en_pin) {
119} 119}
120 120
121void AW20216_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 121void AW20216_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
122 aw_led led = g_aw_leds[index]; 122 aw_led led;
123 memcpy_P(&led, (&g_aw_leds[index]), sizeof(led));
123 124
124 g_pwm_buffer[led.driver][led.r] = red; 125 g_pwm_buffer[led.driver][led.r] = red;
125 g_pwm_buffer[led.driver][led.g] = green; 126 g_pwm_buffer[led.driver][led.g] = green;
diff --git a/drivers/led/aw20216.h b/drivers/led/aw20216.h
index 97ac6dc5b..0a17050fe 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 __flash g_aw_leds[DRIVER_LED_TOTAL]; 31extern const aw_led PROGMEM g_aw_leds[DRIVER_LED_TOTAL];
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.c b/drivers/led/ckled2001.c
index 630730343..990e50cb6 100644
--- a/drivers/led/ckled2001.c
+++ b/drivers/led/ckled2001.c
@@ -141,8 +141,9 @@ void CKLED2001_init(uint8_t addr) {
141} 141}
142 142
143void CKLED2001_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 143void CKLED2001_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
144 ckled2001_led led;
144 if (index >= 0 && index < DRIVER_LED_TOTAL) { 145 if (index >= 0 && index < DRIVER_LED_TOTAL) {
145 ckled2001_led led = g_ckled2001_leds[index]; 146 memcpy_P(&led, (&g_ckled2001_leds[index]), sizeof(led));
146 147
147 g_pwm_buffer[led.driver][led.r] = red; 148 g_pwm_buffer[led.driver][led.r] = red;
148 g_pwm_buffer[led.driver][led.g] = green; 149 g_pwm_buffer[led.driver][led.g] = green;
@@ -158,7 +159,8 @@ void CKLED2001_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
158} 159}
159 160
160void CKLED2001_set_led_control_register(uint8_t index, bool red, bool green, bool blue) { 161void CKLED2001_set_led_control_register(uint8_t index, bool red, bool green, bool blue) {
161 ckled2001_led led = g_ckled2001_leds[index]; 162 ckled2001_led led;
163 memcpy_P(&led, (&g_ckled2001_leds[index]), sizeof(led));
162 164
163 uint8_t control_register_r = led.r / 8; 165 uint8_t control_register_r = led.r / 8;
164 uint8_t control_register_g = led.g / 8; 166 uint8_t control_register_g = led.g / 8;
diff --git a/drivers/led/ckled2001.h b/drivers/led/ckled2001.h
index efe399690..1967961d2 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 __flash g_ckled2001_leds[DRIVER_LED_TOTAL]; 30extern const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL];
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 9d28ea91d..f51e2e38a 100644
--- a/drivers/led/issi/is31fl3731-simple.c
+++ b/drivers/led/issi/is31fl3731-simple.c
@@ -193,8 +193,9 @@ void IS31FL3731_init(uint8_t addr) {
193} 193}
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 if (index >= 0 && index < DRIVER_LED_TOTAL) { 197 if (index >= 0 && index < DRIVER_LED_TOTAL) {
197 is31_led led = g_is31_leds[index]; 198 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
198 199
199 // Subtract 0x24 to get the second index of g_pwm_buffer 200 // Subtract 0x24 to get the second index of g_pwm_buffer
200 g_pwm_buffer[led.driver][led.v - 0x24] = value; 201 g_pwm_buffer[led.driver][led.v - 0x24] = value;
@@ -209,7 +210,8 @@ void IS31FL3731_set_value_all(uint8_t value) {
209} 210}
210 211
211void IS31FL3731_set_led_control_register(uint8_t index, bool value) { 212void IS31FL3731_set_led_control_register(uint8_t index, bool value) {
212 is31_led led = g_is31_leds[index]; 213 is31_led led;
214 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
213 215
214 uint8_t control_register = (led.v - 0x24) / 8; 216 uint8_t control_register = (led.v - 0x24) / 8;
215 uint8_t bit_value = (led.v - 0x24) % 8; 217 uint8_t bit_value = (led.v - 0x24) % 8;
diff --git a/drivers/led/issi/is31fl3731-simple.h b/drivers/led/issi/is31fl3731-simple.h
index ecde31eed..ded94b047 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 __flash g_is31_leds[DRIVER_LED_TOTAL]; 30extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL];
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 fbf24c30f..e6190a6b9 100644
--- a/drivers/led/issi/is31fl3731.c
+++ b/drivers/led/issi/is31fl3731.c
@@ -181,8 +181,9 @@ void IS31FL3731_init(uint8_t addr) {
181} 181}
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 if (index >= 0 && index < DRIVER_LED_TOTAL) { 185 if (index >= 0 && index < DRIVER_LED_TOTAL) {
185 is31_led led = g_is31_leds[index]; 186 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
186 187
187 // Subtract 0x24 to get the second index of g_pwm_buffer 188 // Subtract 0x24 to get the second index of g_pwm_buffer
188 g_pwm_buffer[led.driver][led.r - 0x24] = red; 189 g_pwm_buffer[led.driver][led.r - 0x24] = red;
@@ -199,7 +200,8 @@ void IS31FL3731_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
199} 200}
200 201
201void IS31FL3731_set_led_control_register(uint8_t index, bool red, bool green, bool blue) { 202void IS31FL3731_set_led_control_register(uint8_t index, bool red, bool green, bool blue) {
202 is31_led led = g_is31_leds[index]; 203 is31_led led;
204 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
203 205
204 uint8_t control_register_r = (led.r - 0x24) / 8; 206 uint8_t control_register_r = (led.r - 0x24) / 8;
205 uint8_t control_register_g = (led.g - 0x24) / 8; 207 uint8_t control_register_g = (led.g - 0x24) / 8;
diff --git a/drivers/led/issi/is31fl3731.h b/drivers/led/issi/is31fl3731.h
index 803ea3ea1..6647119eb 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 __flash g_is31_leds[DRIVER_LED_TOTAL]; 31extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL];
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.c b/drivers/led/issi/is31fl3733.c
index 371010fd8..696491d07 100644
--- a/drivers/led/issi/is31fl3733.c
+++ b/drivers/led/issi/is31fl3733.c
@@ -181,8 +181,9 @@ void IS31FL3733_init(uint8_t addr, uint8_t sync) {
181} 181}
182 182
183void IS31FL3733_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 183void IS31FL3733_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
184 is31_led led;
184 if (index >= 0 && index < DRIVER_LED_TOTAL) { 185 if (index >= 0 && index < DRIVER_LED_TOTAL) {
185 is31_led led = g_is31_leds[index]; 186 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
186 187
187 g_pwm_buffer[led.driver][led.r] = red; 188 g_pwm_buffer[led.driver][led.r] = red;
188 g_pwm_buffer[led.driver][led.g] = green; 189 g_pwm_buffer[led.driver][led.g] = green;
@@ -198,7 +199,8 @@ void IS31FL3733_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
198} 199}
199 200
200void IS31FL3733_set_led_control_register(uint8_t index, bool red, bool green, bool blue) { 201void IS31FL3733_set_led_control_register(uint8_t index, bool red, bool green, bool blue) {
201 is31_led led = g_is31_leds[index]; 202 is31_led led;
203 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
202 204
203 uint8_t control_register_r = led.r / 8; 205 uint8_t control_register_r = led.r / 8;
204 uint8_t control_register_g = led.g / 8; 206 uint8_t control_register_g = led.g / 8;
diff --git a/drivers/led/issi/is31fl3733.h b/drivers/led/issi/is31fl3733.h
index daa226b41..c5d62fed8 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 __flash g_is31_leds[DRIVER_LED_TOTAL]; 33extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL];
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 dcaabba2e..c9a871118 100644
--- a/drivers/led/issi/is31fl3736.c
+++ b/drivers/led/issi/is31fl3736.c
@@ -163,8 +163,9 @@ void IS31FL3736_init(uint8_t addr) {
163} 163}
164 164
165void IS31FL3736_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 165void IS31FL3736_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
166 is31_led led;
166 if (index >= 0 && index < DRIVER_LED_TOTAL) { 167 if (index >= 0 && index < DRIVER_LED_TOTAL) {
167 is31_led led = g_is31_leds[index]; 168 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
168 169
169 g_pwm_buffer[led.driver][led.r] = red; 170 g_pwm_buffer[led.driver][led.r] = red;
170 g_pwm_buffer[led.driver][led.g] = green; 171 g_pwm_buffer[led.driver][led.g] = green;
@@ -180,7 +181,8 @@ void IS31FL3736_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
180} 181}
181 182
182void IS31FL3736_set_led_control_register(uint8_t index, bool red, bool green, bool blue) { 183void IS31FL3736_set_led_control_register(uint8_t index, bool red, bool green, bool blue) {
183 is31_led led = g_is31_leds[index]; 184 is31_led led;
185 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
184 186
185 // IS31FL3733 187 // IS31FL3733
186 // The PWM register for a matrix position (0x00 to 0xBF) can be 188 // The PWM register for a matrix position (0x00 to 0xBF) can be
diff --git a/drivers/led/issi/is31fl3736.h b/drivers/led/issi/is31fl3736.h
index a30be9055..9fbe1cc57 100644
--- a/drivers/led/issi/is31fl3736.h
+++ b/drivers/led/issi/is31fl3736.h
@@ -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 __flash g_is31_leds[DRIVER_LED_TOTAL]; 42extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL];
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 62862e0d4..0722e1886 100644
--- a/drivers/led/issi/is31fl3737.c
+++ b/drivers/led/issi/is31fl3737.c
@@ -166,8 +166,9 @@ void IS31FL3737_init(uint8_t addr) {
166} 166}
167 167
168void IS31FL3737_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 168void IS31FL3737_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
169 is31_led led;
169 if (index >= 0 && index < DRIVER_LED_TOTAL) { 170 if (index >= 0 && index < DRIVER_LED_TOTAL) {
170 is31_led led = g_is31_leds[index]; 171 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
171 172
172 g_pwm_buffer[led.driver][led.r] = red; 173 g_pwm_buffer[led.driver][led.r] = red;
173 g_pwm_buffer[led.driver][led.g] = green; 174 g_pwm_buffer[led.driver][led.g] = green;
@@ -183,7 +184,8 @@ void IS31FL3737_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
183} 184}
184 185
185void IS31FL3737_set_led_control_register(uint8_t index, bool red, bool green, bool blue) { 186void IS31FL3737_set_led_control_register(uint8_t index, bool red, bool green, bool blue) {
186 is31_led led = g_is31_leds[index]; 187 is31_led led;
188 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
187 189
188 uint8_t control_register_r = led.r / 8; 190 uint8_t control_register_r = led.r / 8;
189 uint8_t control_register_g = led.g / 8; 191 uint8_t control_register_g = led.g / 8;
diff --git a/drivers/led/issi/is31fl3737.h b/drivers/led/issi/is31fl3737.h
index 97917f1d4..31b1a2226 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 __flash g_is31_leds[DRIVER_LED_TOTAL]; 33extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL];
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 5084f3b9f..8d347a5e6 100644
--- a/drivers/led/issi/is31fl3741.c
+++ b/drivers/led/issi/is31fl3741.c
@@ -174,8 +174,9 @@ void IS31FL3741_init(uint8_t addr) {
174} 174}
175 175
176void IS31FL3741_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 176void IS31FL3741_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
177 is31_led led;
177 if (index >= 0 && index < DRIVER_LED_TOTAL) { 178 if (index >= 0 && index < DRIVER_LED_TOTAL) {
178 is31_led led = g_is31_leds[index]; 179 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
179 180
180 g_pwm_buffer[led.driver][led.r] = red; 181 g_pwm_buffer[led.driver][led.r] = red;
181 g_pwm_buffer[led.driver][led.g] = green; 182 g_pwm_buffer[led.driver][led.g] = green;
@@ -191,7 +192,8 @@ void IS31FL3741_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
191} 192}
192 193
193void IS31FL3741_set_led_control_register(uint8_t index, bool red, bool green, bool blue) { 194void IS31FL3741_set_led_control_register(uint8_t index, bool red, bool green, bool blue) {
194 is31_led led = g_is31_leds[index]; 195 is31_led led;
196 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
195 197
196 if (red) { 198 if (red) {
197 g_scaling_registers[led.driver][led.r] = 0xFF; 199 g_scaling_registers[led.driver][led.r] = 0xFF;
diff --git a/drivers/led/issi/is31fl3741.h b/drivers/led/issi/is31fl3741.h
index 563022b9b..8154f8be7 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 __flash g_is31_leds[DRIVER_LED_TOTAL]; 33extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL];
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/keyboards/canary/canary60rgb/canary60rgb.c b/keyboards/canary/canary60rgb/canary60rgb.c
index b01af5f29..b37a88b32 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/clueboard/66_hotswap/gen1/gen1.c b/keyboards/clueboard/66_hotswap/gen1/gen1.c
index 8e3db70d0..66c40731e 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/dp60/dp60.c b/keyboards/dp60/dp60.c
index 87543b2a1..16aac75fa 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/durgod/dgk6x/galaxy/galaxy.c b/keyboards/durgod/dgk6x/galaxy/galaxy.c
index 5f793ed85..86aef1bce 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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 3e235683f..2f2f9e650 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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 3398acb19..0b7fbd12f 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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 a7fc3dbc5..81f4846c2 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/dz60rgb_ansi.c b/keyboards/dztech/dz60rgb_ansi/dz60rgb_ansi.c
index ab2441091..0929ddbf4 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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_wkl/dz60rgb_wkl.c b/keyboards/dztech/dz60rgb_wkl/dz60rgb_wkl.c
index 455624471..83feb5845 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/dz65rgb/v1/v1.c b/keyboards/dztech/dz65rgb/v1/v1.c
index aabe41c31..8caced800 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/v2.c b/keyboards/dztech/dz65rgb/v2/v2.c
index dce167c73..db8e968cc 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/v3.c b/keyboards/dztech/dz65rgb/v3/v3.c
index c3719bfa5..18f87dc00 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index 7af76cb62..49f690fa7 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 246const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
247/* driver 247/* driver
248 * | R location 248 * | R location
249 * | | G location 249 * | | G location
diff --git a/keyboards/ergodox_infinity/ergodox_infinity.c b/keyboards/ergodox_infinity/ergodox_infinity.c
index 88028d363..e6ac2c455 100644
--- a/keyboards/ergodox_infinity/ergodox_infinity.c
+++ b/keyboards/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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 177const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/evyd13/atom47/rev5/rev5.c b/keyboards/evyd13/atom47/rev5/rev5.c
index ea0208706..f972b7886 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/e6_rgb.c b/keyboards/exclusive/e6_rgb/e6_rgb.c
index e0d313f83..11d313e9a 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 14const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/indicators.c b/keyboards/fallacy/indicators.c
index dcf1b4de0..c577bc9a8 100755
--- a/keyboards/fallacy/indicators.c
+++ b/keyboards/fallacy/indicators.c
@@ -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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 57const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/geekboards/tester/tester.c b/keyboards/geekboards/tester/tester.c
index 532df7a53..70865c461 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 2const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/gmmk/pro/ansi/keymaps/mattgauf/ansi.c b/keyboards/gmmk/pro/ansi/keymaps/mattgauf/ansi.c
index b09af297b..52c9dfdf9 100644
--- a/keyboards/gmmk/pro/ansi/keymaps/mattgauf/ansi.c
+++ b/keyboards/gmmk/pro/ansi/keymaps/mattgauf/ansi.c
@@ -18,7 +18,7 @@
18#include "ansi.h" 18#include "ansi.h"
19 19
20#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
21led_config_t __flash g_led_config = {{ 21led_config_t PROGMEM g_led_config = {{
22 { 4, NO_LED, NO_LED, 95, 65, 79, 5, 28 }, 22 { 4, NO_LED, NO_LED, 95, 65, 79, 5, 28 },
23 { 8, 2, 9, 0, 10, 75, 1, 7 }, 23 { 8, 2, 9, 0, 10, 75, 1, 7 },
24 { 14, 3, 15, NO_LED, 16, 86, 6, 13 }, 24 { 14, 3, 15, NO_LED, 16, 86, 6, 13 },
diff --git a/keyboards/hs60/v1/v1.c b/keyboards/hs60/v1/v1.c
index d2bb8011f..f96eb7c32 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 94const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 202const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/inett_studio/sqx/hotswap/hotswap.c b/keyboards/inett_studio/sqx/hotswap/hotswap.c
index 5b3c8df82..c8e7d8784 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 23const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/universal.c b/keyboards/inett_studio/sqx/universal/universal.c
index dd431a7f4..06cfbd365 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 23const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/k_type/is31fl3733-dual.h b/keyboards/k_type/is31fl3733-dual.h
index aab170a3f..ea45a7086 100644
--- a/keyboards/k_type/is31fl3733-dual.h
+++ b/keyboards/k_type/is31fl3733-dual.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 __flash g_is31_leds[DRIVER_LED_TOTAL]; 31extern const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL];
32 32
33void IS31FL3733_init(uint8_t bus, uint8_t addr, uint8_t sync); 33void IS31FL3733_init(uint8_t bus, uint8_t addr, uint8_t sync);
34bool IS31FL3733_write_register(uint8_t index, uint8_t addr, uint8_t reg, uint8_t data); 34bool IS31FL3733_write_register(uint8_t index, uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/keyboards/k_type/k_type.c b/keyboards/k_type/k_type.c
index 924862277..29e7fa57b 100644
--- a/keyboards/k_type/k_type.c
+++ b/keyboards/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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 26const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/kbdfans/bella/rgb/rgb.c b/keyboards/kbdfans/bella/rgb/rgb.c
index 17cf99214..4353cae1b 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 18const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rgb_iso.c b/keyboards/kbdfans/bella/rgb_iso/rgb_iso.c
index 0c431b154..072501045 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 18const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rgb.c b/keyboards/kbdfans/boop65/rgb/rgb.c
index 5682ee289..3e9c66f45 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/v1.c b/keyboards/kbdfans/kbd67/mkiirgb/v1/v1.c
index 53b57dc73..f00367387 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/v2.c b/keyboards/kbdfans/kbd67/mkiirgb/v2/v2.c
index 562b9c454..37972c250 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/v3.c b/keyboards/kbdfans/kbd67/mkiirgb/v3/v3.c
index 6e368a5c7..85806aff5 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/kbdmini/kbdmini.c b/keyboards/kbdfans/kbdmini/kbdmini.c
index 799803c6f..03c0096c7 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/maja.c b/keyboards/kbdfans/maja/maja.c
index 9619a84b4..d25721275 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/keychron/q1/rev_0100/rev_0100.c b/keyboards/keychron/q1/rev_0100/rev_0100.c
index abc4f2716..f42466952 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev_0102.c b/keyboards/keychron/q1/rev_0102/rev_0102.c
index 722284aaa..e8a2c85ae 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 19
20const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/latin17rgb/latin17rgb.c b/keyboards/latin17rgb/latin17rgb.c
index f7bbe125c..d4ab3ea67 100644
--- a/keyboards/latin17rgb/latin17rgb.c
+++ b/keyboards/latin17rgb/latin17rgb.c
@@ -17,7 +17,7 @@
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19 19
20const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/latin60rgb/latin60rgb.c b/keyboards/latin60rgb/latin60rgb.c
index fe5d2eea8..b849f7ef9 100644
--- a/keyboards/latin60rgb/latin60rgb.c
+++ b/keyboards/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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/latin6rgb/latin6rgb.c b/keyboards/latin6rgb/latin6rgb.c
index 9ea4721ec..ddab9a151 100644
--- a/keyboards/latin6rgb/latin6rgb.c
+++ b/keyboards/latin6rgb/latin6rgb.c
@@ -17,7 +17,7 @@
17 17
18#ifdef RGB_MATRIX_ENABLE 18#ifdef RGB_MATRIX_ENABLE
19 19
20const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/matrix/m20add/rgb_ring.c b/keyboards/matrix/m20add/rgb_ring.c
index e759ee4e4..7535cb5bd 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 33const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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
diff --git a/keyboards/matrix/noah/noah.c b/keyboards/matrix/noah/noah.c
index 20d68f34e..2143dee3b 100644
--- a/keyboards/matrix/noah/noah.c
+++ b/keyboards/matrix/noah/noah.c
@@ -58,7 +58,7 @@ void matrix_scan_kb(void) {
58} 58}
59 59
60#ifdef RGB_MATRIX_ENABLE 60#ifdef RGB_MATRIX_ENABLE
61const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 61const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
62/* Refer to IS31 manual for these locations 62/* Refer to IS31 manual for these locations
63 * driver 63 * driver
64 * | R location 64 * | R location
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c b/keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c
index fe946169a..dda36f371 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev3.c b/keyboards/mechlovin/adelais/rgb_led/rev3/rev3.c
index 7631bc850..b20f89772 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rgb_led.c b/keyboards/mechlovin/delphine/rgb_led/rgb_led.c
index 29b6d1f78..413a9a06e 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev2/rev2.c b/keyboards/mechlovin/hannah60rgb/rev2/rev2.c
index 8b30538cc..ac371e418 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rgb_rev1.c b/keyboards/mechlovin/infinity87/rgb_rev1/rgb_rev1.c
index bd1fd8abf..0ad5d4143 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/melgeek/mach80/rev1/rev1.c b/keyboards/melgeek/mach80/rev1/rev1.c
index 5a7970857..4d11d3f71 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev1.c b/keyboards/melgeek/mj61/rev1/rev1.c
index e51c57548..9d8de36d8 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev2.c b/keyboards/melgeek/mj61/rev2/rev2.c
index 3f6b1bff7..b46cf08c4 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev1.c b/keyboards/melgeek/mj63/rev1/rev1.c
index a6ee8859b..45abafd84 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev2.c b/keyboards/melgeek/mj63/rev2/rev2.c
index 8cacc689a..b21c4f960 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev1.c b/keyboards/melgeek/mj64/rev1/rev1.c
index 446ba779d..3279e7a1f 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev2.c b/keyboards/melgeek/mj64/rev2/rev2.c
index 444e8f60a..b0653f9e7 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev3.c b/keyboards/melgeek/mj64/rev3/rev3.c
index 2a1283ec7..b67dbee75 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev3.c b/keyboards/melgeek/mj65/rev3/rev3.c
index 6335edd79..f02c29e74 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev1.c b/keyboards/melgeek/mojo68/rev1/rev1.c
index cc45417e8..27c9212ac 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev1.c b/keyboards/melgeek/mojo75/rev1/rev1.c
index 07ae916da..ae103801e 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/z70ultra/z70ultra.c b/keyboards/melgeek/z70ultra/z70ultra.c
index 552576cd7..6be690c01 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/miller/gm862/gm862.c b/keyboards/miller/gm862/gm862.c
index d67104838..526295776 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/moonlander/moonlander.c b/keyboards/moonlander/moonlander.c
index 8688b9efa..3f9b3d40a 100644
--- a/keyboards/moonlander/moonlander.c
+++ b/keyboards/moonlander/moonlander.c
@@ -203,7 +203,7 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
203 203
204#ifdef RGB_MATRIX_ENABLE 204#ifdef RGB_MATRIX_ENABLE
205// clang-format off 205// clang-format off
206const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 206const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
207/* Refer to IS31 manual for these locations 207/* Refer to IS31 manual for these locations
208 * driver 208 * driver
209 * | R location 209 * | R location
diff --git a/keyboards/mt64rgb/mt64rgb.c b/keyboards/mt64rgb/mt64rgb.c
index a0b8e8da7..f0c444e8f 100644
--- a/keyboards/mt64rgb/mt64rgb.c
+++ b/keyboards/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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/mt84/mt84.c b/keyboards/mt84/mt84.c
index 9b00aa635..e15a1ff95 100644
--- a/keyboards/mt84/mt84.c
+++ b/keyboards/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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/neson_design/n6/n6.c b/keyboards/neson_design/n6/n6.c
index 15f14d7e3..e99467fa0 100644
--- a/keyboards/neson_design/n6/n6.c
+++ b/keyboards/neson_design/n6/n6.c
@@ -187,7 +187,7 @@ static void self_testing(void)
187 update_ticks(); 187 update_ticks();
188} 188}
189 189
190const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 190const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
191 /* Refer to IS31 manual for these locations 191 /* Refer to IS31 manual for these locations
192 * driver 192 * driver
193 * | R location 193 * | R location
diff --git a/keyboards/opendeck/32/rev1/rev1.c b/keyboards/opendeck/32/rev1/rev1.c
index 91f59a60b..332dc3cc4 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/planck/ez/ez.c b/keyboards/planck/ez/ez.c
index 27cb2a1d1..5c68726a0 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 24const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/light/light.c b/keyboards/planck/light/light.c
index 839848228..1967d318d 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/playkbtw/pk64rgb/pk64rgb.c b/keyboards/playkbtw/pk64rgb/pk64rgb.c
index 244a47967..bc1f63a5b 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/smallkeyboard/smallkeyboard.c b/keyboards/smallkeyboard/smallkeyboard.c
index f89a6d32b..af38cb612 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c
index 19ac6be49..731efec20 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 24const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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 */
diff --git a/keyboards/tkc/portico/portico.c b/keyboards/tkc/portico/portico.c
index e3d3a1488..0e2b4b249 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/whitefox/whitefox.c b/keyboards/whitefox/whitefox.c
index b17af1512..99c59f773 100644
--- a/keyboards/whitefox/whitefox.c
+++ b/keyboards/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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/wilba_tech/wt_rgb_backlight.c b/keyboards/wilba_tech/wt_rgb_backlight.c
index 63763c6c9..cc34a90c7 100644
--- a/keyboards/wilba_tech/wt_rgb_backlight.c
+++ b/keyboards/wilba_tech/wt_rgb_backlight.c
@@ -158,7 +158,7 @@ uint32_t g_any_key_hit = 0;
158// ADDR_2 is not needed. it is here as a dummy 158// ADDR_2 is not needed. it is here as a dummy
159#define ISSI_ADDR_1 0x50 159#define ISSI_ADDR_1 0x50
160 160
161const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 161const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
162/* Refer to IS31 manual for these locations 162/* Refer to IS31 manual for these locations
163 * driver 163 * driver
164 * | R location 164 * | R location
@@ -239,7 +239,7 @@ const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
239#define ISSI_ADDR_1 0x50 239#define ISSI_ADDR_1 0x50
240#define ISSI_ADDR_2 0x52 240#define ISSI_ADDR_2 0x52
241 241
242const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 242const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
243/* Refer to IS31 manual for these locations 243/* Refer to IS31 manual for these locations
244 * driver 244 * driver
245 * | R location 245 * | R location
@@ -382,7 +382,7 @@ const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
382// set to 0 for write, 1 for read (as per I2C protocol) 382// set to 0 for write, 1 for read (as per I2C protocol)
383#define ISSI_ADDR_1 0x74 383#define ISSI_ADDR_1 0x74
384 384
385const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 385const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
386/* Refer to IS31 manual for these locations 386/* Refer to IS31 manual for these locations
387 * driver 387 * driver
388 * | R location 388 * | R location
@@ -414,7 +414,7 @@ const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
414#define ISSI_ADDR_2 0x76 // 11101[10] <- SDA 414#define ISSI_ADDR_2 0x76 // 11101[10] <- SDA
415#define ISSI_ADDR_3 0x75 // 11101[01] <- SCL 415#define ISSI_ADDR_3 0x75 // 11101[01] <- SCL
416 416
417const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 417const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
418/* Refer to IS31 manual for these locations 418/* Refer to IS31 manual for these locations
419 * driver 419 * driver
420 * | R location 420 * | R location
@@ -541,7 +541,7 @@ const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
541#define ISSI_ADDR_1 0x74 541#define ISSI_ADDR_1 0x74
542#define ISSI_ADDR_2 0x76 542#define ISSI_ADDR_2 0x76
543 543
544const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 544const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
545/* Refer to IS31 manual for these locations 545/* Refer to IS31 manual for these locations
546 * driver 546 * driver
547 * | R location 547 * | R location
@@ -622,7 +622,7 @@ const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
622#define ISSI_ADDR_1 0x74 622#define ISSI_ADDR_1 0x74
623#define ISSI_ADDR_2 0x77 623#define ISSI_ADDR_2 0x77
624 624
625const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 625const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
626/* Refer to IS31 manual for these locations 626/* Refer to IS31 manual for these locations
627 * driver 627 * driver
628 * | R location 628 * | R location
@@ -709,7 +709,7 @@ const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
709#define ISSI_ADDR_1 0x74 709#define ISSI_ADDR_1 0x74
710#define ISSI_ADDR_2 710#define ISSI_ADDR_2
711 711
712const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 712const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
713 {0, C1_9, C3_10, C4_10}, // LB1 713 {0, C1_9, C3_10, C4_10}, // LB1
714 {0, C1_10, C2_10, C4_11}, // LB2 714 {0, C1_10, C2_10, C4_11}, // LB2
715 {0, C1_11, C2_11, C3_11}, // LB3 715 {0, C1_11, C2_11, C3_11}, // LB3
@@ -729,7 +729,7 @@ const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
729#define ISSI_ADDR_1 0x74 729#define ISSI_ADDR_1 0x74
730#define ISSI_ADDR_2 0x76 730#define ISSI_ADDR_2 0x76
731 731
732const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = { 732const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
733/* Refer to IS31 manual for these locations 733/* Refer to IS31 manual for these locations
734 * driver 734 * driver
735 * | R location 735 * | R location
diff --git a/keyboards/xbows/knight/knight.c b/keyboards/xbows/knight/knight.c
index 539ecb653..8c2fd9dfa 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/knight_plus.c b/keyboards/xbows/knight_plus/knight_plus.c
index c5dd1a5fd..ede23dc63 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/nature.c b/keyboards/xbows/nature/nature.c
index b7b10d5ab..80d695fec 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/numpad.c b/keyboards/xbows/numpad/numpad.c
index 8f25152e3..bbc2a1e98 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/ranger.c b/keyboards/xbows/ranger/ranger.c
index 618afbdbf..9a0991896 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 18const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/woody.c b/keyboards/xbows/woody/woody.c
index 39d87442c..41601d39a 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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_qmk/rev1_qmk.c b/keyboards/xelus/dawn60/rev1_qmk/rev1_qmk.c
index c6ddef093..8b044ee4f 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 28const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/pachi/rgb/rev1/rev1.c b/keyboards/xelus/pachi/rgb/rev1/rev1.c
index 74f46e681..707426500 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 25const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/rev2.c b/keyboards/xelus/pachi/rgb/rev2/rev2.c
index 3a2e7caca..b8a7bc273 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 __flash g_is31_leds[DRIVER_LED_TOTAL] = { 25const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
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/platforms/progmem.h b/platforms/progmem.h
index a70d8e299..3a7a16968 100644
--- a/platforms/progmem.h
+++ b/platforms/progmem.h
@@ -5,7 +5,6 @@
5#else 5#else
6# include <string.h> 6# include <string.h>
7# define PROGMEM 7# define PROGMEM
8# define __flash
9# define PSTR(x) x 8# define PSTR(x) x
10# define PGM_P const char* 9# define PGM_P const char*
11# define memcpy_P(dest, src, n) memcpy(dest, src, n) 10# define memcpy_P(dest, src, n) memcpy(dest, src, n)