Additional custom button on Home page

Solves #1257
This commit is contained in:
Edward Firmo
2023-12-08 02:13:55 +01:00
parent ceb669dfc8
commit 336698cb72
12 changed files with 122 additions and 1 deletions

View File

@@ -436,6 +436,34 @@ Text button03
printh FF FF FF
}
Text button04
Attributes
ID : 46
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="button04"
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