Simplify page load

To reduce the chances of a serial buffer overflow
This commit is contained in:
Edward Firmo
2024-04-24 11:58:19 +02:00
parent baef06fadf
commit fe26e30a06
90 changed files with 793 additions and 3395 deletions

View File

@@ -12,13 +12,13 @@ Page settings
Events
Preinitialize Event
dim=brightness
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
vis lbl_sleep,0
vis bt_sleep,0
vis unavailable,0
printh 92
prints "current_page",0
printh 00
@@ -103,16 +103,6 @@ Text lbl_brightness
Text : Brightness
Max. Text Size : 25
Text unavailable
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 1
Slider brightslider
Attributes
ID : 1
@@ -265,32 +255,9 @@ Hotspot bt_dim_up
printh FF FF FF
}
Timer wakeup_timer
Attributes
ID : 17
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer tm_bright
Attributes
ID : 18
ID : 17
Scope : local
Period (ms): 100
Enabled : no
@@ -308,7 +275,7 @@ Timer tm_bright
Timer tm_dim
Attributes
ID : 19
ID : 18
Scope : local
Period (ms): 100
Enabled : no
@@ -326,7 +293,7 @@ Timer tm_dim
Timer tm_boot_page
Attributes
ID : 20
ID : 19
Scope : local
Period (ms): 1000
Enabled : no