fixes #957 (add nextion2text)

This commit is contained in:
joBr99
2023-08-20 12:32:17 +00:00
committed by github-actions[bot]
parent 98b40de8dc
commit 306a189d79
18 changed files with 230 additions and 84 deletions

View File

@@ -1688,23 +1688,6 @@
│ Scope : local
│ Dragging : 0
│ Send Component ID : disabled
│ @@ -141,15 +135,15 @@
│ Text tVersion
│ Attributes
│ Scope : local
│ Dragging : 0
│ Send Component ID : disabled
│ Associated Keyboard: none
│ - Text : 52
│ + Text : 51
│ Max. Text Size : 10
│ Picture p0
│ Attributes
│ Scope : local
│ Dragging : 0
│ Send Component ID: disabled
│ @@ -164,15 +158,15 @@
│ Max. Text Size : 10
@@ -1779,6 +1762,23 @@
│ Variable (string) entn
│ Attributes
│ Scope : local
│ @@ -631,15 +631,15 @@
│ }
│ if(tId.txt=="cardGrid")
│ {
│ page cardGrid
│ }
│ if(tId.txt=="cardGrid2")
│ {
│ - page cardGrid2
│ + page cardGrid
│ }
│ if(tId.txt=="popupLight")
│ {
│ pageIcons.tTmp1.txt=tTmp.txt
│ page popupLight
│ }
│ if(tId.txt=="popupShutter")
│ --- HMI/n2t-out/popupNotify.txt
├── +++ HMI/US/portrait/n2t-out/popupNotify.txt
│ @@ -295,19 +295,14 @@
@@ -1877,6 +1877,36 @@
│ spstr strCommand.txt,tTmp.txt,"~",1
│ covx tTmp.txt,tTime.bco,0,0
│ if(tTime.bco!=screensaver.bco)
│ @@ -702,29 +673,14 @@
│ }
│ spstr strCommand.txt,tTmp.txt,"~",4
│ if(tTmp.txt!="")
│ {
│ covx tTmp.txt,tNotifyText.pco,0,0
│ }
│ }
│ - if(tInstruction.txt=="getBrightness")
│ - {
│ - tSend.txt="event,getBrightnessResponse,"
│ - //send calc crc
│ - btlen tSend.txt,sys0
│ - crcrest 1,0xffff // reset CRC
│ - crcputh 55 bb
│ - crcputs sys0,2
│ - crcputs dim,0
│ - //send cmd
│ - printh 55 bb
│ - prints sys0,2
│ - prints tSend.txt,0
│ - prints crcval,2
│ - }
│ if(tInstruction.txt=="pageType")
│ {
│ dim=100
│ //command format pageType,specialPageName
│ //write name of speical page to tId
│ spstr strCommand.txt,tId.txt,"~",1
│ //save second arg if there's one
│ --- HMI/n2t-out/screensaver2.txt
├── +++ HMI/US/portrait/n2t-out/screensaver2.txt
│ @@ -28,17 +28,14 @@

View File

@@ -1,4 +1,4 @@
+++ /dev/fd/62 2023-08-08 20:49:02.082432386 +0000
+++ /dev/fd/62 2023-08-20 12:32:07.109670758 +0000
+I/n2t-out/Program.s.txt
++ HMI/US/portrait/n2t-out/Program.s.txt
+1 +12,11 @@
@@ -1245,23 +1245,6 @@
+ Scope : local
+ Dragging : 0
+ Send Component ID : disabled
+15 +135,15 @@
+
+ersion
+ributes
+ Scope : local
+ Dragging : 0
+ Send Component ID : disabled
+ Associated Keyboard: none
+ Text : 52
+ Text : 51
+ Max. Text Size : 10
+
+ p0
+ributes
+ Scope : local
+ Dragging : 0
+ Send Component ID: disabled
+15 +158,15 @@
+ Max. Text Size : 10
+20 +269,14 @@
@@ -1321,6 +1304,23 @@
+e (string) entn
+ributes
+ Scope : local
+15 +631,15 @@
+ }
+ if(tId.txt=="cardGrid")
+ {
+ page cardGrid
+ }
+ if(tId.txt=="cardGrid2")
+ {
+ page cardGrid2
+ page cardGrid
+ }
+ if(tId.txt=="popupLight")
+ {
+ pageIcons.tTmp1.txt=tTmp.txt
+ page popupLight
+ }
+ if(tId.txt=="popupShutter")
+I/n2t-out/popupNotify.txt
++ HMI/US/portrait/n2t-out/popupNotify.txt
+19 +295,14 @@
@@ -1419,6 +1419,36 @@
+ spstr strCommand.txt,tTmp.txt,"~",1
+ covx tTmp.txt,tTime.bco,0,0
+ if(tTime.bco!=screensaver.bco)
+29 +673,14 @@
+ }
+ spstr strCommand.txt,tTmp.txt,"~",4
+ if(tTmp.txt!="")
+ {
+ covx tTmp.txt,tNotifyText.pco,0,0
+ }
+ }
+ if(tInstruction.txt=="getBrightness")
+ {
+ tSend.txt="event,getBrightnessResponse,"
+ //send calc crc
+ btlen tSend.txt,sys0
+ crcrest 1,0xffff // reset CRC
+ crcputh 55 bb
+ crcputs sys0,2
+ crcputs dim,0
+ //send cmd
+ printh 55 bb
+ prints sys0,2
+ prints tSend.txt,0
+ prints crcval,2
+ }
+ if(tInstruction.txt=="pageType")
+ {
+ dim=100
+ //command format pageType,specialPageName
+ //write name of speical page to tId
+ spstr strCommand.txt,tId.txt,"~",1
+ //save second arg if there's one
+I/n2t-out/screensaver2.txt
++ HMI/US/portrait/n2t-out/screensaver2.txt
+7 +28,14 @@

View File

@@ -22,10 +22,10 @@ popupTimer
42 Component(s)
516 Line(s) of event code
257 Unique line(s) of event code
popupLight
28 Component(s)
408 Line(s) of event code
225 Unique line(s) of event code
pageStartup
19 Component(s)
193 Line(s) of event code
135 Unique line(s) of event code
popupFan
27 Component(s)
355 Line(s) of event code
@@ -34,10 +34,6 @@ popupLightNew
23 Component(s)
412 Line(s) of event code
209 Unique line(s) of event code
pageStartup
19 Component(s)
193 Line(s) of event code
135 Unique line(s) of event code
cardChart
33 Component(s)
437 Line(s) of event code
@@ -50,6 +46,10 @@ cardLChart
33 Component(s)
402 Line(s) of event code
266 Unique line(s) of event code
popupLight
28 Component(s)
412 Line(s) of event code
226 Unique line(s) of event code
popupShutter
25 Component(s)
402 Line(s) of event code
@@ -98,5 +98,5 @@ cardEntities
Total
23 Page(s)
890 Component(s)
10819 Line(s) of event code
10823 Line(s) of event code
2527 Unique line(s) of event code

View File

@@ -389,7 +389,7 @@ Text tVersion
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text : 51
Text : 52
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0

View File

@@ -982,6 +982,10 @@ Timer tmSerial
{
page cardGrid
}
if(tId.txt=="cardGrid2")
{
page cardGrid
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt

View File

@@ -139,7 +139,7 @@ Text tVersion
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 51
Text : 52
Max. Text Size : 10
Picture p0

View File

@@ -633,6 +633,10 @@ Timer tmSerial
{
page cardGrid
}
if(tId.txt=="cardGrid2")
{
page cardGrid
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt