avr/gui2: added screen saver app

screen saver can be turned off by:
- touching and releasing the display
- specific messages (e.g. motion detection msg from other nodes)
This commit is contained in:
Martin Preuss
2026-02-07 16:09:31 +01:00
parent 39d1060334
commit 28deb9c591
10 changed files with 738 additions and 25 deletions

View File

@@ -47,7 +47,7 @@ ILI9341_Init:
rcall ILI9341_LeaveSleepMode
ldi r16, 0x20
rcall ILI9341_SetBacklight
rcall Display_SetBacklight
sec
ret
@@ -133,17 +133,17 @@ ILI9341_Reset:
; ---------------------------------------------------------------------------
; @routine ILI9341_SetBacklight @global
; @routine Display_SetBacklight @global
;
; @param r16 0=off, on otherwise
; @clobbers r16, r17
ILI9341_SetBacklight:
Display_SetBacklight:
tst r16
brne ILI9341_SetBacklight_on
brne Display_SetBacklight_on
cbi ILI9341_LED_OUTPUT, ILI9341_LED_PIN
ret
ILI9341_SetBacklight_on:
Display_SetBacklight_on:
sbi ILI9341_LED_OUTPUT, ILI9341_LED_PIN
ret ; DEBUG