Page utilities - Line movement

Solves #168
This commit is contained in:
Edward Firmo
2024-03-06 21:20:24 +01:00
parent 2caf2cced4
commit b633ac1fe3
29 changed files with 1266 additions and 479 deletions

View File

@@ -16,34 +16,59 @@ Page utilities
{
page home
}
vis unavailable,0
vis 255,0
vis title_icon,1
vis title,1
vis button_back,1
Postinitialize Event
sendme
Text title
Variable (int32) line_main_d
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Power Dashboard
Max. Text Size : 100
ID : 46
Scope: local
Value: 1
Text title_icon
Variable (int32) group01_line_d
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 10
ID : 47
Scope: local
Value: 4294967295
Variable (int32) group02_line_d
Attributes
ID : 48
Scope: local
Value: 1
Variable (int32) group03_line_d
Attributes
ID : 49
Scope: local
Value: 4294967295
Variable (int32) group04_line_d
Attributes
ID : 50
Scope: local
Value: 1
Variable (int32) group05_line_d
Attributes
ID : 51
Scope: local
Value: 4294967295
Variable (int32) group06_line_d
Attributes
ID : 52
Scope: local
Value: 1
Text unavailable
Attributes
ID : 5
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -51,19 +76,29 @@ Text unavailable
Text :
Max. Text Size : 1
Text t0
Text title_icon
Attributes
ID : 6
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Send Component ID : on press and release
Associated Keyboard: none
Text : î´½
Max. Text Size : 4
Text :
Max. Text Size : 10
Text t1
Text title
Attributes
ID : 7
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text home_icon
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -71,49 +106,9 @@ Text t1
Text : 賈
Max. Text Size : 4
Text t2
Text home_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text t3
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text t4
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Green
Max. Text Size : 10
Text t5
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Fossil
Max. Text Size : 10
Text t6
Attributes
ID : 15
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -121,199 +116,309 @@ Text t6
Text : Home
Max. Text Size : 10
Text t7
Text home
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text homeb
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text grid_icon
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : î´½
Max. Text Size : 4
Text grid_label
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Grid
Max. Text Size : 10
Text grid
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text gridb
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group01_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text group01_label
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 全
Max. Text Size : 4
Text : Label
Max. Text Size : 10
Text t8
Text group01
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Solar
Text :
Max. Text Size : 10
Text t9
Text group01b
Attributes
ID : 19
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 98%
Text :
Max. Text Size : 10
Text t10
Text group02_icon
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 2%
Max. Text Size : 10
Text : 
Max. Text Size : 4
Text t11
Text group02_label
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 豈
Max. Text Size : 4
Text : Label
Max. Text Size : 10
Text t12
Text group02
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Battery
Text :
Max. Text Size : 10
Text t13
Text group02b
Attributes
ID : 24
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 暑
Max. Text Size : 4
Text :
Max. Text Size : 10
Text t14
Text group03_icon
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Heating
Text : 
Max. Text Size : 4
Text group03_label
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Label
Max. Text Size : 10
Text t15
Text group03
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 1.7 kW
Text :
Max. Text Size : 10
Text t16
Text group03b
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 21.7°C
Text :
Max. Text Size : 10
Text t17
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 1.1 kW
Max. Text Size : 10
Text t18
Text group04_icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : -2.1 kW
Max. Text Size : 10
Text : 
Max. Text Size : 4
Text t19
Text group04_label
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 0.8 kW
Text : Label
Max. Text Size : 10
Text t20
Text group04
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 慎
Max. Text Size : 4
Text :
Max. Text Size : 10
Text t21
Text group04b
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Wind
Text :
Max. Text Size : 10
Text t22
Text group05_icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 1.1 kW
Max. Text Size : 10
Text : 
Max. Text Size : 4
Text t23
Text group05_label
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : î—°
Max. Text Size : 4
Text : Label
Max. Text Size : 10
Text t24
Text group05
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Car
Text :
Max. Text Size : 10
Text t25
Text group05b
Attributes
ID : 39
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 1.1 kW
Text :
Max. Text Size : 10
Slider h0
Text group06_icon
Attributes
ID : 8
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 4
Text group06_label
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Label
Max. Text Size : 10
Text group06
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text group06b
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider line_main
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -321,9 +426,9 @@ Slider h0
Upper range limit: 100
Lower range limit: 0
Slider h1
Slider group01_line
Attributes
ID : 13
ID : 19
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -331,9 +436,9 @@ Slider h1
Upper range limit: 100
Lower range limit: 0
Slider h2
Slider group02_line
Attributes
ID : 14
ID : 24
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -341,9 +446,9 @@ Slider h2
Upper range limit: 100
Lower range limit: 0
Slider h3
Slider group03_line
Attributes
ID : 18
ID : 29
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -351,27 +456,7 @@ Slider h3
Upper range limit: 100
Lower range limit: 0
Slider h4
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Slider h5
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Slider h6
Slider group04_line
Attributes
ID : 34
Scope : local
@@ -381,9 +466,19 @@ Slider h6
Upper range limit: 100
Lower range limit: 0
Slider h7
Slider group05_line
Attributes
ID : 38
ID : 39
Scope : local
Dragging : 0
Send Component ID: disabled
Position : 50
Upper range limit: 100
Lower range limit: 0
Slider group06_line
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -393,7 +488,7 @@ Slider h7
Button button_back
Attributes
ID : 3
ID : 2
Scope : local
Dragging : 0
Send Component ID: on press and release
@@ -403,11 +498,11 @@ Button button_back
Events
Touch Press Event
page back_page_id
page home
Timer wakeup_timer
Attributes
ID : 4
ID : 1
Scope : local
Period (ms): 100
Enabled : yes
@@ -428,3 +523,76 @@ Timer wakeup_timer
wakeup_timer.en=0
}
Timer tm_movement
Attributes
ID : 45
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
//line_main
line_main.val+=line_main_d.val
if(line_main.val>=line_main.maxval)
{
line_main.val=line_main.minval
}else if(line_main.val<=line_main.minval)
{
line_main.val=line_main.maxval
}
//group01_line
group01_line.val+=group01_line_d.val
if(group01_line.val>=group01_line.maxval)
{
group01_line.val=group01_line.minval
}else if(group01_line.val<=group01_line.minval)
{
group01_line.val=group01_line.maxval
}
//group02_line
group02_line.val+=group02_line_d.val
if(group02_line.val>=group02_line.maxval)
{
group02_line.val=group02_line.minval
}else if(group02_line.val<=group02_line.minval)
{
group02_line.val=group02_line.maxval
}
//group03_line
group03_line.val+=group03_line_d.val
if(group03_line.val>=group03_line.maxval)
{
group03_line.val=group03_line.minval
}else if(group03_line.val<=group03_line.minval)
{
group03_line.val=group03_line.maxval
}
//group04_line
group04_line.val+=group04_line_d.val
if(group04_line.val>=group04_line.maxval)
{
group04_line.val=group04_line.minval
}else if(group04_line.val<=group04_line.minval)
{
group04_line.val=group04_line.maxval
}
//group05_line
group05_line.val+=group05_line_d.val
if(group05_line.val>=group05_line.maxval)
{
group05_line.val=group05_line.minval
}else if(group05_line.val<=group05_line.minval)
{
group05_line.val=group05_line.maxval
}
//group06_line
group06_line.val+=group06_line_d.val
if(group06_line.val>=group06_line.maxval)
{
group06_line.val=group06_line.minval
}else if(group06_line.val<=group06_line.minval)
{
group06_line.val=group06_line.maxval
}