Change baud_rate without restart

This commit is contained in:
Edward Firmo
2023-11-10 11:31:08 +01:00
parent 9d06a7f55a
commit da37740ef3
12 changed files with 131 additions and 9 deletions

View File

@@ -22,14 +22,113 @@ Page blank
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"blank\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"version\": \"2023.09.19\"}",0
prints "{\"page\": \"blank\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"version\": \"2023.11.0\"}",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
Text file_name
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
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 : 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 tft_version
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : TFT: v2023.11.0
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 : disabled
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
@@ -43,9 +142,11 @@ QR Code qr0
Events
Touch Press Event
dim=100
tm0.en=1
Touch Release Event
dim=100
tm0.en=1
Timer tm0
@@ -57,7 +158,25 @@ Timer tm0
Events
Timer Event
dim=15
tm0.en=0
dim=0
page screensaver
Timer tm_esphome
Attributes
ID : 3
Scope : local
Period (ms): 30000
Enabled : yes
Events
Timer Event
if(baud==115200)
{
bauds=921600
}else
{
bauds=115200
}
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"

Binary file not shown.

Binary file not shown.

View File

@@ -21,7 +21,7 @@ Page boot
dim=0
vis bt_reboot,0
covx baud,baud_rate.txt,0,0
baud_rate.txt+="bps"
baud_rate.txt+=" bps"
covx display_mode,aux2.txt,0,0
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
printh 92
@@ -255,7 +255,8 @@ Timer tm_esphome
{
bauds=115200
}
rest
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
Timer tm_pageid
Attributes

Binary file not shown.

Binary file not shown.

View File

@@ -21,7 +21,7 @@ Page boot
dim=0
vis bt_reboot,0
covx baud,baud_rate.txt,0,0
baud_rate.txt+="bps"
baud_rate.txt+=" bps"
covx display_mode,aux2.txt,0,0
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
printh 92
@@ -255,7 +255,8 @@ Timer tm_esphome
{
bauds=115200
}
rest
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
Timer tm_pageid
Attributes

Binary file not shown.

Binary file not shown.

View File

@@ -21,7 +21,7 @@ Page boot
dim=0
vis bt_reboot,0
covx baud,baud_rate.txt,0,0
baud_rate.txt+="bps"
baud_rate.txt+=" bps"
covx display_mode,aux2.txt,0,0
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
printh 92
@@ -255,7 +255,8 @@ Timer tm_esphome
{
bauds=115200
}
rest
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
Timer tm_pageid
Attributes