From 532077d239a43ed20a39338b1cf22ac441e688b9 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Mon, 5 Feb 2024 13:30:11 -0500 Subject: [PATCH] ui: add setting to change LED control between firmware and software --- lib/logitech_receiver/settings_templates.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/logitech_receiver/settings_templates.py b/lib/logitech_receiver/settings_templates.py index 85d07105..329fedba 100644 --- a/lib/logitech_receiver/settings_templates.py +++ b/lib/logitech_receiver/settings_templates.py @@ -1418,6 +1418,17 @@ class ADCPower(_Setting): validator_options = {'byte_count': 1} +class LEDControl(_Setting): + name = 'led_control' + label = _('LED Control') + description = _('Switch control of LEDs between device and Solaar') + feature = _F.COLOR_LED_EFFECTS + rw_options = {'read_fnid': 0x70, 'write_fnid': 0x80} + choices_universe = _NamedInts(Device=0, Solaar=1) + validator_class = _ChoicesV + validator_options = {'choices': choices_universe} + + SETTINGS = [ RegisterHandDetection, # simple RegisterSmoothScroll, # simple @@ -1447,6 +1458,7 @@ SETTINGS = [ Backlight2DurationHandsIn, Backlight2DurationPowered, Backlight3, + LEDControl, FnSwap, # simple NewFnSwap, # simple K375sFnSwap, # working