Changed to 6 custom buttons on home page

This commit is contained in:
Edward Firmo
2023-12-08 11:42:13 +01:00
parent f480869992
commit 74ed612c15
11 changed files with 229 additions and 5 deletions

View File

@@ -464,6 +464,62 @@ Text button04
printh FF FF FF
}
Text button05
Attributes
ID : 47
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button06
Attributes
ID : 48
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Picture weather
Attributes
ID : 7