RGB Matrix: driver naming cleanups (#21594)
This commit is contained in:
parent
dfb6d38f08
commit
37bc949945
513 changed files with 1166 additions and 1170 deletions
|
@ -64,12 +64,12 @@ void backlight_init_drivers(void)
|
|||
{
|
||||
// Initialize I2C
|
||||
i2c_init();
|
||||
IS31FL3736_init( ISSI_ADDR_DEFAULT );
|
||||
is31fl3736_init( ISSI_ADDR_DEFAULT );
|
||||
|
||||
for ( uint8_t index = 0; index < 96; index++ ) {
|
||||
IS31FL3736_mono_set_led_control_register( index, true );
|
||||
is31fl3736_mono_set_led_control_register( index, true );
|
||||
}
|
||||
IS31FL3736_update_led_control_registers( ISSI_ADDR_DEFAULT, 0x00 );
|
||||
is31fl3736_update_led_control_registers( ISSI_ADDR_DEFAULT, 0x00 );
|
||||
}
|
||||
|
||||
void backlight_set_key_hit(uint8_t row, uint8_t column)
|
||||
|
@ -119,17 +119,17 @@ void backlight_set_suspend_state(bool state)
|
|||
|
||||
void backlight_set_brightness_all( uint8_t value )
|
||||
{
|
||||
IS31FL3736_mono_set_brightness_all( value );
|
||||
is31fl3736_mono_set_brightness_all( value );
|
||||
}
|
||||
|
||||
void backlight_effect_all_off(void)
|
||||
{
|
||||
IS31FL3736_mono_set_brightness_all( 0 );
|
||||
is31fl3736_mono_set_brightness_all( 0 );
|
||||
}
|
||||
|
||||
void backlight_effect_all_on(void)
|
||||
{
|
||||
IS31FL3736_mono_set_brightness_all( g_config.brightness );
|
||||
is31fl3736_mono_set_brightness_all( g_config.brightness );
|
||||
}
|
||||
|
||||
void backlight_effect_raindrops(bool initialize)
|
||||
|
@ -143,7 +143,7 @@ void backlight_effect_raindrops(bool initialize)
|
|||
// If not, all but one will stay the same as before.
|
||||
if ( initialize || i == led_to_change )
|
||||
{
|
||||
IS31FL3736_mono_set_brightness(i, rand() & 0xFF );
|
||||
is31fl3736_mono_set_brightness(i, rand() & 0xFF );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -165,9 +165,9 @@ void backlight_effect_indicators(void)
|
|||
// SW7,CS8 = (6*8+7) = 55
|
||||
// SW8,CS8 = (7*8+7) = 63
|
||||
// SW9,CS8 = (8*8+7) = 71
|
||||
IS31FL3736_mono_set_brightness(55, rgb.r);
|
||||
IS31FL3736_mono_set_brightness(63, rgb.g);
|
||||
IS31FL3736_mono_set_brightness(71, rgb.b);
|
||||
is31fl3736_mono_set_brightness(55, rgb.r);
|
||||
is31fl3736_mono_set_brightness(63, rgb.g);
|
||||
is31fl3736_mono_set_brightness(71, rgb.b);
|
||||
#endif // MONO_BACKLIGHT_WT75_A
|
||||
|
||||
// This pairs with "All Off" already setting zero brightness,
|
||||
|
@ -181,19 +181,19 @@ defined(MONO_BACKLIGHT_WT75_C) || \
|
|||
defined(MONO_BACKLIGHT_WT80_A)
|
||||
if ( host_keyboard_led_state().caps_lock ) {
|
||||
// SW3,CS1 = (2*8+0) = 16
|
||||
IS31FL3736_mono_set_brightness(16, 255);
|
||||
is31fl3736_mono_set_brightness(16, 255);
|
||||
}
|
||||
#endif
|
||||
#if defined(MONO_BACKLIGHT_WT80_A)
|
||||
if ( host_keyboard_led_state().scroll_lock ) {
|
||||
// SW7,CS7 = (6*8+6) = 54
|
||||
IS31FL3736_mono_set_brightness(54, 255);
|
||||
is31fl3736_mono_set_brightness(54, 255);
|
||||
}
|
||||
#endif
|
||||
#if defined(MONO_BACKLIGHT_WT75_C)
|
||||
if ( host_keyboard_led_state().scroll_lock ) {
|
||||
// SW7,CS8 = (6*8+7) = 55
|
||||
IS31FL3736_mono_set_brightness(55, 255);
|
||||
is31fl3736_mono_set_brightness(55, 255);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -361,7 +361,7 @@ void backlight_config_save(void)
|
|||
|
||||
void backlight_update_pwm_buffers(void)
|
||||
{
|
||||
IS31FL3736_update_pwm_buffers(ISSI_ADDR_DEFAULT,0x00);
|
||||
is31fl3736_update_pwm_buffers(ISSI_ADDR_DEFAULT,0x00);
|
||||
}
|
||||
|
||||
bool process_record_backlight(uint16_t keycode, keyrecord_t *record)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue