Clean-up Cover page

I'm preparing this page to have icons changing based on the device_class selected to a cover.
This commit is contained in:
Edward Firmo
2023-09-02 00:35:32 +02:00
parent 0a3babfbce
commit 2e33d94955
34 changed files with 102 additions and 436 deletions

View File

@@ -40,7 +40,7 @@ Page settings
Text bright_text
Attributes
ID : 5
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -50,7 +50,7 @@ Text bright_text
Text dim_text
Attributes
ID : 6
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -60,7 +60,7 @@ Text dim_text
Text lbl_reboot
Attributes
ID : 7
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -70,7 +70,7 @@ Text lbl_reboot
Text lbl_sleep
Attributes
ID : 8
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -80,7 +80,7 @@ Text lbl_sleep
Text lbl_brightness
Attributes
ID : 9
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -90,7 +90,7 @@ Text lbl_brightness
Text lbl_dimming
Attributes
ID : 10
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -100,7 +100,7 @@ Text lbl_dimming
Slider brightslider
Attributes
ID : 3
ID : 1
Scope : global
Dragging : 0
Send Component ID: on press and release
@@ -119,7 +119,7 @@ Slider brightslider
Slider dimslider
Attributes
ID : 4
ID : 2
Scope : global
Dragging : 0
Send Component ID: on press and release
@@ -138,7 +138,7 @@ Slider dimslider
Button button_back
Attributes
ID : 13
ID : 11
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -152,7 +152,7 @@ Button button_back
Dual-state Button bt_reboot
Attributes
ID : 11
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
@@ -162,7 +162,7 @@ Dual-state Button bt_reboot
Dual-state Button bt_sleep
Attributes
ID : 12
ID : 10
Scope : global
Dragging : 0
Send Component ID: on press and release
@@ -172,7 +172,7 @@ Dual-state Button bt_sleep
Hotspot bt_bright_down
Attributes
ID : 14
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -192,7 +192,7 @@ Hotspot bt_bright_down
Hotspot bt_bright_up
Attributes
ID : 15
ID : 13
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -212,7 +212,7 @@ Hotspot bt_bright_up
Hotspot bt_dim_down
Attributes
ID : 16
ID : 14
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -232,7 +232,7 @@ Hotspot bt_dim_down
Hotspot bt_dim_up
Attributes
ID : 17
ID : 15
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -250,60 +250,3 @@ Hotspot bt_dim_up
printh FF FF FF
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}