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,11 +12,11 @@ Page media_player
Events
Preinitialize Event
dim=brightness
if(api==0)
{
page home
}
vis unavailable,0
printh 92
prints "current_page",0
printh 00
@@ -33,26 +33,26 @@ Variable (string) lastclick
Variable (string) va0
Attributes
ID : 21
ID : 20
Scope : local
Text :
Max. Text Size: 10
Variable (int32) is_muted
Attributes
ID : 22
ID : 21
Scope: local
Value: 0
Variable (int32) prg_current
Attributes
ID : 24
ID : 23
Scope: local
Value: 0
Variable (int32) prg_total
Attributes
ID : 25
ID : 24
Scope: local
Value: 0
@@ -282,16 +282,6 @@ Text bt_on_off
printh 00
printh FF FF FF
Text unavailable
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 1
Progress Bar time_progress
Attributes
ID : 9
@@ -330,32 +320,9 @@ Button button_back
Touch Press Event
page back_page_id
Timer wakeup_timer
Attributes
ID : 19
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 timer0
Attributes
ID : 20
ID : 19
Scope : local
Period (ms): 1000
Enabled : no
@@ -375,7 +342,7 @@ Timer timer0
Timer prg_timer
Attributes
ID : 23
ID : 22
Scope : local
Period (ms): 1000
Enabled : no