Relocate LED driver init code (#22365)
This commit is contained in:
parent
eac8e67888
commit
b52aca0af8
100 changed files with 795 additions and 798 deletions
|
@ -50,7 +50,7 @@ backlight_config g_config = {
|
|||
.color_1 = MONO_BACKLIGHT_COLOR_1,
|
||||
};
|
||||
|
||||
const is31fl3736_led_t PROGMEM g_is31fl3736_leds[LED_MATRIX_LED_COUNT] = {
|
||||
const is31fl3736_led_t PROGMEM g_is31fl3736_leds[IS31FL3736_LED_COUNT] = {
|
||||
{0, A_1},
|
||||
{0, A_2},
|
||||
{0, A_3},
|
||||
|
@ -170,14 +170,7 @@ uint32_t g_any_key_hit = 0;
|
|||
|
||||
void backlight_init_drivers(void)
|
||||
{
|
||||
// Initialize I2C
|
||||
i2c_init();
|
||||
is31fl3736_init( IS31FL3736_I2C_ADDRESS_1 );
|
||||
|
||||
for ( uint8_t index = 0; index < 96; index++ ) {
|
||||
is31fl3736_set_led_control_register( index, true );
|
||||
}
|
||||
is31fl3736_update_led_control_registers( IS31FL3736_I2C_ADDRESS_1, 0 );
|
||||
is31fl3736_init_drivers();
|
||||
}
|
||||
|
||||
void backlight_set_key_hit(uint8_t row, uint8_t column)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue