|
@@ -53,7 +53,6 @@ backlight_config g_config = {
|
|
|
};
|
|
|
|
|
|
bool g_suspend_state = false;
|
|
|
-uint8_t g_indicator_state = 0;
|
|
|
|
|
|
|
|
|
uint32_t g_tick = 0;
|
|
@@ -118,11 +117,6 @@ void backlight_set_suspend_state(bool state)
|
|
|
g_suspend_state = state;
|
|
|
}
|
|
|
|
|
|
-void backlight_set_indicator_state(uint8_t state)
|
|
|
-{
|
|
|
- g_indicator_state = state;
|
|
|
-}
|
|
|
-
|
|
|
void backlight_set_brightness_all( uint8_t value )
|
|
|
{
|
|
|
IS31FL3736_mono_set_brightness_all( value );
|
|
@@ -168,7 +162,9 @@ void backlight_effect_indicators(void)
|
|
|
#if defined(MONO_BACKLIGHT_WT75_A)
|
|
|
HSV hsv = { .h = g_config.color_1.h, .s = g_config.color_1.s, .v = g_config.brightness };
|
|
|
RGB rgb = hsv_to_rgb( hsv );
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
IS31FL3736_mono_set_brightness(55, rgb.r);
|
|
|
IS31FL3736_mono_set_brightness(63, rgb.g);
|
|
|
IS31FL3736_mono_set_brightness(71, rgb.b);
|
|
@@ -183,20 +179,20 @@ defined(MONO_BACKLIGHT_WT75_A) || \
|
|
|
defined(MONO_BACKLIGHT_WT75_B) || \
|
|
|
defined(MONO_BACKLIGHT_WT75_C) || \
|
|
|
defined(MONO_BACKLIGHT_WT80_A)
|
|
|
- if ( g_indicator_state & (1<<USB_LED_CAPS_LOCK) ) {
|
|
|
-
|
|
|
- IS31FL3736_mono_set_brightness(32, 255);
|
|
|
+ if ( host_keyboard_led_state().caps_lock ) {
|
|
|
+
|
|
|
+ IS31FL3736_mono_set_brightness(16, 255);
|
|
|
}
|
|
|
#endif
|
|
|
#if defined(MONO_BACKLIGHT_WT80_A)
|
|
|
- if ( g_indicator_state & (1<<USB_LED_SCROLL_LOCK) ) {
|
|
|
-
|
|
|
+ if ( host_keyboard_led_state().scroll_lock ) {
|
|
|
+
|
|
|
IS31FL3736_mono_set_brightness(54, 255);
|
|
|
}
|
|
|
#endif
|
|
|
#if defined(MONO_BACKLIGHT_WT75_C)
|
|
|
- if ( g_indicator_state & (1<<USB_LED_SCROLL_LOCK) ) {
|
|
|
-
|
|
|
+ if ( host_keyboard_led_state().scroll_lock ) {
|
|
|
+
|
|
|
IS31FL3736_mono_set_brightness(55, 255);
|
|
|
}
|
|
|
#endif
|