ratdeck: lvgl redesign, async transport, hardened storage

This commit is contained in:
DeFiDude committed 2026-05-03 20:48:57 -06:00
1 parent 19c589583d
commit 4402c010e9
69 files changed
+4904 -1417

No files matched your search

+5 -2
View File
@@ -80,8 +80,11 @@ void Power::setBrightness(uint8_t percent) {
}
void Power::setKbBrightness(uint8_t percent, bool apply) {
keyboard.setBacklightBrightness(constrain(percent, 1, 100));
if (apply) { // Show the new brightness
percent = constrain(percent, 0, 100);
keyboard.setBacklightBrightness(percent);
if (percent == 0) {
keyboard.backlightOff();
} else if (apply) { // Show the new brightness
keyboard.backlightOn();
}
}