mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-01-22 14:14:11 +01:00
61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
--- HMI/n2t-out
|
|
+++ HMI/US/landscape/n2t-out
|
|
├── Program.s.txt
|
|
│ @@ -10,10 +10,7 @@
|
|
│ int sleepValue=0
|
|
│ // dim value
|
|
│ int dimValue=40
|
|
│ int dimValueNormal=100
|
|
│ //color vars
|
|
│ int defaultFontColor=65535
|
|
│ int defaultBcoColor=6371
|
|
│ - // fix touch offset
|
|
│ - lcd_dev fffb 0002 0000 0020
|
|
│ - page pageStartup
|
|
├── cardPower.txt
|
|
│ @@ -42,22 +42,19 @@
|
|
│ for(sys0=0;sys0<43;sys0++)
|
|
│ {
|
|
│ if(b[sys0].type==98||b[sys0].type==116)
|
|
│ {
|
|
│ b[sys0].bco=defaultBcoColor
|
|
│ b[sys0].pco=defaultFontColor
|
|
│ }
|
|
│ - if(defaultBcoColor==0)
|
|
│ + if(b[sys0].type==1)
|
|
│ {
|
|
│ - if(b[sys0].type==1)
|
|
│ - {
|
|
│ - b[sys0].pic=19
|
|
│ - b[sys0].pic1=19
|
|
│ - b[sys0].pic2=15
|
|
│ - }
|
|
│ + b[sys0].pic=19
|
|
│ + b[sys0].pic1=19
|
|
│ + b[sys0].pic2=15
|
|
│ }
|
|
│ }
|
|
│
|
|
│ Variable (string) strCommand
|
|
│ Attributes
|
|
│ Scope : local
|
|
│ Text :
|
|
├── pageStartup.txt
|
|
│ @@ -173,15 +173,15 @@
|
|
│ Max. Text Size : 10
|
|
│
|
|
│ Events
|
|
│ Touch Press Event
|
|
│ recmod=1
|
|
│ bauds=115200
|
|
│ // startup event
|
|
│ - tSend.txt="event,startup,"+tVersion.txt+",eu"
|
|
│ + tSend.txt="event,startup,"+tVersion.txt+",us-l"
|
|
│ //send calc crc
|
|
│ btlen tSend.txt,sys0
|
|
│ crcrest 1,0xffff // reset CRC
|
|
│ crcputh 55 bb
|
|
│ crcputs sys0,2
|
|
│ crcputs tSend.txt,0
|
|
│ //send cmd
|