feat: max_brightness ceiling set from the controller's device config

Neither the global nor a preset's brightness goes above max_brightness; a
change redraws a static pattern under the new ceiling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Sonnet 5.5 committed 2026-11-10 01:48:42 +13:00
1 parent 08d7277204
commit 97df6e3cbe
4 files changed
+17 -1

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ def initialize_runtime():
presets = Presets(settings["led_pin"], settings["num_leds"])
presets.load(settings)
presets.b = settings.get("brightness", 255)
presets.max_b = settings.get("max_brightness", 255)
presets.debug = bool(settings.get("debug", False))
gc.collect()