Home buttons new format - QRcode

Modernise the button "QRcode" flow on page Home to improve performance.
This commit is contained in:
Edward Firmo
2023-08-23 22:18:31 +02:00
parent 1ad3d7ef4b
commit 27fc5c3e89
18 changed files with 179 additions and 239 deletions

View File

@@ -13,18 +13,12 @@ Page qrcode
Events
Preinitialize Event
dim=home.brightness.val
if(api==0)
{
page home
}else
{
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"qrcode\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
}
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"qrcode\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
Touch Press Event
printh 92
@@ -45,7 +39,7 @@ Page qrcode
Text qrcode_label
Attributes
ID : 4
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -55,7 +49,7 @@ Text qrcode_label
QR Code qrcode_value
Attributes
ID : 5
Scope : local
Scope : global
Dragging : 0
Send Component ID: disabled
Text :