feat(night mode)

This commit is contained in:
2025-07-24 23:28:08 +03:00
parent 4eaaa35013
commit f8f295f476
3 changed files with 497 additions and 0 deletions

View File

@ -18,6 +18,13 @@ async function showSystemStats() {
await lcd.send(LCD.ClearDisplay())
const hours = new Date().getHours()
if (hours >= 23 || hours <= 7) {
lcd.backlight = false
} else {
lcd.backlight = true
}
await lcd.jump(0, 0);
await lcd.sendString(`${cpuLoad}%`);