Add screensaver to nspanel_blank.tft

And build a new tft with latest firmware and url for instructions.
This commit is contained in:
Edward Firmo
2023-09-19 11:29:55 +02:00
parent b215f1779d
commit 0af0d2fbaf
5 changed files with 82 additions and 1 deletions

View File

@@ -1,6 +1,5 @@
Program.s
//The following code is only run once when power on, and is generally used for global variable definition and power on initialization data
int sys0=0,sys1=0,sys2=0 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement
bauds=115200//Configure baudrate
dim=100//Configure backlight
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode

View File

@@ -0,0 +1,57 @@
Page blank
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
dim=100
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"blank\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"version\": \"2023.09.19\"}",0
printh 00
printh FF FF FF
Touch Press Event
tm0.en=1
Touch Release Event
tm0.en=1
QR Code qr0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID: disabled
Text : https://github.com/Blackymas/NSPanel_HA_Blueprint/blob/main/docs/en/nspanel_blank.md#what-to-do-after-installing-nspanel_blanktft
Max. Text Size : 150
Events
Touch Press Event
tm0.en=1
Touch Release Event
tm0.en=1
Timer tm0
Attributes
ID : 2
Scope : local
Period (ms): 65500
Enabled : yes
Events
Timer Event
tm0.en=0
dim=0
page screensaver

View File

@@ -0,0 +1,25 @@
Page screensaver
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"blank-screensaver\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"version\": \"2023.09.19\"}",0
printh 00
printh FF FF FF
dim=0
Touch Press Event
page blank