Skip to content

Commit d56ee70

Browse files
fauxparktzarc
andauthored
Rename DRIVER_ADDR_n defines (qmk#22200)
Co-authored-by: Nick Brassel <nick@tzarc.org>
1 parent 3f1b3a5 commit d56ee70

File tree

208 files changed

+768
-686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+768
-686
lines changed

docs/feature_led_matrix.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ You can use between 1 and 4 IS31FL3731 IC's. Do not specify `LED_DRIVER_ADDR_<N>
2323
| `IS31FL3731_I2C_PERSISTENCE` | (Optional) Retry failed messages this many times | 0 |
2424
| `IS31FL3731_DRIVER_COUNT` | (Required) How many LED driver IC's are present | |
2525
| `LED_MATRIX_LED_COUNT` | (Required) How many LED lights are present across all drivers | |
26-
| `LED_DRIVER_ADDR_1` | (Required) Address for the first LED driver | |
27-
| `LED_DRIVER_ADDR_2` | (Optional) Address for the second LED driver | |
28-
| `LED_DRIVER_ADDR_3` | (Optional) Address for the third LED driver | |
29-
| `LED_DRIVER_ADDR_4` | (Optional) Address for the fourth LED driver | |
26+
| `IS31FL3731_I2C_ADDRESS_1` | (Required) Address for the first LED driver | |
27+
| `IS31FL3731_I2C_ADDRESS_2` | (Optional) Address for the second LED driver | |
28+
| `IS31FL3731_I2C_ADDRESS_3` | (Optional) Address for the third LED driver | |
29+
| `IS31FL3731_I2C_ADDRESS_4` | (Optional) Address for the fourth LED driver | |
3030

3131
Here is an example using 2 drivers.
3232

@@ -40,8 +40,8 @@ Here is an example using 2 drivers.
4040
// 11 AD <-> VCC
4141
// ADDR represents A1:A0 of the 7-bit address.
4242
// The result is: 0b11101(ADDR)
43-
#define LED_DRIVER_ADDR_1 IS31FL3731_I2C_ADDRESS_GND
44-
#define LED_DRIVER_ADDR_2 IS31FL3731_I2C_ADDRESS_SDA
43+
#define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
44+
#define IS31FL3731_I2C_ADDRESS_2 IS31FL3731_I2C_ADDRESS_SDA
4545

4646
#define IS31FL3731_DRIVER_COUNT 2
4747
#define LED_DRIVER_1_LED_TOTAL 25
@@ -51,7 +51,7 @@ Here is an example using 2 drivers.
5151
5252
!> Note the parentheses, this is so when `LED_MATRIX_LED_COUNT` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (LED_DRIVER_1_LED_TOTAL + LED_DRIVER_2_LED_TOTAL)` will give very different results than `rand() % LED_DRIVER_1_LED_TOTAL + LED_DRIVER_2_LED_TOTAL`.
5353
54-
For split keyboards using `LED_MATRIX_SPLIT` with an LED driver, you can either have the same driver address or different driver addresses. If using different addresses, use `DRIVER_ADDR_1` for one and `DRIVER_ADDR_2` for the other one. Then, in `g_is31fl3731_leds`, fill out the correct driver index (0 or 1). If using one address, use `DRIVER_ADDR_1` for both, and use index 0 for `g_is31fl3731_leds`.
54+
For split keyboards using `LED_MATRIX_SPLIT` with an LED driver, you can either have the same driver address or different driver addresses. If using different addresses, use `IS31FL3731_I2C_ADDRESS_1` for one and `IS31FL3731_I2C_ADDRESS_2` for the other one. Then, in `g_is31fl3731_leds`, fill out the correct driver index (0 or 1). If using one address, use `IS31FL3731_I2C_ADDRESS_1` for both, and use index 0 for `g_is31fl3731_leds`.
5555
5656
Define these arrays listing all the LEDs in your `<keyboard>.c`:
5757

docs/feature_rgb_matrix.md

+37-37
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ You can use between 1 and 4 IS31FL3731 IC's. Do not specify `DRIVER_ADDR_<N>` de
2424
| `IS31FL3731_DEGHOST` | (Optional) Set this define to enable de-ghosting by halving Vcc during blanking time | |
2525
| `IS31FL3731_DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
2626
| `RGB_MATRIX_LED_COUNT` | (Required) How many RGB lights are present across all drivers | |
27-
| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | |
28-
| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | |
29-
| `DRIVER_ADDR_3` | (Optional) Address for the third RGB driver | |
30-
| `DRIVER_ADDR_4` | (Optional) Address for the fourth RGB driver | |
27+
| `IS31FL3731_I2C_ADDRESS_1` | (Required) Address for the first RGB driver | |
28+
| `IS31FL3731_I2C_ADDRESS_2` | (Optional) Address for the second RGB driver | |
29+
| `IS31FL3731_I2C_ADDRESS_3` | (Optional) Address for the third RGB driver | |
30+
| `IS31FL3731_I2C_ADDRESS_4` | (Optional) Address for the fourth RGB driver | |
3131

3232
Here is an example using 2 drivers.
3333

@@ -41,8 +41,8 @@ Here is an example using 2 drivers.
4141
// 11 AD <-> VCC
4242
// ADDR represents A1:A0 of the 7-bit address.
4343
// The result is: 0b11101(ADDR)
44-
#define DRIVER_ADDR_1 IS31FL3731_I2C_ADDRESS_GND
45-
#define DRIVER_ADDR_2 IS31FL3731_I2C_ADDRESS_SDA
44+
#define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
45+
#define IS31FL3731_I2C_ADDRESS_2 IS31FL3731_I2C_ADDRESS_SDA
4646

4747
#define IS31FL3731_DRIVER_COUNT 2
4848
#define DRIVER_1_LED_TOTAL 25
@@ -52,7 +52,7 @@ Here is an example using 2 drivers.
5252
5353
!> Note the parentheses, this is so when `RGB_MATRIX_LED_COUNT` is used in code and expanded, the values are added together before any additional math is applied to them. As an example, `rand() % (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)` will give very different results than `rand() % DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL`.
5454
55-
For split keyboards using `RGB_MATRIX_SPLIT` with an LED driver, you can either have the same driver address or different driver addresses. If using different addresses, use `DRIVER_ADDR_1` for one and `DRIVER_ADDR_2` for the other one. Then, in `g_is31fl3731_leds`, fill out the correct driver index (0 or 1). If using one address, use `DRIVER_ADDR_1` for both, and use index 0 for `g_is31fl3731_leds`.
55+
For split keyboards using `RGB_MATRIX_SPLIT` with an LED driver, you can either have the same driver address or different driver addresses. If using different addresses, use `IS31FL3731_I2C_ADDRESS_1` for one and `IS31FL3731_I2C_ADDRESS_2` for the other one. Then, in `g_is31fl3731_leds`, fill out the correct driver index (0 or 1). If using one address, use `IS31FL3731_I2C_ADDRESS_1` for both, and use index 0 for `g_is31fl3731_leds`.
5656
5757
Define these arrays listing all the LEDs in your `<keyboard>.c`:
5858
@@ -93,14 +93,14 @@ You can use between 1 and 4 IS31FL3733 IC's. Do not specify `DRIVER_ADDR_<N>` de
9393
| `IS31FL3733_CSPULLUP` | (Optional) Set the value of the CSx lines on-chip de-ghosting resistors | PUR_0R (Disabled) |
9494
| `IS31FL3733_DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
9595
| `RGB_MATRIX_LED_COUNT` | (Required) How many RGB lights are present across all drivers | |
96-
| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | |
97-
| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | |
98-
| `DRIVER_ADDR_3` | (Optional) Address for the third RGB driver | |
99-
| `DRIVER_ADDR_4` | (Optional) Address for the fourth RGB driver | |
100-
| `DRIVER_SYNC_1` | (Optional) Sync configuration for the first RGB driver | 0 |
101-
| `DRIVER_SYNC_2` | (Optional) Sync configuration for the second RGB driver | 0 |
102-
| `DRIVER_SYNC_3` | (Optional) Sync configuration for the third RGB driver | 0 |
103-
| `DRIVER_SYNC_4` | (Optional) Sync configuration for the fourth RGB driver | 0 |
96+
| `IS31FL3733_I2C_ADDRESS_1` | (Required) Address for the first RGB driver | |
97+
| `IS31FL3733_I2C_ADDRESS_2` | (Optional) Address for the second RGB driver | |
98+
| `IS31FL3733_I2C_ADDRESS_3` | (Optional) Address for the third RGB driver | |
99+
| `IS31FL3733_I2C_ADDRESS_4` | (Optional) Address for the fourth RGB driver | |
100+
| `IS31FL3733_SYNC_1` | (Optional) Sync configuration for the first RGB driver | 0 |
101+
| `IS31FL3733_SYNC_2` | (Optional) Sync configuration for the second RGB driver | 0 |
102+
| `IS31FL3733_SYNC_3` | (Optional) Sync configuration for the third RGB driver | 0 |
103+
| `IS31FL3733_SYNC_4` | (Optional) Sync configuration for the fourth RGB driver | 0 |
104104

105105
The IS31FL3733 IC's have on-chip resistors that can be enabled to allow for de-ghosting of the RGB matrix. By default these resistors are not enabled (`IS31FL3733_SWPULLUP`/`IS31FL3733_CSPULLUP` are given the value of `IS31FL3733_PUR_0R`), the values that can be set to enable de-ghosting are as follows:
106106

@@ -127,8 +127,8 @@ Here is an example using 2 drivers.
127127
// ADDR1 represents A1:A0 of the 7-bit address.
128128
// ADDR2 represents A3:A2 of the 7-bit address.
129129
// The result is: 0b101(ADDR2)(ADDR1)
130-
#define DRIVER_ADDR_1 IS31FL3733_I2C_ADDRESS_GND_GND
131-
#define DRIVER_ADDR_2 IS31FL3733_I2C_ADDRESS_GND_VCC
130+
#define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND
131+
#define IS31FL3733_I2C_ADDRESS_2 IS31FL3733_I2C_ADDRESS_GND_VCC
132132

133133
#define IS31FL3733_DRIVER_COUNT 2
134134
#define DRIVER_1_LED_TOTAL 58
@@ -180,10 +180,10 @@ Configure the hardware via your `config.h`:
180180
| `IS31FL3736_CSPULLUP` | (Optional) Set the value of the CSx lines on-chip de-ghosting resistors | PUR_0R (Disabled) |
181181
| `IS31FL3736_DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
182182
| `RGB_MATRIX_LED_COUNT` | (Required) How many RGB lights are present across all drivers | |
183-
| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | |
184-
| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | |
185-
| `DRIVER_ADDR_3` | (Optional) Address for the third RGB driver | |
186-
| `DRIVER_ADDR_4` | (Optional) Address for the fourth RGB driver | |
183+
| `IS31FL3736_I2C_ADDRESS_1` | (Required) Address for the first RGB driver | |
184+
| `IS31FL3736_I2C_ADDRESS_2` | (Optional) Address for the second RGB driver | |
185+
| `IS31FL3736_I2C_ADDRESS_3` | (Optional) Address for the third RGB driver | |
186+
| `IS31FL3736_I2C_ADDRESS_4` | (Optional) Address for the fourth RGB driver | |
187187

188188
The IS31FL3736 IC's have on-chip resistors that can be enabled to allow for de-ghosting of the RGB matrix. By default these resistors are not enabled (`IS31FL3736_SWPULLUP`/`IS31FL3736_CSPULLUP` are given the value of `IS31FL3736_PUR_0R`), the values that can be set to enable de-ghosting are as follows:
189189

@@ -211,8 +211,8 @@ Here is an example using 2 drivers.
211211
// ADDR1 represents A1:A0 of the 7-bit address.
212212
// ADDR2 represents A3:A2 of the 7-bit address.
213213
// The result is: 0b101(ADDR2)(ADDR1)
214-
#define DRIVER_ADDR_1 IS31FL3736_I2C_ADDRESS_GND_GND
215-
#define DRIVER_ADDR_2 IS31FL3736_I2C_ADDRESS_GND_SCL
214+
#define IS31FL3736_I2C_ADDRESS_1 IS31FL3736_I2C_ADDRESS_GND_GND
215+
#define IS31FL3736_I2C_ADDRESS_2 IS31FL3736_I2C_ADDRESS_GND_SCL
216216

217217
#define IS31FL3736_DRIVER_COUNT 2
218218
#define DRIVER_1_LED_TOTAL 30
@@ -257,10 +257,10 @@ Configure the hardware via your `config.h`:
257257
| `IS31FL3737_CSPULLUP` | (Optional) Set the value of the CSx lines on-chip de-ghosting resistors | PUR_0R (Disabled) |
258258
| `IS31FL3737_DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
259259
| `RGB_MATRIX_LED_COUNT` | (Required) How many RGB lights are present across all drivers | |
260-
| `DRIVER_ADDR_1` | (Required) Address for the first RGB driver | |
261-
| `DRIVER_ADDR_2` | (Optional) Address for the second RGB driver | |
262-
| `DRIVER_ADDR_3` | (Optional) Address for the third RGB driver | |
263-
| `DRIVER_ADDR_4` | (Optional) Address for the fourth RGB driver | |
260+
| `IS31FL3737_I2C_ADDRESS_1` | (Required) Address for the first RGB driver | |
261+
| `IS31FL3737_I2C_ADDRESS_2` | (Optional) Address for the second RGB driver | |
262+
| `IS31FL3737_I2C_ADDRESS_3` | (Optional) Address for the third RGB driver | |
263+
| `IS31FL3737_I2C_ADDRESS_4` | (Optional) Address for the fourth RGB driver | |
264264

265265
The IS31FL3737 IC's have on-chip resistors that can be enabled to allow for de-ghosting of the RGB matrix. By default these resistors are not enabled (`IS31FL3737_SWPULLUP`/`IS31FL3737_CSPULLUP` are given the value of `IS31FL3737_PUR_0R`), the values that can be set to enable de-ghosting are as follows:
266266

@@ -287,8 +287,8 @@ Here is an example using 2 drivers.
287287
// 1111 ADDR <-> VCC
288288
// ADDR represents A3:A0 of the 7-bit address.
289289
// The result is: 0b101(ADDR)
290-
#define DRIVER_ADDR_1 IS31FL3737_I2C_ADDRESS_GND
291-
#define DRIVER_ADDR_2 IS31FL3737_I2C_ADDRESS_SCL
290+
#define IS31FL3737_I2C_ADDRESS_1 IS31FL3737_I2C_ADDRESS_GND
291+
#define IS31FL3737_I2C_ADDRESS_2 IS31FL3737_I2C_ADDRESS_SCL
292292

293293
#define IS31FL3737_DRIVER_COUNT 2
294294
#define DRIVER_1_LED_TOTAL 30
@@ -480,10 +480,10 @@ You can use up to 2 AW20216S IC's. Do not specify `DRIVER_<N>_xxx` defines for I
480480

481481
| Variable | Description | Default |
482482
|----------|-------------|---------|
483-
| `AW20216S_DRIVER_1_CS` | (Required) MCU pin connected to first RGB driver chip select line | B13 |
484-
| `AW20216S_DRIVER_2_CS` | (Optional) MCU pin connected to second RGB driver chip select line | |
485-
| `AW20216S_DRIVER_1_EN` | (Required) MCU pin connected to first RGB driver hardware enable line | C13 |
486-
| `AW20216S_DRIVER_2_EN` | (Optional) MCU pin connected to second RGB driver hardware enable line | |
483+
| `AW20216S_CS_PIN_1` | (Required) MCU pin connected to first RGB driver chip select line | B13 |
484+
| `AW20216S_CS_PIN_2` | (Optional) MCU pin connected to second RGB driver chip select line | |
485+
| `AW20216S_EN_PIN_1` | (Required) MCU pin connected to first RGB driver hardware enable line | C13 |
486+
| `AW20216S_EN_PIN_2` | (Optional) MCU pin connected to second RGB driver hardware enable line | |
487487
| `DRIVER_1_LED_TOTAL` | (Required) How many RGB lights are connected to first RGB driver | |
488488
| `DRIVER_2_LED_TOTAL` | (Optional) How many RGB lights are connected to second RGB driver | |
489489
| `AW20216S_DRIVER_COUNT` | (Required) How many RGB driver IC's are present | |
@@ -496,11 +496,11 @@ You can use up to 2 AW20216S IC's. Do not specify `DRIVER_<N>_xxx` defines for I
496496
Here is an example using 2 drivers.
497497
498498
```c
499-
#define AW20216S_DRIVER_1_CS B13
500-
#define AW20216S_DRIVER_2_CS B14
499+
#define AW20216S_CS_PIN_1 B13
500+
#define AW20216S_CS_PIN_2 B14
501501
// Hardware enable lines may be connected to the same pin
502-
#define AW20216S_DRIVER_1_EN C13
503-
#define AW20216S_DRIVER_2_EN C13
502+
#define AW20216S_EN_PIN_1 C13
503+
#define AW20216S_EN_PIN_2 C13
504504
505505
#define AW20216S_DRIVER_COUNT 2
506506
#define DRIVER_1_LED_TOTAL 66

drivers/led/aw20216s.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@
3838
# define AW20216S_SPI_DIVISOR AW_SPI_DIVISOR
3939
#endif
4040
#ifdef DRIVER_1_CS
41-
# define AW20216S_DRIVER_1_CS DRIVER_1_CS
41+
# define AW20216S_CS_PIN_1 DRIVER_1_CS
4242
#endif
4343
#ifdef DRIVER_2_CS
44-
# define AW20216S_DRIVER_2_CS DRIVER_2_CS
44+
# define AW20216S_CS_PIN_2 DRIVER_2_CS
4545
#endif
4646
#ifdef DRIVER_1_EN
47-
# define AW20216S_DRIVER_1_EN DRIVER_1_EN
47+
# define AW20216S_EN_PIN_1 DRIVER_1_EN
4848
#endif
4949
#ifdef DRIVER_2_EN
50-
# define AW20216S_DRIVER_2_EN DRIVER_2_EN
50+
# define AW20216S_EN_PIN_2 DRIVER_2_EN
5151
#endif
5252

5353
#define aw_led aw20216s_led_t

drivers/led/issi/is31fl3731-simple.h

+12
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323
#include "progmem.h"
2424

2525
// ======== DEPRECATED DEFINES - DO NOT USE ========
26+
#ifdef LED_DRIVER_ADDR_1
27+
# define IS31FL3731_I2C_ADDRESS_1 LED_DRIVER_ADDR_1
28+
#endif
29+
#ifdef LED_DRIVER_ADDR_2
30+
# define IS31FL3731_I2C_ADDRESS_2 LED_DRIVER_ADDR_2
31+
#endif
32+
#ifdef LED_DRIVER_ADDR_3
33+
# define IS31FL3731_I2C_ADDRESS_3 LED_DRIVER_ADDR_3
34+
#endif
35+
#ifdef LED_DRIVER_ADDR_4
36+
# define IS31FL3731_I2C_ADDRESS_4 LED_DRIVER_ADDR_4
37+
#endif
2638
#ifdef LED_DRIVER_COUNT
2739
# define IS31FL3731_DRIVER_COUNT LED_DRIVER_COUNT
2840
#endif

drivers/led/issi/is31fl3731.h

+12
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222
#include "progmem.h"
2323

2424
// ======== DEPRECATED DEFINES - DO NOT USE ========
25+
#ifdef DRIVER_ADDR_1
26+
# define IS31FL3731_I2C_ADDRESS_1 DRIVER_ADDR_1
27+
#endif
28+
#ifdef DRIVER_ADDR_2
29+
# define IS31FL3731_I2C_ADDRESS_2 DRIVER_ADDR_2
30+
#endif
31+
#ifdef DRIVER_ADDR_3
32+
# define IS31FL3731_I2C_ADDRESS_3 DRIVER_ADDR_3
33+
#endif
34+
#ifdef DRIVER_ADDR_4
35+
# define IS31FL3731_I2C_ADDRESS_4 DRIVER_ADDR_4
36+
#endif
2537
#ifdef DRIVER_COUNT
2638
# define IS31FL3731_DRIVER_COUNT DRIVER_COUNT
2739
#endif

drivers/led/issi/is31fl3733.h

+24
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,30 @@
2424
#include "progmem.h"
2525

2626
// ======== DEPRECATED DEFINES - DO NOT USE ========
27+
#ifdef DRIVER_ADDR_1
28+
# define IS31FL3733_I2C_ADDRESS_1 DRIVER_ADDR_1
29+
#endif
30+
#ifdef DRIVER_ADDR_2
31+
# define IS31FL3733_I2C_ADDRESS_2 DRIVER_ADDR_2
32+
#endif
33+
#ifdef DRIVER_ADDR_3
34+
# define IS31FL3733_I2C_ADDRESS_3 DRIVER_ADDR_3
35+
#endif
36+
#ifdef DRIVER_ADDR_4
37+
# define IS31FL3733_I2C_ADDRESS_4 DRIVER_ADDR_4
38+
#endif
39+
#ifdef DRIVER_SYNC_1
40+
# define IS31FL3733_SYNC_1 DRIVER_SYNC_1
41+
#endif
42+
#ifdef DRIVER_ADDR_2
43+
# define IS31FL3733_SYNC_2 DRIVER_SYNC_2
44+
#endif
45+
#ifdef DRIVER_ADDR_3
46+
# define IS31FL3733_SYNC_3 DRIVER_SYNC_3
47+
#endif
48+
#ifdef DRIVER_ADDR_4
49+
# define IS31FL3733_SYNC_4 DRIVER_SYNC_4
50+
#endif
2751
#ifdef DRIVER_COUNT
2852
# define IS31FL3733_DRIVER_COUNT DRIVER_COUNT
2953
#endif

drivers/led/issi/is31fl3736.h

+12
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222
#include "progmem.h"
2323

2424
// ======== DEPRECATED DEFINES - DO NOT USE ========
25+
#ifdef DRIVER_ADDR_1
26+
# define IS31FL3736_I2C_ADDRESS_1 DRIVER_ADDR_1
27+
#endif
28+
#ifdef DRIVER_ADDR_2
29+
# define IS31FL3736_I2C_ADDRESS_2 DRIVER_ADDR_2
30+
#endif
31+
#ifdef DRIVER_ADDR_3
32+
# define IS31FL3736_I2C_ADDRESS_3 DRIVER_ADDR_3
33+
#endif
34+
#ifdef DRIVER_ADDR_4
35+
# define IS31FL3736_I2C_ADDRESS_4 DRIVER_ADDR_4
36+
#endif
2537
#ifdef DRIVER_COUNT
2638
# define IS31FL3736_DRIVER_COUNT DRIVER_COUNT
2739
#endif

drivers/led/issi/is31fl3737.h

+12
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@
2424
#include "progmem.h"
2525

2626
// ======== DEPRECATED DEFINES - DO NOT USE ========
27+
#ifdef DRIVER_ADDR_1
28+
# define IS31FL3737_I2C_ADDRESS_1 DRIVER_ADDR_1
29+
#endif
30+
#ifdef DRIVER_ADDR_2
31+
# define IS31FL3737_I2C_ADDRESS_2 DRIVER_ADDR_2
32+
#endif
33+
#ifdef DRIVER_ADDR_3
34+
# define IS31FL3737_I2C_ADDRESS_3 DRIVER_ADDR_3
35+
#endif
36+
#ifdef DRIVER_ADDR_4
37+
# define IS31FL3737_I2C_ADDRESS_4 DRIVER_ADDR_4
38+
#endif
2739
#ifdef DRIVER_COUNT
2840
# define IS31FL3737_DRIVER_COUNT DRIVER_COUNT
2941
#endif

drivers/led/issi/is31fl3741.h

+12
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@
2424
#include "progmem.h"
2525

2626
// ======== DEPRECATED DEFINES - DO NOT USE ========
27+
#ifdef DRIVER_ADDR_1
28+
# define IS31FL3741_I2C_ADDRESS_1 DRIVER_ADDR_1
29+
#endif
30+
#ifdef DRIVER_ADDR_2
31+
# define IS31FL3741_I2C_ADDRESS_2 DRIVER_ADDR_2
32+
#endif
33+
#ifdef DRIVER_ADDR_3
34+
# define IS31FL3741_I2C_ADDRESS_3 DRIVER_ADDR_3
35+
#endif
36+
#ifdef DRIVER_ADDR_4
37+
# define IS31FL3741_I2C_ADDRESS_4 DRIVER_ADDR_4
38+
#endif
2739
#ifdef DRIVER_COUNT
2840
# define IS31FL3741_DRIVER_COUNT DRIVER_COUNT
2941
#endif

keyboards/4pplet/perk60_iso/rev_a/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2121
/* Locking resynchronize hack */
2222
#define LOCKING_RESYNC_ENABLE
2323

24-
#define DRIVER_ADDR_1 IS31FL3733_I2C_ADDRESS_GND_GND
24+
#define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND
2525
#define IS31FL3733_DRIVER_COUNT 1
2626
#define RGB_MATRIX_LED_COUNT 62
2727
#define IS31FL3733_PWM_FREQUENCY IS31FL3733_PWM_FREQUENCY_26K7_HZ

keyboards/abko/ak84bt/config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#pragma once
1818

1919

20-
#define DRIVER_ADDR_1 IS31FL3733_I2C_ADDRESS_GND_GND
21-
#define DRIVER_ADDR_2 IS31FL3733_I2C_ADDRESS_GND_VCC
20+
#define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND
21+
#define IS31FL3733_I2C_ADDRESS_2 IS31FL3733_I2C_ADDRESS_GND_VCC
2222

2323
#define IS31FL3733_DRIVER_COUNT 2
2424
#define DRIVER_1_LED_TOTAL 45

keyboards/acheron/apollo/87h/gamma/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
2626

2727
// RGB Matrix defines
28-
#define DRIVER_ADDR_1 IS31FL3741_I2C_ADDRESS_GND
28+
#define IS31FL3741_I2C_ADDRESS_1 IS31FL3741_I2C_ADDRESS_GND
2929

3030
#define IS31FL3741_DRIVER_COUNT 1
3131
#define DRIVER_1_LED_TOTAL 87

keyboards/aeboards/satellite/rev1/config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#pragma once
1818

1919
//RGB Matrix defines
20-
#define DRIVER_ADDR_1 IS31FL3731_I2C_ADDRESS_GND
21-
#define DRIVER_ADDR_2 IS31FL3731_I2C_ADDRESS_SDA
20+
#define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
21+
#define IS31FL3731_I2C_ADDRESS_2 IS31FL3731_I2C_ADDRESS_SDA
2222

2323
#define IS31FL3731_DRIVER_COUNT 2
2424
#define DRIVER_1_LED_TOTAL 36

0 commit comments

Comments
 (0)