Change back_page_id

Reduces a bit the memory in TFT
Simplify the process
Open space for more pages to be used
Not visible by users
This commit is contained in:
Edward Firmo
2023-12-19 09:59:42 +01:00
parent 32d969ed3e
commit 052fc9551c
19 changed files with 180 additions and 440 deletions

View File

@@ -20,42 +20,35 @@ Page media_player
sendme
}
Variable (string) back_page
Attributes
ID : 3
Scope : local
Text : home
Max. Text Size: 15
Variable (string) lastclick
Attributes
ID : 19
ID : 18
Scope : local
Text :
Max. Text Size: 255
Variable (string) va0
Attributes
ID : 22
ID : 21
Scope : local
Text :
Max. Text Size: 10
Variable (int32) is_muted
Attributes
ID : 23
ID : 22
Scope: local
Value: 0
Variable (int32) prg_current
Attributes
ID : 25
ID : 24
Scope: local
Value: 0
Variable (int32) prg_total
Attributes
ID : 26
ID : 25
Scope: local
Value: 0
@@ -81,7 +74,7 @@ Text icon_state
Text vol_text
Attributes
ID : 6
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -91,7 +84,7 @@ Text vol_text
Text bt_vol_down
Attributes
ID : 7
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -117,7 +110,7 @@ Text bt_vol_down
Text bt_vol_up
Attributes
ID : 8
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -143,7 +136,7 @@ Text bt_vol_up
Text bt_mute
Attributes
ID : 9
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -170,7 +163,7 @@ Text bt_mute
Text time_current
Attributes
ID : 11
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -180,7 +173,7 @@ Text time_current
Text time_total
Attributes
ID : 12
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -190,7 +183,7 @@ Text time_total
Text track
Attributes
ID : 13
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -200,7 +193,7 @@ Text track
Text artist
Attributes
ID : 14
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -210,7 +203,7 @@ Text artist
Text bt_prev
Attributes
ID : 15
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -229,7 +222,7 @@ Text bt_prev
Text bt_play_pause
Attributes
ID : 16
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -248,7 +241,7 @@ Text bt_play_pause
Text bt_next
Attributes
ID : 17
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -267,7 +260,7 @@ Text bt_next
Text bt_on_off
Attributes
ID : 18
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
@@ -286,7 +279,7 @@ Text bt_on_off
Progress Bar time_progress
Attributes
ID : 10
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
@@ -294,7 +287,7 @@ Progress Bar time_progress
Slider vol_slider
Attributes
ID : 5
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
@@ -310,7 +303,7 @@ Slider vol_slider
Button button_back
Attributes
ID : 4
ID : 3
Scope : local
Dragging : 0
Send Component ID: on release
@@ -320,26 +313,11 @@ Button button_back
Events
Touch Press Event
if(back_page.txt=="buttonpage01")
{
page buttonpage01
}else if(back_page.txt=="buttonpage02")
{
page buttonpage02
}else if(back_page.txt=="buttonpage03")
{
page buttonpage03
}else if(back_page.txt=="buttonpage04")
{
page buttonpage04
}else
{
page home
}
page back_page_id
Timer wakeup_timer
Attributes
ID : 20
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
@@ -362,7 +340,7 @@ Timer wakeup_timer
Timer timer0
Attributes
ID : 21
ID : 20
Scope : local
Period (ms): 1000
Enabled : no
@@ -382,7 +360,7 @@ Timer timer0
Timer prg_timer
Attributes
ID : 24
ID : 23
Scope : local
Period (ms): 1000
Enabled : no