add speaker selection (add nextion2text)

This commit is contained in:
joBr99
2022-12-08 22:30:25 +00:00
committed by github-actions[bot]
parent c98a09814e
commit 8414c07163
6 changed files with 128 additions and 28 deletions

View File

@@ -432,7 +432,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -484,260 +431,14 @@
│ @@ -484,280 +431,14 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
@@ -506,6 +506,10 @@
│ - {
│ - page popupInSel
│ - }
│ - if(type2.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
│ -
│ - Touch Release Event
│ - tmLP.en=0
@@ -547,6 +551,10 @@
│ - {
│ - page popupInSel
│ - }
│ - if(type3.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
│ -
│ - Touch Release Event
│ - tmLP.en=0
@@ -588,6 +596,10 @@
│ - {
│ - page popupInSel
│ - }
│ - if(type4.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
│ -
│ - Touch Release Event
│ - tmLP.en=0
@@ -629,6 +641,10 @@
│ - {
│ - page popupInSel
│ - }
│ - if(type5.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
│ -
│ - Touch Release Event
│ - tmLP.en=0
@@ -666,7 +682,11 @@
│ - {
│ - page popupShutter
│ - }
│ - if(type6.txt=="input_sel")
│ - if(entn.txt=="input_sel")
│ - {
│ - page popupInSel
│ - }
│ - if(type6.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
@@ -693,7 +713,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ @@ -837,31 +538,14 @@
│ @@ -857,31 +538,14 @@
│ Period (ms): 100
│ Enabled : no
@@ -725,7 +745,7 @@
│ Enabled : yes
│ Events
│ @@ -907,15 +591,15 @@
│ @@ -927,15 +591,15 @@
│ // here is the location where acual code should be
│ // write command to variable strCommand
│ ucopy strCommand.txt,4,payloadLength-5,0
@@ -742,7 +762,7 @@
│ if(tTmp.txt=="0")
│ {
│ vis bPrev,0
│ @@ -951,183 +635,111 @@
│ @@ -971,183 +635,111 @@
│ if(tTmp.txt=="2")
│ {
│ vis bNext,1
@@ -993,7 +1013,7 @@
│ //write name of speical page to tId
│ spstr strCommand.txt,tId.txt,"~",1
│ //save second arg if there's one
│ @@ -1184,63 +796,38 @@
│ @@ -1204,63 +796,38 @@
│ {
│ page cardQR
│ }
@@ -1024,14 +1044,14 @@
│ - // get background color
│ - spstr strCommand.txt,tTmp.txt,"~",3
│ - if(tTmp.txt!="")
- {
+ if(tId.txt=="cardChart")
│ {
│ - covx tTmp.txt,defaultBcoColor,0,0
│ - }
│ - // get font color
│ - spstr strCommand.txt,tTmp.txt,"~",4
│ - if(tTmp.txt!="")
+ if(tId.txt=="cardChart")
│ {
- {
│ - covx tTmp.txt,defaultFontColor,0,0
│ + page cardChart
│ }

View File

@@ -1057,7 +1057,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -484,260 +431,14 @@
│ @@ -484,280 +431,14 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
@@ -1131,6 +1131,10 @@
│ - {
│ - page popupInSel
│ - }
│ - if(type2.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
│ -
│ - Touch Release Event
│ - tmLP.en=0
@@ -1172,6 +1176,10 @@
│ - {
│ - page popupInSel
│ - }
│ - if(type3.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
│ -
│ - Touch Release Event
│ - tmLP.en=0
@@ -1213,6 +1221,10 @@
│ - {
│ - page popupInSel
│ - }
│ - if(type4.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
│ -
│ - Touch Release Event
│ - tmLP.en=0
@@ -1254,6 +1266,10 @@
│ - {
│ - page popupInSel
│ - }
│ - if(type5.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
│ -
│ - Touch Release Event
│ - tmLP.en=0
@@ -1291,7 +1307,11 @@
│ - {
│ - page popupShutter
│ - }
│ - if(type6.txt=="input_sel")
│ - if(entn.txt=="input_sel")
│ - {
│ - page popupInSel
│ - }
│ - if(type6.txt=="media_pl")
│ - {
│ - page popupInSel
│ - }
@@ -1318,7 +1338,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ @@ -837,31 +538,14 @@
│ @@ -857,31 +538,14 @@
│ Period (ms): 100
│ Enabled : no
@@ -1350,7 +1370,7 @@
│ Enabled : yes
│ Events
│ @@ -907,15 +591,15 @@
│ @@ -927,15 +591,15 @@
│ // here is the location where acual code should be
│ // write command to variable strCommand
│ ucopy strCommand.txt,4,payloadLength-5,0
@@ -1367,7 +1387,7 @@
│ if(tTmp.txt=="0")
│ {
│ vis bPrev,0
│ @@ -951,183 +635,111 @@
│ @@ -971,183 +635,111 @@
│ if(tTmp.txt=="2")
│ {
│ vis bNext,1
@@ -1618,7 +1638,7 @@
│ //write name of speical page to tId
│ spstr strCommand.txt,tId.txt,"~",1
│ //save second arg if there's one
│ @@ -1184,63 +796,38 @@
│ @@ -1204,63 +796,38 @@
│ {
│ page cardQR
│ }
@@ -1649,14 +1669,14 @@
│ - // get background color
│ - spstr strCommand.txt,tTmp.txt,"~",3
│ - if(tTmp.txt!="")
- {
+ if(tId.txt=="cardChart")
│ {
│ - covx tTmp.txt,defaultBcoColor,0,0
│ - }
│ - // get font color
│ - spstr strCommand.txt,tTmp.txt,"~",4
│ - if(tTmp.txt!="")
+ if(tId.txt=="cardChart")
│ {
- {
│ - covx tTmp.txt,defaultFontColor,0,0
│ + page cardChart
│ }

View File

@@ -1,4 +1,4 @@
+++ /dev/fd/62 2022-12-06 21:19:22.503654117 +0000
+++ /dev/fd/62 2022-12-08 22:30:18.613127649 +0000
+I/n2t-out/Program.s.txt
++ HMI/US/portrait/n2t-out/Program.s.txt
+I/n2t-out/cardChart.txt
@@ -447,7 +447,7 @@
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+
+260 +431,14 @@
+280 +431,14 @@
+ crcputs tSend.txt,0
+ //send cmd
+ printh 55 bb
@@ -521,6 +521,10 @@
+ {
+ page popupInSel
+ }
+ if(type2.txt=="media_pl")
+ {
+ page popupInSel
+ }
+
+ Touch Release Event
+ tmLP.en=0
@@ -562,6 +566,10 @@
+ {
+ page popupInSel
+ }
+ if(type3.txt=="media_pl")
+ {
+ page popupInSel
+ }
+
+ Touch Release Event
+ tmLP.en=0
@@ -603,6 +611,10 @@
+ {
+ page popupInSel
+ }
+ if(type4.txt=="media_pl")
+ {
+ page popupInSel
+ }
+
+ Touch Release Event
+ tmLP.en=0
@@ -644,6 +656,10 @@
+ {
+ page popupInSel
+ }
+ if(type5.txt=="media_pl")
+ {
+ page popupInSel
+ }
+
+ Touch Release Event
+ tmLP.en=0
@@ -681,7 +697,11 @@
+ {
+ page popupShutter
+ }
+ if(type6.txt=="input_sel")
+ if(entn.txt=="input_sel")
+ {
+ page popupInSel
+ }
+ if(type6.txt=="media_pl")
+ {
+ page popupInSel
+ }
@@ -1039,13 +1059,13 @@
+ // get background color
+ spstr strCommand.txt,tTmp.txt,"~",3
+ if(tTmp.txt!="")
+ if(tId.txt=="cardChart")
+ {
+ covx tTmp.txt,defaultBcoColor,0,0
+ }
+ // get font color
+ spstr strCommand.txt,tTmp.txt,"~",4
+ if(tTmp.txt!="")
+ if(tId.txt=="cardChart")
+ {
+ covx tTmp.txt,defaultFontColor,0,0
+ page cardChart