Simplify touchevent engine

The touch event is used only for the sleeping engine (it will be used for dimming later) and it was transferring all the json info with page name, component, entity, etc.
This was replaced by a simple random integer with no meaning other than "the screen was touched, reset the timer".
This commit is contained in:
Edward Firmo
2023-09-11 12:17:10 +02:00
parent f1e3dc49e6
commit 7452dfd2bb
89 changed files with 581 additions and 496 deletions

View File

@@ -40,21 +40,17 @@ Page climate
}
Touch Press Event
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
printh 92
printh 91
prints "touchevent",0
printh 00
prints climatesetting.txt,0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
printh 92
printh 91
prints "touchevent",0
printh 00
prints climatesetting.txt,0
printh 00
prints rand,0
printh FF FF FF
Page Exit Event
@@ -382,12 +378,10 @@ Slider climateslider
Events
Touch Press Event
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
printh 92
printh 91
prints "touchevent",0
printh 00
prints climatesetting.txt,0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
@@ -399,12 +393,10 @@ Slider climateslider
covx va0.val,va1.txt,0,0
target_temp.txt+="."+va1.txt
timer01.en=1
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
printh 92
printh 91
prints "touchevent",0
printh 00
prints climatesetting.txt,0
printh 00
prints rand,0
printh FF FF FF
Button button_back