summaryrefslogtreecommitdiff
path: root/keyboards/wilba_tech/wt_mono_backlight.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-08-23 10:00:03 +1000
committerGitHub <noreply@github.com>2023-08-23 01:00:03 +0100
commit37bc9499453f95e4e835faa751dbfffff9bfd644 (patch)
treedf976fa0c137564ace2a48caca69ea58e2ba6468 /keyboards/wilba_tech/wt_mono_backlight.c
parentdfb6d38f08b3912baffbca23e351dd0ad836238c (diff)
RGB Matrix: driver naming cleanups (#21594)
Diffstat (limited to 'keyboards/wilba_tech/wt_mono_backlight.c')
-rw-r--r--keyboards/wilba_tech/wt_mono_backlight.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/keyboards/wilba_tech/wt_mono_backlight.c b/keyboards/wilba_tech/wt_mono_backlight.c
index c79fc02cd9..28ee5fae81 100644
--- a/keyboards/wilba_tech/wt_mono_backlight.c
+++ b/keyboards/wilba_tech/wt_mono_backlight.c
@@ -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)