New blank tft
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
bauds=115200//Configure baudrate
|
||||
dim=100//Configure backlight
|
||||
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
|
||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||
|
||||
@@ -36,6 +36,13 @@ Page blank
|
||||
dim=100
|
||||
tm0.en=1
|
||||
|
||||
Variable (string) nspanelevent
|
||||
Attributes
|
||||
ID : 10
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 150
|
||||
|
||||
Text file_name
|
||||
Attributes
|
||||
ID : 4
|
||||
@@ -158,8 +165,20 @@ Timer tm0
|
||||
|
||||
Events
|
||||
Timer Event
|
||||
dim=15
|
||||
tm0.en=0
|
||||
if(dim>50)
|
||||
{
|
||||
dim=50
|
||||
}else if(dim>25)
|
||||
{
|
||||
dim=25
|
||||
}else if(dim>10)
|
||||
{
|
||||
dim=10
|
||||
}else
|
||||
{
|
||||
dim=0
|
||||
tm0.en=0
|
||||
}
|
||||
|
||||
Timer tm_esphome
|
||||
Attributes
|
||||
@@ -180,3 +199,20 @@ Timer tm_esphome
|
||||
covx baud,baud_rate.txt,0,0
|
||||
baud_rate.txt+=" bps"
|
||||
|
||||
Timer tm_pageid
|
||||
Attributes
|
||||
ID : 9
|
||||
Scope : local
|
||||
Period (ms): 2500
|
||||
Enabled : yes
|
||||
|
||||
Events
|
||||
Timer Event
|
||||
nspanelevent.txt="{\"page\": \"blank\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints nspanelevent.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user