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

@@ -25,19 +25,17 @@ Page settings
printh FF FF FF
Touch Press Event
printh 92
printh 91
prints "touchevent",0
printh 00
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
printh 92
printh 91
prints "touchevent",0
printh 00
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"release\"}",0
printh 00
prints rand,0
printh FF FF FF
Text bright_text
@@ -233,6 +231,11 @@ Slider brightslider
printh 00
prints brightslider.val,0
printh FF FF FF
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Slider dimslider
Attributes
@@ -261,6 +264,11 @@ Slider dimslider
printh 00
prints dimslider.val,0
printh FF FF FF
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Button button_back
Attributes