Redistribute tree

This commit is contained in:
Edward Firmo
2023-12-04 18:52:02 +01:00
parent 978df5ad75
commit 0565f5f522
137 changed files with 19166 additions and 40341 deletions

View File

@@ -0,0 +1,6 @@
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
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
page 0 //Power on start page 0

View File

@@ -0,0 +1,233 @@
Page blank
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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 "blank",0
printh 00
printh FF FF FF
dim=100
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"blank\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"version\": \"2023.11.1\"}",0
printh 00
printh FF FF FF
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
Touch Press Event
dim=100
tm0.en=1
Touch Release Event
dim=100
tm0.en=1
Variable (string) nspanelevent
Attributes
ID : 10
Scope : local
Text :
Max. Text Size: 150
Text file_name
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : nspanel_blank.tft
Max. Text Size : 20
Events
Touch Press Event
dim=100
tm0.en=1
Touch Release Event
dim=100
tm0.en=1
Text baud_rate
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Events
Touch Press Event
dim=100
tm0.en=1
Touch Release Event
dim=100
tm0.en=1
if(baud==115200)
{
bauds=921600
}else
{
bauds=115200
}
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
Text tft_version
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : TFT: v2023.11.2
Max. Text Size : 20
Events
Touch Press Event
dim=100
tm0.en=1
Touch Release Event
dim=100
tm0.en=1
Text framework
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Events
Touch Press Event
dim=100
tm0.en=1
Touch Release Event
dim=100
tm0.en=1
Text esp_version
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ESP: Waiting...
Max. Text Size : 20
Events
Touch Press Event
dim=100
tm0.en=1
Touch Release Event
dim=100
tm0.en=1
QR Code qr0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID: on press and release
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
dim=100
tm0.en=1
Touch Release Event
dim=100
tm0.en=1
Timer tm0
Attributes
ID : 2
Scope : local
Period (ms): 65500
Enabled : yes
Events
Timer Event
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
ID : 3
Scope : local
Period (ms): 30000
Enabled : yes
Events
Timer Event
if(framework.txt=="")
{
if(baud==115200)
{
bauds=921600
}else
{
bauds=115200
}
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
}else
{
tm_esphome.en=0
}
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

View File

@@ -0,0 +1,21 @@
Page page0
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
QR Code qr0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID: disabled
Text : https://github.com/Blackymas/NSPanel_HA_Blueprint
Max. Text Size : 50

View File

@@ -0,0 +1,31 @@
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 "currentpage",0
printh 00
prints "blank-screensaver",0
printh 00
printh FF FF FF
dim=0
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
Touch Press Event
page blank