267 lines
7.1 KiB
Plaintext
267 lines
7.1 KiB
Plaintext
Page boot
|
|
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 "currentpage",0
|
|
printh 00
|
|
prints "boot",0
|
|
printh 00
|
|
printh FF FF FF
|
|
dim=0
|
|
vis bt_reboot,0
|
|
covx baud,baud_rate.txt,0,0
|
|
covx display_mode,aux2.txt,0,0
|
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
|
printh 92
|
|
prints "localevent",0
|
|
printh 00
|
|
prints nspanelevent.txt,0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Touch Press Event
|
|
printh 91
|
|
prints "touchevent",0
|
|
printh 00
|
|
prints rand,0
|
|
printh FF FF FF
|
|
|
|
Touch Release Event
|
|
printh 91
|
|
prints "touchevent",0
|
|
printh 00
|
|
prints rand,0
|
|
printh FF FF FF
|
|
|
|
Page Exit Event
|
|
dim=0
|
|
|
|
Variable (int32) counter
|
|
Attributes
|
|
ID : 12
|
|
Scope: local
|
|
Value: 0
|
|
|
|
Variable (string) aux1
|
|
Attributes
|
|
ID : 13
|
|
Scope : local
|
|
Text :
|
|
Max. Text Size: 10
|
|
|
|
Variable (string) nspanelevent
|
|
Attributes
|
|
ID : 14
|
|
Scope : local
|
|
Text :
|
|
Max. Text Size: 150
|
|
|
|
Variable (string) aux2
|
|
Attributes
|
|
ID : 15
|
|
Scope : local
|
|
Text :
|
|
Max. Text Size: 10
|
|
|
|
Text ip_addr
|
|
Attributes
|
|
ID : 1
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : Initializing...
|
|
Max. Text Size : 15
|
|
|
|
Text t0
|
|
Attributes
|
|
ID : 2
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : Please wait...
|
|
Max. Text Size : 15
|
|
|
|
Text t1
|
|
Attributes
|
|
ID : 3
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : The process can take several seconds!
|
|
Max. Text Size : 50
|
|
|
|
Text tft_label
|
|
Attributes
|
|
ID : 5
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : TFT:
|
|
Max. Text Size : 4
|
|
|
|
Text esph_label
|
|
Attributes
|
|
ID : 6
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : ESPHome:
|
|
Max. Text Size : 8
|
|
|
|
Text bluep_label
|
|
Attributes
|
|
ID : 7
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : Blueprint:
|
|
Max. Text Size : 10
|
|
|
|
Text tft_version
|
|
Attributes
|
|
ID : 8
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : 4.1dev4
|
|
Max. Text Size : 9
|
|
|
|
Text esph_version
|
|
Attributes
|
|
ID : 9
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text :
|
|
Max. Text Size : 9
|
|
|
|
Text bluep_version
|
|
Attributes
|
|
ID : 10
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text :
|
|
Max. Text Size : 9
|
|
|
|
Text baud_rate
|
|
Attributes
|
|
ID : 18
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text :
|
|
Max. Text Size : 10
|
|
|
|
Dual-state Button bt_reboot
|
|
Attributes
|
|
ID : 4
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID: on press and release
|
|
State : unpressed
|
|
Text : Reboot
|
|
Max. Text Size : 6
|
|
|
|
Timer timer
|
|
Attributes
|
|
ID : 11
|
|
Scope : local
|
|
Period (ms): 65534
|
|
Enabled : yes
|
|
|
|
Events
|
|
Timer Event
|
|
counter.val++
|
|
covx counter.val,aux1.txt,0,0
|
|
covx display_mode,aux2.txt,0,0
|
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
|
bluep_version.txt="Retry: "+aux1.txt
|
|
printh 92
|
|
prints "nspanelevent",0
|
|
printh 00
|
|
prints nspanelevent.txt,0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Timer wakeup_timer
|
|
Attributes
|
|
ID : 16
|
|
Scope : local
|
|
Period (ms): 50
|
|
Enabled : yes
|
|
|
|
Events
|
|
Timer Event
|
|
if(dim<100)
|
|
{
|
|
dimdelta=100-dim
|
|
dimdelta/=25
|
|
if(dimdelta<1)
|
|
{
|
|
dimdelta=1
|
|
}
|
|
dim+=dimdelta
|
|
}else
|
|
{
|
|
wakeup_timer.en=0
|
|
}
|
|
|
|
Timer tm_esphome
|
|
Attributes
|
|
ID : 17
|
|
Scope : local
|
|
Period (ms): 30000
|
|
Enabled : yes
|
|
|
|
Events
|
|
Timer Event
|
|
if(baud==115200)
|
|
{
|
|
bauds=921600
|
|
}else
|
|
{
|
|
bauds=115200
|
|
}
|
|
rest
|
|
|
|
Timer tm_pageid
|
|
Attributes
|
|
ID : 19
|
|
Scope : local
|
|
Period (ms): 2500
|
|
Enabled : yes
|
|
|
|
Events
|
|
Timer Event
|
|
covx display_mode,aux2.txt,0,0
|
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
|
printh 92
|
|
prints "localevent",0
|
|
printh 00
|
|
prints nspanelevent.txt,0
|
|
printh 00
|
|
printh FF FF FF
|
|
|