@@ -35,12 +35,14 @@ Here is an example using 2 drivers.
35
35
// This is a 7-bit address, that gets left-shifted and bit 0
36
36
// set to 0 for write, 1 for read (as per I2C protocol)
37
37
// The address will vary depending on your wiring:
38
- // 0b1110100 AD <-> GND
39
- // 0b1110111 AD <-> VCC
40
- // 0b1110101 AD <-> SCL
41
- // 0b1110110 AD <-> SDA
42
- #define DRIVER_ADDR_1 0b1110100
43
- #define DRIVER_ADDR_2 0b1110110
38
+ // 00 AD <-> GND
39
+ // 01 AD <-> SCL
40
+ // 10 AD <-> SDA
41
+ // 11 AD <-> VCC
42
+ // ADDR represents A1:A0 of the 7-bit address.
43
+ // The result is: 0b11101(ADDR)
44
+ #define DRIVER_ADDR_1 IS31FL3731_I2C_ADDRESS_GND
45
+ #define DRIVER_ADDR_2 IS31FL3731_I2C_ADDRESS_SDA
44
46
45
47
#define IS31FL3731_DRIVER_COUNT 2
46
48
#define DRIVER_1_LED_TOTAL 25
@@ -118,15 +120,15 @@ Here is an example using 2 drivers.
118
120
// This is a 7-bit address, that gets left-shifted and bit 0
119
121
// set to 0 for write, 1 for read (as per I2C protocol)
120
122
// The address will vary depending on your wiring:
121
- // 00 <-> GND
122
- // 01 <-> SCL
123
- // 10 <-> SDA
124
- // 11 <-> VCC
123
+ // 00 ADDRn <-> GND
124
+ // 01 ADDRn <-> SCL
125
+ // 10 ADDRn <-> SDA
126
+ // 11 ADDRn <-> VCC
125
127
// ADDR1 represents A1:A0 of the 7-bit address.
126
128
// ADDR2 represents A3:A2 of the 7-bit address.
127
129
// The result is: 0b101(ADDR2)(ADDR1)
128
- #define DRIVER_ADDR_1 0b1010000
129
- #define DRIVER_ADDR_2 0b1010011
130
+ #define DRIVER_ADDR_1 IS31FL3733_I2C_ADDRESS_GND_GND
131
+ #define DRIVER_ADDR_2 IS31FL3733_I2C_ADDRESS_GND_VCC
130
132
131
133
#define IS31FL3733_DRIVER_COUNT 2
132
134
#define DRIVER_1_LED_TOTAL 58
@@ -202,14 +204,15 @@ Here is an example using 2 drivers.
202
204
// This is a 7-bit address, that gets left-shifted and bit 0
203
205
// set to 0 for write, 1 for read (as per I2C protocol)
204
206
// The address will vary depending on your wiring:
205
- // 0000 <-> GND
206
- // 0101 <-> SCL
207
- // 1010 <-> SDA
208
- // 1111 <-> VCC
209
- // ADDR represents A3:A0 of the 7-bit address.
210
- // The result is: 0b101(ADDR)
211
- #define DRIVER_ADDR_1 0b1010000
212
- #define DRIVER_ADDR_2 0b1010001
207
+ // 00 ADDRn <-> GND
208
+ // 01 ADDRn <-> SCL
209
+ // 10 ADDRn <-> SDA
210
+ // 11 ADDRn <-> VCC
211
+ // ADDR1 represents A1:A0 of the 7-bit address.
212
+ // ADDR2 represents A3:A2 of the 7-bit address.
213
+ // 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
213
216
214
217
#define IS31FL3736_DRIVER_COUNT 2
215
218
#define DRIVER_1_LED_TOTAL 30
@@ -278,14 +281,14 @@ Here is an example using 2 drivers.
278
281
// This is a 7-bit address, that gets left-shifted and bit 0
279
282
// set to 0 for write, 1 for read (as per I2C protocol)
280
283
// The address will vary depending on your wiring:
281
- // 0000 <-> GND
282
- // 0101 <-> SCL
283
- // 1010 <-> SDA
284
- // 1111 <-> VCC
284
+ // 0000 ADDR <-> GND
285
+ // 0101 ADDR <-> SCL
286
+ // 1010 ADDR <-> SDA
287
+ // 1111 ADDR <-> VCC
285
288
// ADDR represents A3:A0 of the 7-bit address.
286
289
// The result is: 0b101(ADDR)
287
- #define DRIVER_ADDR_1 0b1010000
288
- #define DRIVER_ADDR_2 0b1010001
290
+ #define DRIVER_ADDR_1 IS31FL3737_I2C_ADDRESS_GND
291
+ #define DRIVER_ADDR_2 IS31FL3737_I2C_ADDRESS_SCL
289
292
290
293
#define IS31FL3737_DRIVER_COUNT 2
291
294
#define DRIVER_1_LED_TOTAL 30
@@ -407,7 +410,7 @@ Then Define the array listing all the LEDs you want to override in your `<keyboa
407
410
408
411
```c
409
412
const is31_led PROGMEM g_is31_scaling[ISSI_MANUAL_SCALING] = {
410
- * LED Index
413
+ / * LED Index
411
414
* | R scaling
412
415
* | | G scaling
413
416
* | | | B scaling
@@ -654,12 +657,12 @@ enum rgb_matrix_effects {
654
657
RGB_MATRIX_DIGITAL_RAIN, // That famous computer simulation
655
658
RGB_MATRIX_SOLID_REACTIVE_SIMPLE, // Pulses keys hit to hue & value then fades value out
656
659
RGB_MATRIX_SOLID_REACTIVE, // Static single hue, pulses keys hit to shifted hue then fades to current hue
657
- RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
658
- RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
659
- RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
660
- RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
661
- RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
662
- RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
660
+ RGB_MATRIX_SOLID_REACTIVE_WIDE, // Hue & value pulse near a single key hit then fades value out
661
+ RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE, // Hue & value pulse near multiple key hits then fades value out
662
+ RGB_MATRIX_SOLID_REACTIVE_CROSS, // Hue & value pulse the same column and row of a single key hit then fades value out
663
+ RGB_MATRIX_SOLID_REACTIVE_MULTICROSS, // Hue & value pulse the same column and row of multiple key hits then fades value out
664
+ RGB_MATRIX_SOLID_REACTIVE_NEXUS, // Hue & value pulse away on the same column and row of a single key hit then fades value out
665
+ RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS, // Hue & value pulse away on the same column and row of multiple key hits then fades value out
663
666
RGB_MATRIX_SPLASH, // Full gradient & value pulse away from a single key hit then fades value out
664
667
RGB_MATRIX_MULTISPLASH, // Full gradient & value pulse away from multiple key hits then fades value out
665
668
RGB_MATRIX_SOLID_SPLASH, // Hue & value pulse away from a single key hit then fades value out
0 commit comments