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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user