LED drivers: place I2C addresses into an array (#22975)
This commit is contained in:
parent
137938b67a
commit
a5ea619139
54 changed files with 1292 additions and 1349 deletions
|
@ -146,8 +146,8 @@ led_config_t g_led_config = { {
|
|||
static void init(void) {
|
||||
i2c_init();
|
||||
|
||||
is31fl3731_init(IS31FL3731_I2C_ADDRESS_1);
|
||||
is31fl3731_init(IS31FL3731_I2C_ADDRESS_2);
|
||||
is31fl3731_init(0);
|
||||
is31fl3731_init(1);
|
||||
|
||||
for (int index = 0; index < IS31FL3731_LED_COUNT; index++) {
|
||||
bool enabled = !( ( index == 18+5) || //B5
|
||||
|
@ -157,8 +157,8 @@ static void init(void) {
|
|||
is31fl3731_set_led_control_register(index, enabled, enabled, enabled);
|
||||
}
|
||||
|
||||
is31fl3731_update_led_control_registers(IS31FL3731_I2C_ADDRESS_1, 0);
|
||||
is31fl3731_update_led_control_registers(IS31FL3731_I2C_ADDRESS_2, 1);
|
||||
is31fl3731_update_led_control_registers(0);
|
||||
is31fl3731_update_led_control_registers(1);
|
||||
}
|
||||
|
||||
const rgb_matrix_driver_t rgb_matrix_driver = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue