From 2791ceb6aa000bce07638ad117a73eba4df0e3f6 Mon Sep 17 00:00:00 2001 From: Wilba Date: Sat, 24 Sep 2022 09:39:55 +1000 Subject: Add caps lock and scroll lock indicators (#17725) --- keyboards/wilba_tech/wt_mono_backlight.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'keyboards/wilba_tech/wt_mono_backlight.c') diff --git a/keyboards/wilba_tech/wt_mono_backlight.c b/keyboards/wilba_tech/wt_mono_backlight.c index 5e2fde810c..71bf8e0284 100644 --- a/keyboards/wilba_tech/wt_mono_backlight.c +++ b/keyboards/wilba_tech/wt_mono_backlight.c @@ -173,6 +173,33 @@ void backlight_effect_indicators(void) 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, +// and "All On" already setting non-zero brightness. +#if defined(MONO_BACKLIGHT_WT60_A) || \ +defined(MONO_BACKLIGHT_WT65_A) || \ +defined(MONO_BACKLIGHT_WT65_B) || \ +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< (4*8+0) + IS31FL3736_mono_set_brightness(32, 255); + } +#endif +#if defined(MONO_BACKLIGHT_WT80_A) + if ( g_indicator_state & (1< (6*8+6) + IS31FL3736_mono_set_brightness(54, 255); + } +#endif +#if defined(MONO_BACKLIGHT_WT75_C) + if ( g_indicator_state & (1< (6*8+7) + IS31FL3736_mono_set_brightness(55, 255); + } +#endif } ISR(TIMER3_COMPA_vect) -- cgit v1.2.3