diff options
author | Ryan <fauxpark@gmail.com> | 2024-02-09 22:37:18 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-09 22:37:18 +1100 |
commit | a5ea619139cb08f49cbfa440984ee2604f7104ba (patch) | |
tree | 3c74866000ad48901829c4bd60ef4b704a130f26 /keyboards/aeboards | |
parent | 137938b67afbf35fd34f2e5cbe3c5c6367a1d0cc (diff) |
LED drivers: place I2C addresses into an array (#22975)
Diffstat (limited to 'keyboards/aeboards')
-rw-r--r-- | keyboards/aeboards/satellite/rev1/rev1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/aeboards/satellite/rev1/rev1.c b/keyboards/aeboards/satellite/rev1/rev1.c index 6727894e06..28ac5ef302 100644 --- a/keyboards/aeboards/satellite/rev1/rev1.c +++ b/keyboards/aeboards/satellite/rev1/rev1.c @@ -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 = { |