Simplify page load
To reduce the chances of a serial buffer overflow
This commit is contained in:
@@ -12,6 +12,7 @@ Page home
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
dim=brightness
|
||||
if(boot.progress.val<100)
|
||||
{
|
||||
page boot
|
||||
@@ -40,7 +41,6 @@ Page home
|
||||
vis left_bt_text,0
|
||||
vis right_bt_text,0
|
||||
}
|
||||
vis unavailable,0
|
||||
|
||||
Variable (string) lastclick
|
||||
Attributes
|
||||
@@ -51,7 +51,7 @@ Variable (string) lastclick
|
||||
|
||||
Variable (string) click_comp
|
||||
Attributes
|
||||
ID : 39
|
||||
ID : 38
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 8
|
||||
@@ -430,7 +430,7 @@ Text meridiem
|
||||
|
||||
Text button01
|
||||
Attributes
|
||||
ID : 36
|
||||
ID : 35
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -458,7 +458,7 @@ Text button01
|
||||
|
||||
Text button02
|
||||
Attributes
|
||||
ID : 37
|
||||
ID : 36
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -486,7 +486,7 @@ Text button02
|
||||
|
||||
Text button03
|
||||
Attributes
|
||||
ID : 38
|
||||
ID : 37
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -514,7 +514,7 @@ Text button03
|
||||
|
||||
Text button04
|
||||
Attributes
|
||||
ID : 41
|
||||
ID : 40
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -542,7 +542,7 @@ Text button04
|
||||
|
||||
Text button05
|
||||
Attributes
|
||||
ID : 42
|
||||
ID : 41
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -570,7 +570,7 @@ Text button05
|
||||
|
||||
Text button06
|
||||
Attributes
|
||||
ID : 43
|
||||
ID : 42
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -596,19 +596,9 @@ Text button06
|
||||
printh FF FF FF
|
||||
}
|
||||
|
||||
Text unavailable
|
||||
Attributes
|
||||
ID : 44
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text :
|
||||
Max. Text Size : 1
|
||||
|
||||
Text bt_utilities
|
||||
Attributes
|
||||
ID : 45
|
||||
ID : 43
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -625,7 +615,7 @@ Text bt_utilities
|
||||
|
||||
Text value03_icon
|
||||
Attributes
|
||||
ID : 46
|
||||
ID : 44
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -635,7 +625,7 @@ Text value03_icon
|
||||
|
||||
Text value03
|
||||
Attributes
|
||||
ID : 47
|
||||
ID : 45
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -645,7 +635,7 @@ Text value03
|
||||
|
||||
Text bt_icon
|
||||
Attributes
|
||||
ID : 48
|
||||
ID : 46
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : on press and release
|
||||
@@ -697,32 +687,9 @@ Timer settings_timer
|
||||
Timer Event
|
||||
page settings
|
||||
|
||||
Timer wakeup_timer
|
||||
Attributes
|
||||
ID : 35
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : yes
|
||||
|
||||
Events
|
||||
Timer Event
|
||||
if(dim<brightness)
|
||||
{
|
||||
dimdelta=brightness-dim
|
||||
dimdelta/=25
|
||||
if(dimdelta<1)
|
||||
{
|
||||
dimdelta=1
|
||||
}
|
||||
dim+=dimdelta
|
||||
}else
|
||||
{
|
||||
wakeup_timer.en=0
|
||||
}
|
||||
|
||||
Timer click_timer
|
||||
Attributes
|
||||
ID : 40
|
||||
ID : 39
|
||||
Scope : local
|
||||
Period (ms): 800
|
||||
Enabled : no
|
||||
@@ -747,7 +714,7 @@ TouchCap swipe
|
||||
Events
|
||||
Touch Press Event
|
||||
swipestore.en=1 // Start swipestore timer
|
||||
wakeup_timer.en=1 // Set brightness to saved value (from HA)
|
||||
dim=brightness // Set brightness to saved value (from HA)
|
||||
|
||||
Touch Release Event
|
||||
if(api==0)
|
||||
|
||||
Reference in New Issue
Block a user