Reorg repo
Simplifies things
This commit is contained in:
208
tft/nspanel_blank_code/blank.txt
Normal file
208
tft/nspanel_blank_code/blank.txt
Normal file
@@ -0,0 +1,208 @@
|
||||
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
|
||||
sendme
|
||||
dim=100
|
||||
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 (int32) counter
|
||||
Attributes
|
||||
ID : 9
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (string) aux1
|
||||
Attributes
|
||||
ID : 10
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 10
|
||||
|
||||
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
|
||||
|
||||
Text tft_version
|
||||
Attributes
|
||||
ID : 6
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
Associated Keyboard: none
|
||||
Text : TFT: v2024.1.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 : 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
|
||||
|
||||
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/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
|
||||
counter.val++
|
||||
if(counter.val>60)
|
||||
{
|
||||
rest
|
||||
}
|
||||
sendme
|
||||
printh 91
|
||||
prints "display_mode",0
|
||||
printh 00
|
||||
prints display_mode,0
|
||||
printh FF FF FF
|
||||
printh 92
|
||||
prints "tft_version",0
|
||||
printh 00
|
||||
prints tft_version.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
covx counter.val,aux1.txt,0,0
|
||||
esp_version.txt="ESP: Retry #"+aux1.txt
|
||||
covx baud,baud_rate.txt,0,0
|
||||
baud_rate.txt+=" bps"
|
||||
|
||||
Reference in New Issue
Block a user