Simplify page load
To reduce the chances of a serial buffer overflow
This commit is contained in:
@@ -12,6 +12,7 @@ Page buttonpage02
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
dim=brightness
|
||||
if(api==0)
|
||||
{
|
||||
page home
|
||||
@@ -69,7 +70,7 @@ Variable (string) page_name
|
||||
|
||||
Variable (int32) confirm
|
||||
Attributes
|
||||
ID : 11
|
||||
ID : 10
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
@@ -95,7 +96,7 @@ Text page_index
|
||||
|
||||
Text button01pic
|
||||
Attributes
|
||||
ID : 12
|
||||
ID : 11
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -105,7 +106,7 @@ Text button01pic
|
||||
|
||||
Text button02pic
|
||||
Attributes
|
||||
ID : 13
|
||||
ID : 12
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -115,7 +116,7 @@ Text button02pic
|
||||
|
||||
Text button03pic
|
||||
Attributes
|
||||
ID : 14
|
||||
ID : 13
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -125,7 +126,7 @@ Text button03pic
|
||||
|
||||
Text button04pic
|
||||
Attributes
|
||||
ID : 15
|
||||
ID : 14
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -135,7 +136,7 @@ Text button04pic
|
||||
|
||||
Text button05pic
|
||||
Attributes
|
||||
ID : 16
|
||||
ID : 15
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -145,7 +146,7 @@ Text button05pic
|
||||
|
||||
Text button06pic
|
||||
Attributes
|
||||
ID : 17
|
||||
ID : 16
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -155,7 +156,7 @@ Text button06pic
|
||||
|
||||
Text button07pic
|
||||
Attributes
|
||||
ID : 18
|
||||
ID : 17
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -165,7 +166,7 @@ Text button07pic
|
||||
|
||||
Text button08pic
|
||||
Attributes
|
||||
ID : 19
|
||||
ID : 18
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -175,7 +176,7 @@ Text button08pic
|
||||
|
||||
Text button01text
|
||||
Attributes
|
||||
ID : 20
|
||||
ID : 19
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -185,7 +186,7 @@ Text button01text
|
||||
|
||||
Text button02text
|
||||
Attributes
|
||||
ID : 21
|
||||
ID : 20
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -195,7 +196,7 @@ Text button02text
|
||||
|
||||
Text button03text
|
||||
Attributes
|
||||
ID : 22
|
||||
ID : 21
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -205,7 +206,7 @@ Text button03text
|
||||
|
||||
Text button04text
|
||||
Attributes
|
||||
ID : 23
|
||||
ID : 22
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -215,7 +216,7 @@ Text button04text
|
||||
|
||||
Text button05text
|
||||
Attributes
|
||||
ID : 24
|
||||
ID : 23
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -225,7 +226,7 @@ Text button05text
|
||||
|
||||
Text button06text
|
||||
Attributes
|
||||
ID : 25
|
||||
ID : 24
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -235,7 +236,7 @@ Text button06text
|
||||
|
||||
Text button07text
|
||||
Attributes
|
||||
ID : 26
|
||||
ID : 25
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -245,7 +246,7 @@ Text button07text
|
||||
|
||||
Text button08text
|
||||
Attributes
|
||||
ID : 27
|
||||
ID : 26
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -255,7 +256,7 @@ Text button08text
|
||||
|
||||
Text button01icon
|
||||
Attributes
|
||||
ID : 28
|
||||
ID : 27
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -265,7 +266,7 @@ Text button01icon
|
||||
|
||||
Text button02icon
|
||||
Attributes
|
||||
ID : 29
|
||||
ID : 28
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -275,7 +276,7 @@ Text button02icon
|
||||
|
||||
Text button03icon
|
||||
Attributes
|
||||
ID : 30
|
||||
ID : 29
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -285,7 +286,7 @@ Text button03icon
|
||||
|
||||
Text button04icon
|
||||
Attributes
|
||||
ID : 31
|
||||
ID : 30
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -295,7 +296,7 @@ Text button04icon
|
||||
|
||||
Text button05icon
|
||||
Attributes
|
||||
ID : 32
|
||||
ID : 31
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -305,7 +306,7 @@ Text button05icon
|
||||
|
||||
Text button06icon
|
||||
Attributes
|
||||
ID : 33
|
||||
ID : 32
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -315,7 +316,7 @@ Text button06icon
|
||||
|
||||
Text button07icon
|
||||
Attributes
|
||||
ID : 34
|
||||
ID : 33
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -325,7 +326,7 @@ Text button07icon
|
||||
|
||||
Text button08icon
|
||||
Attributes
|
||||
ID : 35
|
||||
ID : 34
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -335,7 +336,7 @@ Text button08icon
|
||||
|
||||
Text button01bri
|
||||
Attributes
|
||||
ID : 36
|
||||
ID : 35
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -345,7 +346,7 @@ Text button01bri
|
||||
|
||||
Text button02bri
|
||||
Attributes
|
||||
ID : 37
|
||||
ID : 36
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -355,7 +356,7 @@ Text button02bri
|
||||
|
||||
Text button03bri
|
||||
Attributes
|
||||
ID : 38
|
||||
ID : 37
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -365,7 +366,7 @@ Text button03bri
|
||||
|
||||
Text button04bri
|
||||
Attributes
|
||||
ID : 39
|
||||
ID : 38
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -375,7 +376,7 @@ Text button04bri
|
||||
|
||||
Text button05bri
|
||||
Attributes
|
||||
ID : 40
|
||||
ID : 39
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -385,7 +386,7 @@ Text button05bri
|
||||
|
||||
Text button06bri
|
||||
Attributes
|
||||
ID : 41
|
||||
ID : 40
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -395,7 +396,7 @@ Text button06bri
|
||||
|
||||
Text button07bri
|
||||
Attributes
|
||||
ID : 42
|
||||
ID : 41
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -405,7 +406,7 @@ Text button07bri
|
||||
|
||||
Text button08bri
|
||||
Attributes
|
||||
ID : 43
|
||||
ID : 42
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -413,16 +414,6 @@ Text button08bri
|
||||
Text :
|
||||
Max. Text Size : 4
|
||||
|
||||
Text unavailable
|
||||
Attributes
|
||||
ID : 52
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text :
|
||||
Max. Text Size : 1
|
||||
|
||||
Button button_back
|
||||
Attributes
|
||||
ID : 6
|
||||
@@ -439,7 +430,7 @@ Button button_back
|
||||
|
||||
Hotspot button01
|
||||
Attributes
|
||||
ID : 44
|
||||
ID : 43
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -475,7 +466,7 @@ Hotspot button01
|
||||
|
||||
Hotspot button02
|
||||
Attributes
|
||||
ID : 45
|
||||
ID : 44
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -511,7 +502,7 @@ Hotspot button02
|
||||
|
||||
Hotspot button03
|
||||
Attributes
|
||||
ID : 46
|
||||
ID : 45
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -547,7 +538,7 @@ Hotspot button03
|
||||
|
||||
Hotspot button04
|
||||
Attributes
|
||||
ID : 47
|
||||
ID : 46
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -583,7 +574,7 @@ Hotspot button04
|
||||
|
||||
Hotspot button05
|
||||
Attributes
|
||||
ID : 48
|
||||
ID : 47
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -619,7 +610,7 @@ Hotspot button05
|
||||
|
||||
Hotspot button06
|
||||
Attributes
|
||||
ID : 49
|
||||
ID : 48
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -655,7 +646,7 @@ Hotspot button06
|
||||
|
||||
Hotspot button07
|
||||
Attributes
|
||||
ID : 50
|
||||
ID : 49
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -691,7 +682,7 @@ Hotspot button07
|
||||
|
||||
Hotspot button08
|
||||
Attributes
|
||||
ID : 51
|
||||
ID : 50
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -755,29 +746,6 @@ Timer click_timer
|
||||
printh FF FF FF
|
||||
click_timer.en=0
|
||||
|
||||
Timer wakeup_timer
|
||||
Attributes
|
||||
ID : 10
|
||||
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
|
||||
}
|
||||
|
||||
TouchCap swipe
|
||||
Attributes
|
||||
ID : 1
|
||||
|
||||
Reference in New Issue
Block a user