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.h3
-rw-r--r--drivers/led/issi/is31fl3731-simple.h3
-rw-r--r--drivers/led/issi/is31fl3731.h3
-rw-r--r--drivers/led/issi/is31fl3733.h3
-rw-r--r--drivers/led/issi/is31fl3736.h3
-rw-r--r--drivers/led/issi/is31fl3737.c9
-rw-r--r--drivers/led/issi/is31fl3737.h3
-rw-r--r--drivers/led/issi/is31fl3741.h3
-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/exclusive/e6_rgb/e6_rgb.c2
-rwxr-xr-xkeyboards/fallacy/indicators.c2
-rw-r--r--keyboards/geekboards/tester/tester.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/kbd67/mkiirgb/mkiirgb.c2
-rw-r--r--keyboards/kbdfans/kbdmini/kbdmini.c2
-rwxr-xr-xkeyboards/kbdfans/maja/maja.c2
-rw-r--r--keyboards/keychron/q1/q1.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/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
-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
-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/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/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/woody/woody.c2
-rw-r--r--keyboards/xelus/dawn60/rev1_qmk/rev1_qmk.c2
-rw-r--r--keyboards/xelus/pachi/rgb/rgb.c2
-rw-r--r--tmk_core/common/progmem.h1
76 files changed, 95 insertions, 92 deletions
diff --git a/docs/feature_led_matrix.md b/docs/feature_led_matrix.md
index afa11e723..7d7971bbe 100644
--- a/docs/feature_led_matrix.md
+++ b/docs/feature_led_matrix.md
@@ -52,7 +52,7 @@ Here is an example using 2 drivers.
52Define these arrays listing all the LEDs in your `<keyboard>.c`: 52Define these arrays listing all the LEDs in your `<keyboard>.c`:
53 53
54```c 54```c
55const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 55const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
56/* Refer to IS31 manual for these locations 56/* Refer to IS31 manual for these locations
57 * driver 57 * driver
58 * | LED address 58 * | LED address
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md
index 18e38955e..670d7e09b 100644
--- a/docs/feature_rgb_matrix.md
+++ b/docs/feature_rgb_matrix.md
@@ -52,7 +52,7 @@ Here is an example using 2 drivers.
52Define these arrays listing all the LEDs in your `<keyboard>.c`: 52Define these arrays listing all the LEDs in your `<keyboard>.c`:
53 53
54```c 54```c
55const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 55const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
56/* Refer to IS31 manual for these locations 56/* Refer to IS31 manual for these locations
57 * driver 57 * driver
58 * | R location 58 * | R location
@@ -122,7 +122,7 @@ Currently only 4 drivers are supported, but it would be trivial to support all 8
122Define these arrays listing all the LEDs in your `<keyboard>.c`: 122Define these arrays listing all the LEDs in your `<keyboard>.c`:
123 123
124```c 124```c
125const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 125const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
126/* Refer to IS31 manual for these locations 126/* Refer to IS31 manual for these locations
127 * driver 127 * driver
128 * | R location 128 * | R location
@@ -186,7 +186,7 @@ Currently only 2 drivers are supported, but it would be trivial to support all 4
186Define these arrays listing all the LEDs in your `<keyboard>.c`: 186Define these arrays listing all the LEDs in your `<keyboard>.c`:
187 187
188```c 188```c
189const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 189const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
190/* Refer to IS31 manual for these locations 190/* Refer to IS31 manual for these locations
191 * driver 191 * driver
192 * | R location 192 * | R location
@@ -287,7 +287,7 @@ Here is an example using 2 drivers.
287Define these arrays listing all the LEDs in your `<keyboard>.c`: 287Define these arrays listing all the LEDs in your `<keyboard>.c`:
288 288
289```c 289```c
290const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { 290const aw_led __flash g_aw_leds[DRIVER_LED_TOTAL] = {
291/* Each AW20216 channel is controlled by a register at some offset between 0x00 291/* Each AW20216 channel is controlled by a register at some offset between 0x00
292 * and 0xD7 inclusive. 292 * and 0xD7 inclusive.
293 * See drivers/awinic/aw20216.h for the mapping between register offsets and 293 * 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 f132d716f..6511b2824 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 g_is31_leds[DRIVER_LED_TOTAL] = { 55 const is31_led __flash 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.h b/drivers/led/aw20216.h
index c55d9605f..97ac6dc5b 100644
--- a/drivers/led/aw20216.h
+++ b/drivers/led/aw20216.h
@@ -18,6 +18,7 @@
18 18
19#include <stdint.h> 19#include <stdint.h>
20#include <stdbool.h> 20#include <stdbool.h>
21#include "progmem.h"
21#include "gpio.h" 22#include "gpio.h"
22 23
23typedef struct aw_led { 24typedef struct aw_led {
@@ -27,7 +28,7 @@ typedef struct aw_led {
27 uint8_t b; 28 uint8_t b;
28} aw_led; 29} aw_led;
29 30
30extern const aw_led g_aw_leds[DRIVER_LED_TOTAL]; 31extern const aw_led __flash g_aw_leds[DRIVER_LED_TOTAL];
31 32
32void AW20216_init(pin_t cs_pin, pin_t en_pin); 33void AW20216_init(pin_t cs_pin, pin_t en_pin);
33void 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/issi/is31fl3731-simple.h b/drivers/led/issi/is31fl3731-simple.h
index 9665d6ed3..ecde31eed 100644
--- a/drivers/led/issi/is31fl3731-simple.h
+++ b/drivers/led/issi/is31fl3731-simple.h
@@ -20,13 +20,14 @@
20 20
21#include <stdint.h> 21#include <stdint.h>
22#include <stdbool.h> 22#include <stdbool.h>
23#include "progmem.h"
23 24
24typedef struct is31_led { 25typedef struct is31_led {
25 uint8_t driver : 2; 26 uint8_t driver : 2;
26 uint8_t v; 27 uint8_t v;
27} __attribute__((packed)) is31_led; 28} __attribute__((packed)) is31_led;
28 29
29extern const is31_led g_is31_leds[DRIVER_LED_TOTAL]; 30extern const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL];
30 31
31void IS31FL3731_init(uint8_t addr); 32void IS31FL3731_init(uint8_t addr);
32void 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.h b/drivers/led/issi/is31fl3731.h
index 19e8e6251..803ea3ea1 100644
--- a/drivers/led/issi/is31fl3731.h
+++ b/drivers/led/issi/is31fl3731.h
@@ -19,6 +19,7 @@
19 19
20#include <stdint.h> 20#include <stdint.h>
21#include <stdbool.h> 21#include <stdbool.h>
22#include "progmem.h"
22 23
23typedef struct is31_led { 24typedef struct is31_led {
24 uint8_t driver : 2; 25 uint8_t driver : 2;
@@ -27,7 +28,7 @@ typedef struct is31_led {
27 uint8_t b; 28 uint8_t b;
28} __attribute__((packed)) is31_led; 29} __attribute__((packed)) is31_led;
29 30
30extern const is31_led g_is31_leds[DRIVER_LED_TOTAL]; 31extern const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL];
31 32
32void IS31FL3731_init(uint8_t addr); 33void IS31FL3731_init(uint8_t addr);
33void 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.h b/drivers/led/issi/is31fl3733.h
index 603d505a1..64fd38eb1 100644
--- a/drivers/led/issi/is31fl3733.h
+++ b/drivers/led/issi/is31fl3733.h
@@ -20,6 +20,7 @@
20 20
21#include <stdint.h> 21#include <stdint.h>
22#include <stdbool.h> 22#include <stdbool.h>
23#include "progmem.h"
23 24
24typedef struct is31_led { 25typedef struct is31_led {
25 uint8_t driver : 2; 26 uint8_t driver : 2;
@@ -28,7 +29,7 @@ typedef struct is31_led {
28 uint8_t b; 29 uint8_t b;
29} __attribute__((packed)) is31_led; 30} __attribute__((packed)) is31_led;
30 31
31extern const is31_led g_is31_leds[DRIVER_LED_TOTAL]; 32extern const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL];
32 33
33void IS31FL3733_init(uint8_t addr, uint8_t sync); 34void IS31FL3733_init(uint8_t addr, uint8_t sync);
34bool 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/is31fl3736.h b/drivers/led/issi/is31fl3736.h
index e48e31c27..c956c87f7 100644
--- a/drivers/led/issi/is31fl3736.h
+++ b/drivers/led/issi/is31fl3736.h
@@ -18,6 +18,7 @@
18 18
19#include <stdint.h> 19#include <stdint.h>
20#include <stdbool.h> 20#include <stdbool.h>
21#include "progmem.h"
21 22
22// Simple interface option. 23// Simple interface option.
23// If these aren't defined, just define them to make it compile 24// If these aren't defined, just define them to make it compile
@@ -37,7 +38,7 @@ typedef struct is31_led {
37 uint8_t b; 38 uint8_t b;
38} __attribute__((packed)) is31_led; 39} __attribute__((packed)) is31_led;
39 40
40extern const is31_led g_is31_leds[DRIVER_LED_TOTAL]; 41extern const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL];
41 42
42void IS31FL3736_init(uint8_t addr); 43void IS31FL3736_init(uint8_t addr);
43void IS31FL3736_write_register(uint8_t addr, uint8_t reg, uint8_t data); 44void 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 30906b484..0bb4ddd42 100644
--- a/drivers/led/issi/is31fl3737.c
+++ b/drivers/led/issi/is31fl3737.c
@@ -19,7 +19,6 @@
19#include "is31fl3737.h" 19#include "is31fl3737.h"
20#include "i2c_master.h" 20#include "i2c_master.h"
21#include "wait.h" 21#include "wait.h"
22#include "progmem.h"
23 22
24// This is a 7-bit address, that gets left-shifted and bit 0 23// This is a 7-bit address, that gets left-shifted and bit 0
25// set to 0 for write, 1 for read (as per I2C protocol) 24// set to 0 for write, 1 for read (as per I2C protocol)
@@ -155,9 +154,7 @@ void IS31FL3737_init(uint8_t addr) {
155 154
156void IS31FL3737_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 155void IS31FL3737_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
157 if (index >= 0 && index < DRIVER_LED_TOTAL) { 156 if (index >= 0 && index < DRIVER_LED_TOTAL) {
158 // copy the led config from progmem to SRAM 157 is31_led led = g_is31_leds[index];
159 is31_led led;
160 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
161 158
162 g_pwm_buffer[led.driver][led.r] = red; 159 g_pwm_buffer[led.driver][led.r] = red;
163 g_pwm_buffer[led.driver][led.g] = green; 160 g_pwm_buffer[led.driver][led.g] = green;
@@ -173,9 +170,7 @@ void IS31FL3737_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
173} 170}
174 171
175void IS31FL3737_set_led_control_register(uint8_t index, bool red, bool green, bool blue) { 172void IS31FL3737_set_led_control_register(uint8_t index, bool red, bool green, bool blue) {
176 // copy the led config from progmem to SRAM 173 is31_led led = g_is31_leds[index];
177 is31_led led;
178 memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
179 174
180 uint8_t control_register_r = led.r / 8; 175 uint8_t control_register_r = led.r / 8;
181 uint8_t control_register_g = led.g / 8; 176 uint8_t control_register_g = led.g / 8;
diff --git a/drivers/led/issi/is31fl3737.h b/drivers/led/issi/is31fl3737.h
index a1d228177..06886e9c9 100644
--- a/drivers/led/issi/is31fl3737.h
+++ b/drivers/led/issi/is31fl3737.h
@@ -20,6 +20,7 @@
20 20
21#include <stdint.h> 21#include <stdint.h>
22#include <stdbool.h> 22#include <stdbool.h>
23#include "progmem.h"
23 24
24typedef struct is31_led { 25typedef struct is31_led {
25 uint8_t driver : 2; 26 uint8_t driver : 2;
@@ -28,7 +29,7 @@ typedef struct is31_led {
28 uint8_t b; 29 uint8_t b;
29} __attribute__((packed)) is31_led; 30} __attribute__((packed)) is31_led;
30 31
31extern const is31_led g_is31_leds[DRIVER_LED_TOTAL]; 32extern const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL];
32 33
33void IS31FL3737_init(uint8_t addr); 34void IS31FL3737_init(uint8_t addr);
34void IS31FL3737_write_register(uint8_t addr, uint8_t reg, uint8_t data); 35void IS31FL3737_write_register(uint8_t addr, uint8_t reg, uint8_t data);
diff --git a/drivers/led/issi/is31fl3741.h b/drivers/led/issi/is31fl3741.h
index 2df0c5b1a..cea6761ca 100644
--- a/drivers/led/issi/is31fl3741.h
+++ b/drivers/led/issi/is31fl3741.h
@@ -21,6 +21,7 @@
21 21
22#include <stdint.h> 22#include <stdint.h>
23#include <stdbool.h> 23#include <stdbool.h>
24#include "progmem.h"
24 25
25typedef struct is31_led { 26typedef struct is31_led {
26 uint32_t driver : 2; 27 uint32_t driver : 2;
@@ -29,7 +30,7 @@ typedef struct is31_led {
29 uint32_t b : 10; 30 uint32_t b : 10;
30} __attribute__((packed)) is31_led; 31} __attribute__((packed)) is31_led;
31 32
32extern const is31_led g_is31_leds[DRIVER_LED_TOTAL]; 33extern const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL];
33 34
34void IS31FL3741_init(uint8_t addr); 35void IS31FL3741_init(uint8_t addr);
35void 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/clueboard/66_hotswap/gen1/gen1.c b/keyboards/clueboard/66_hotswap/gen1/gen1.c
index 339bd78d5..8e3db70d0 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 g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led __flash 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 475084b04..87543b2a1 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 g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led __flash 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 d101533b1..5f793ed85 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 21b272291..3e235683f 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 g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led __flash 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 2d49b34da..3398acb19 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 aa02fb902..a7fc3dbc5 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 g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led __flash 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 4bb5938b6..ab2441091 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 g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led __flash 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 b57560bac..455624471 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 g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led __flash 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 8a3f0e27b..aabe41c31 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 g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led __flash 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 788709d98..dce167c73 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 g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led __flash 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 dec75814c..c3719bfa5 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 47dd1b0cc..7af76cb62 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 g_is31_leds[DRIVER_LED_TOTAL] = { 246const is31_led __flash 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 76cbca07f..90aa52242 100644
--- a/keyboards/ergodox_infinity/ergodox_infinity.c
+++ b/keyboards/ergodox_infinity/ergodox_infinity.c
@@ -191,7 +191,7 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
191#endif 191#endif
192 192
193#ifdef LED_MATRIX_ENABLE 193#ifdef LED_MATRIX_ENABLE
194const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 194const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
195// The numbers in the comments are the led numbers DXX on the PCB 195// The numbers in the comments are the led numbers DXX on the PCB
196/* Refer to IS31 manual for these locations 196/* Refer to IS31 manual for these locations
197 * driver 197 * driver
diff --git a/keyboards/exclusive/e6_rgb/e6_rgb.c b/keyboards/exclusive/e6_rgb/e6_rgb.c
index 0e248a202..e0d313f83 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 g_is31_leds[DRIVER_LED_TOTAL] = { 14const is31_led __flash 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 08c500064..dcf1b4de0 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 g_is31_leds[DRIVER_LED_TOTAL] = { 57const is31_led __flash 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 4fab1a701..0c5c056cc 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 g_is31_leds[DRIVER_LED_TOTAL] = { 2const is31_led __flash 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/hs60/v1/v1.c b/keyboards/hs60/v1/v1.c
index 70c1c2128..58b19b640 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 g_is31_leds[DRIVER_LED_TOTAL] = { 94const is31_led __flash 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 g_is31_leds[DRIVER_LED_TOTAL] = { 202const is31_led __flash 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 be8985c87..5b3c8df82 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 g_is31_leds[DRIVER_LED_TOTAL] = { 23const is31_led __flash 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 42d99330d..dd431a7f4 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 g_is31_leds[DRIVER_LED_TOTAL] = { 23const is31_led __flash 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 272bcdc41..aab170a3f 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 g_is31_leds[DRIVER_LED_TOTAL]; 31extern const is31_led __flash 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 61c588145..924862277 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 g_is31_leds[DRIVER_LED_TOTAL] = { 26const is31_led __flash 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 e197d9b53..17cf99214 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 g_is31_leds[DRIVER_LED_TOTAL] = { 18const is31_led __flash 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 1a853ac8a..0c431b154 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 g_is31_leds[DRIVER_LED_TOTAL] = { 18const is31_led __flash 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/kbd67/mkiirgb/mkiirgb.c b/keyboards/kbdfans/kbd67/mkiirgb/mkiirgb.c
index 323cb2384..2826c0898 100644
--- a/keyboards/kbdfans/kbd67/mkiirgb/mkiirgb.c
+++ b/keyboards/kbdfans/kbd67/mkiirgb/mkiirgb.c
@@ -1,6 +1,6 @@
1#include "mkiirgb.h" 1#include "mkiirgb.h"
2#ifdef RGB_MATRIX_ENABLE 2#ifdef RGB_MATRIX_ENABLE
3const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led __flash 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/kbdfans/kbdmini/kbdmini.c b/keyboards/kbdfans/kbdmini/kbdmini.c
index 0e0df2f9a..799803c6f 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 g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led __flash 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 a0afcbda8..9619a84b4 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 g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led __flash 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/q1.c b/keyboards/keychron/q1/q1.c
index 520e6e4c5..6beb96e7e 100644
--- a/keyboards/keychron/q1/q1.c
+++ b/keyboards/keychron/q1/q1.c
@@ -33,7 +33,7 @@ bool dip_switch_update_kb(uint8_t index, bool active) {
33 return true; 33 return true;
34} 34}
35 35
36const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 36const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
37/* Refer to IS31 manual for these locations 37/* Refer to IS31 manual for these locations
38 * driver 38 * driver
39 * | R location 39 * | R location
diff --git a/keyboards/latin17rgb/latin17rgb.c b/keyboards/latin17rgb/latin17rgb.c
index 8d9eaae8a..f7bbe125c 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 g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led __flash 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 cdd6fed44..fe5d2eea8 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 g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led __flash 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 76b39c86b..9ea4721ec 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 g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led __flash 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 fa70dea7e..3a8af7cd3 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 g_is31_leds[DRIVER_LED_TOTAL] = { 33const is31_led __flash 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 1e2f4bb7d..6b624b9e0 100644
--- a/keyboards/matrix/noah/noah.c
+++ b/keyboards/matrix/noah/noah.c
@@ -66,7 +66,7 @@ __attribute__((weak))
66void matrix_scan_user(void) { } 66void matrix_scan_user(void) { }
67 67
68#ifdef RGB_MATRIX_ENABLE 68#ifdef RGB_MATRIX_ENABLE
69const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 69const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
70/* Refer to IS31 manual for these locations 70/* Refer to IS31 manual for these locations
71 * driver 71 * driver
72 * | R location 72 * | R location
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c b/keyboards/mechlovin/adelais/rgb_led/rev2/rev2.c
index 5087174b9..fe946169a 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 g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led __flash 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/delphine/rgb_led/rgb_led.c b/keyboards/mechlovin/delphine/rgb_led/rgb_led.c
index 6f3e3ec73..29b6d1f78 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 05469a1bb..8b30538cc 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 g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led __flash 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 f13fee8ad..bd1fd8abf 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 g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led __flash 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/mj61/rev1/rev1.c b/keyboards/melgeek/mj61/rev1/rev1.c
index be58f57a9..e51c57548 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 g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led __flash 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 236b00397..3f6b1bff7 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 g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led __flash 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 34ff28d25..a6ee8859b 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 g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led __flash 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 c2379dabe..8cacc689a 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 g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led __flash 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 e01765b69..446ba779d 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 d5486b908..444e8f60a 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 03ed9fe00..2a1283ec7 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 43fae53a3..6335edd79 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 670116fcd..07ae916da 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 740720681..552576cd7 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 5af66dd39..d67104838 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 g_is31_leds[DRIVER_LED_TOTAL] = { 4const is31_led __flash 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 d66b74d97..8688b9efa 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 g_is31_leds[DRIVER_LED_TOTAL] = { 206const is31_led __flash 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 73f0e562e..a0b8e8da7 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 g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led __flash 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 e15a1ff95..9b00aa635 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 PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led __flash 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/opendeck/32/rev1/rev1.c b/keyboards/opendeck/32/rev1/rev1.c
index 297af907e..91f59a60b 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 g_is31_leds[DRIVER_LED_TOTAL] = { 20const is31_led __flash 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 5c68726a0..27cb2a1d1 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 __flash 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 896ec4458..3a53e3998 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 g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led __flash 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/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c
index e6ba1f6c3..19ac6be49 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 g_is31_leds[DRIVER_LED_TOTAL] = { 24const is31_led __flash 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 a65a85d24..e3d3a1488 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 g_is31_leds[DRIVER_LED_TOTAL] = { 22const is31_led __flash 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 f10f0fd5c..b17af1512 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 g_is31_leds[DRIVER_LED_TOTAL] = { 21const is31_led __flash 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 e0359daab..77613a333 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 g_is31_leds[DRIVER_LED_TOTAL] = { 161const is31_led __flash 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 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 g_is31_leds[DRIVER_LED_TOTAL] = { 242const is31_led __flash 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 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 g_is31_leds[DRIVER_LED_TOTAL] = { 385const is31_led __flash 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 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 g_is31_leds[DRIVER_LED_TOTAL] = { 417const is31_led __flash 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 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 g_is31_leds[DRIVER_LED_TOTAL] = { 544const is31_led __flash 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 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 g_is31_leds[DRIVER_LED_TOTAL] = { 625const is31_led __flash 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 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 g_is31_leds[DRIVER_LED_TOTAL] = { 712const is31_led __flash 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 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 g_is31_leds[DRIVER_LED_TOTAL] = { 732const is31_led __flash 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 1a1aebf18..539ecb653 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 g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led __flash 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 f2cf5399b..c5dd1a5fd 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 g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led __flash 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 f1b061584..b7b10d5ab 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 g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led __flash 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 0ab677c76..4e05473b6 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 g_is31_leds[DRIVER_LED_TOTAL] = { 18 const is31_led __flash 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 9821f5f65..1027e3ca3 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 g_is31_leds[DRIVER_LED_TOTAL] = { 3const is31_led __flash 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 c305ecae1..c6ddef093 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 g_is31_leds[DRIVER_LED_TOTAL] = { 28const is31_led __flash 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/rgb.c b/keyboards/xelus/pachi/rgb/rgb.c
index ea9812d6b..6f44b13e1 100644
--- a/keyboards/xelus/pachi/rgb/rgb.c
+++ b/keyboards/xelus/pachi/rgb/rgb.c
@@ -24,7 +24,7 @@ void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
24#ifdef RGB_MATRIX_ENABLE 24#ifdef RGB_MATRIX_ENABLE
25#include <i2c_master.h> 25#include <i2c_master.h>
26#include "drivers/led/issi/is31fl3741.h" 26#include "drivers/led/issi/is31fl3741.h"
27const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 27const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
28/* Refer to IS31 manual for these locations 28/* Refer to IS31 manual for these locations
29 * driver 29 * driver
30 * | R location 30 * | R location
diff --git a/tmk_core/common/progmem.h b/tmk_core/common/progmem.h
index 3a7a16968..a70d8e299 100644
--- a/tmk_core/common/progmem.h
+++ b/tmk_core/common/progmem.h
@@ -5,6 +5,7 @@
5#else 5#else
6# include <string.h> 6# include <string.h>
7# define PROGMEM 7# define PROGMEM
8# define __flash
8# define PSTR(x) x 9# define PSTR(x) x
9# define PGM_P const char* 10# define PGM_P const char*
10# define memcpy_P(dest, src, n) memcpy(dest, src, n) 11# define memcpy_P(dest, src, n) memcpy(dest, src, n)