mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 23:14:25 +01:00
Compare commits
122 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ded43948c | ||
|
|
9fdf1c3730 | ||
|
|
5903e862a4 | ||
|
|
e0d3c5510a | ||
|
|
d701d76bfc | ||
|
|
9675a565be | ||
|
|
237aac20e3 | ||
|
|
264eae70ab | ||
|
|
23f8901878 | ||
|
|
45d2a7659a | ||
|
|
6a78c6c869 | ||
|
|
5708b4f75a | ||
|
|
cfdc26ad6c | ||
|
|
1029ebb0a7 | ||
|
|
623f95a89d | ||
|
|
898dadf50c | ||
|
|
ee6da21914 | ||
|
|
9012a6bc58 | ||
|
|
73f00522f8 | ||
|
|
3344e18efc | ||
|
|
b43ed38d4c | ||
|
|
f0b02a3d4d | ||
|
|
63508f947c | ||
|
|
81e008b37d | ||
|
|
a3da26057c | ||
|
|
5ef5823cb4 | ||
|
|
11b29d5cdf | ||
|
|
c06fd3ace0 | ||
|
|
ca07494161 | ||
|
|
f87a2e8b2c | ||
|
|
a02e25d551 | ||
|
|
eeb49e4dfa | ||
|
|
84b62c7484 | ||
|
|
ee6bc988d0 | ||
|
|
f712b55111 | ||
|
|
e6f2894172 | ||
|
|
fad845f2a7 | ||
|
|
a72a384781 | ||
|
|
b97e9d6add | ||
|
|
bde4b06865 | ||
|
|
857824d54b | ||
|
|
3b3f9fc95f | ||
|
|
a5929b284e | ||
|
|
e45be4494d | ||
|
|
4ad71b330e | ||
|
|
827976fec8 | ||
|
|
5012f03e59 | ||
|
|
41c831cb97 | ||
|
|
4c108563b2 | ||
|
|
e366668075 | ||
|
|
24fcea59a9 | ||
|
|
678fa627f8 | ||
|
|
eb48b29933 | ||
|
|
f743c3af10 | ||
|
|
52f5dc54dc | ||
|
|
5bafbfe6d3 | ||
|
|
7020312e6c | ||
|
|
8ca33dcb9d | ||
|
|
f18546a036 | ||
|
|
51c25100f6 | ||
|
|
0950a7b694 | ||
|
|
7dc7b9a456 | ||
|
|
e47c72cecf | ||
|
|
ae046a9d18 | ||
|
|
c5ab62ba66 | ||
|
|
348521cb29 | ||
|
|
ade7308d61 | ||
|
|
3d8d28a220 | ||
|
|
6691495745 | ||
|
|
deb61405fe | ||
|
|
45048d3c29 | ||
|
|
828eacd9e1 | ||
|
|
9712491e2a | ||
|
|
b9d618db9b | ||
|
|
657299bf28 | ||
|
|
ea1b40f694 | ||
|
|
7741695224 | ||
|
|
6c117c7891 | ||
|
|
8c3257cd07 | ||
|
|
5d191f32bd | ||
|
|
2f055f83f3 | ||
|
|
d6cfa22c92 | ||
|
|
2baf2f5b7a | ||
|
|
74e69493b9 | ||
|
|
17e0d79297 | ||
|
|
c00cd5f4bc | ||
|
|
80f61ea9d1 | ||
|
|
00b604711a | ||
|
|
849ebf075f | ||
|
|
63aaa79f54 | ||
|
|
2ab31c423e | ||
|
|
dbf7326579 | ||
|
|
6821ff8862 | ||
|
|
a59f8d6d83 | ||
|
|
abdd310ad2 | ||
|
|
459f060d51 | ||
|
|
5638308a20 | ||
|
|
5557ae979b | ||
|
|
5674e5b760 | ||
|
|
8f9db2ef72 | ||
|
|
fa30599c48 | ||
|
|
3aff714fa3 | ||
|
|
20f594401f | ||
|
|
12ba4941df | ||
|
|
a538a860fa | ||
|
|
d7859ca632 | ||
|
|
c7deed2dae | ||
|
|
e8f0f227bd | ||
|
|
cf378026b2 | ||
|
|
5d8301d1dc | ||
|
|
cd1fecd9f2 | ||
|
|
673f4c20da | ||
|
|
b891eae5e0 | ||
|
|
88e20b5c36 | ||
|
|
5b4064ced4 | ||
|
|
a2bcd33b6a | ||
|
|
d70eb22738 | ||
|
|
4c5beeea91 | ||
|
|
5d34598040 | ||
|
|
b8488d27be | ||
|
|
d82febbd46 | ||
|
|
674131167c |
5
.github/ISSUE_TEMPLATE/bug_report.md
vendored
5
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -28,13 +28,13 @@ _A clear and concise description of what the problem is._
|
|||||||
### REQUESTED INFORMATION
|
### REQUESTED INFORMATION
|
||||||
_Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!_
|
_Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!_
|
||||||
|
|
||||||
- [ ] Provide your apps.yaml:
|
- [ ] Provide your apps.yaml (or your config):
|
||||||
```
|
```
|
||||||
apps.yaml here:
|
apps.yaml here:
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
- [ ] Go to Settings>Add-ons>AppDaemon>Log and then, provide the output of the log during your issue/bug occurs:
|
- [ ] Go to Settings>Add-ons>AppDaemon>Log (or the output of your TS script) and then, provide the output of the log during your issue/bug occurs:
|
||||||
```
|
```
|
||||||
Log output here:
|
Log output here:
|
||||||
|
|
||||||
@@ -55,6 +55,7 @@ _If applicable, add screenshots/pictures to help explain your problem._
|
|||||||
|
|
||||||
### ADDITIONAL CONTEXT
|
### ADDITIONAL CONTEXT
|
||||||
_Add any other context about the problem here._
|
_Add any other context about the problem here._
|
||||||
|
_Please note here in case you are using ioBroker_
|
||||||
|
|
||||||
### PANEL / FIRMWARE VERION
|
### PANEL / FIRMWARE VERION
|
||||||
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
|
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
|
||||||
|
|||||||
12
.github/workflows/nextion2text.yml
vendored
12
.github/workflows/nextion2text.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- name: Download n2t
|
- name: Download n2t
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
wget https://raw.githubusercontent.com/joBr99/Nextion2Text/master/linux/Nextion2Text.py
|
wget https://raw.githubusercontent.com/joBr99/Nextion2Text/master/linux/Nextion2Text.py && sudo apt update && sudo apt install -y diffoscope
|
||||||
|
|
||||||
- name: Run n2t EU
|
- name: Run n2t EU
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
@@ -56,20 +56,22 @@ jobs:
|
|||||||
|
|
||||||
echo portrait
|
echo portrait
|
||||||
python Nextion2Text.py -c ignore-id.py -p font -d -i HMI/US/portrait/nspanel_US_P.HMI -o HMI/US/portrait/n2t-out
|
python Nextion2Text.py -c ignore-id.py -p font -d -i HMI/US/portrait/nspanel_US_P.HMI -o HMI/US/portrait/n2t-out
|
||||||
diff -bur HMI/n2t-out HMI/US/portrait/n2t-out > HMI/US/portrait/diff-eu-version.txt
|
diffoscope --exclude=pageTest.txt --exclude-directory-metadata=recursive HMI/n2t-out HMI/US/portrait/n2t-out > HMI/US/portrait/diff-eu-version.txt
|
||||||
|
#diff -bur HMI/n2t-out HMI/US/portrait/n2t-out > HMI/US/portrait/diff-eu-version.txt
|
||||||
|
|
||||||
- name: Run n2t US P DIFF DIFF
|
- name: Run n2t US P DIFF DIFF
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
diff -u HMI/US/portrait/diff-eu-version-known-good.txt HMI/US/portrait/diff-eu-version.txt | grep -E "^\+" > HMI/US/portrait/diff-filtered.txt
|
diff -u <(cut -b13- HMI/US/portrait/diff-eu-version-known-good.txt) <(cut -b13- HMI/US/portrait/diff-eu-version.txt) | grep -E "^\+" > HMI/US/portrait/diff-filtered.txt
|
||||||
|
#diff -u HMI/US/portrait/diff-eu-version-known-good.txt | grep -E "^\+" > HMI/US/portrait/diff-filtered.txt
|
||||||
|
|
||||||
- name: Run n2t US L DIFF
|
- name: Run n2t US L DIFF
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
echo landscape
|
echo landscape
|
||||||
python Nextion2Text.py -c ignore-id.py -p font -d -i HMI/US/landscape/nspanel_US_L.HMI -o HMI/US/landscape/n2t-out
|
python Nextion2Text.py -c ignore-id.py -p font -d -i HMI/US/landscape/nspanel_US_L.HMI -o HMI/US/landscape/n2t-out
|
||||||
diff -bur HMI/n2t-out HMI/US/landscape/n2t-out > HMI/US/landscape/diff-eu-version.txt
|
#diff -bur HMI/n2t-out HMI/US/landscape/n2t-out > HMI/US/landscape/diff-eu-version.txt
|
||||||
|
diffoscope --exclude=pageTest.txt --exclude-directory-metadata=recursive HMI/n2t-out HMI/US/landscape/n2t-out > HMI/US/landscape/diff-eu-version.txt
|
||||||
|
|
||||||
- name: Display txt files
|
- name: Display txt files
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ The following message can be used to update the content on the cardEntities Page
|
|||||||
|
|
||||||
### popupLight Page
|
### popupLight Page
|
||||||
|
|
||||||
`entityUpdateDetail~entityName~*iconId*~*iconColor*~*buttonState*~*sliderBrightnessPos*~*sliderColorTempPos*~*colorMode*~*color_translation*~*color_temp_translation*~*brightness_translation*`
|
`entityUpdateDetail~entityName~*ignored*~*iconColor*~*buttonState*~*sliderBrightnessPos*~*sliderColorTempPos*~*colorMode*~*color_translation*~*color_temp_translation*~*brightness_translation*`
|
||||||
|
|
||||||
`entityUpdateDetail~1~17299~1~100~78~enable`
|
`entityUpdateDetail~1~17299~1~100~78~enable`
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ The following message can be used to update the content on the cardEntities Page
|
|||||||
|
|
||||||
### popupNotify Page
|
### popupNotify Page
|
||||||
|
|
||||||
`entityUpdateDetail~*internalName*~*tHeading*~*tHeadingColor*~*b1*~*tB1Color*~*b2*~*tB2Color*~*tText*~*tTextColor*~*sleepTimeout*`
|
`entityUpdateDetail~*internalName*~*tHeading*~*tHeadingColor*~*b1*~*tB1Color*~*b2*~*tB2Color*~*tText*~*tTextColor*~*sleepTimeout*~*font*~*alt_icon*~*altIconColor*`
|
||||||
|
|
||||||
`exitPopup`
|
`exitPopup`
|
||||||
|
|
||||||
@@ -140,7 +140,13 @@ tIconBtnEntityName is the entiy name used in the button event for pressing the u
|
|||||||
|
|
||||||
### cardQR Page
|
### cardQR Page
|
||||||
|
|
||||||
`entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2`
|
`entityUpd~heading~navigation~textQR[~type~internalName~iconId~displayName~optionalValue]x2`
|
||||||
|
|
||||||
|
### cardPower Page
|
||||||
|
|
||||||
|
`entityUpd~heading~navigation~colorHome~iconHome~textHome[~iconColor~icon~speed~valueDown]x6`
|
||||||
|
|
||||||
|
`entityUpd~test~1|1~6666~A~hu~8888~B~1~t0u~9999~C~2~t1u~1111~D~3~t2u~33333~E~-1~t3u~3333~F~-2~t4u~4444~G~-3~t5u`
|
||||||
|
|
||||||
## Messages from Nextion Display
|
## Messages from Nextion Display
|
||||||
|
|
||||||
@@ -223,13 +229,6 @@ tIconBtnEntityName is the entiy name used in the button event for pressing the u
|
|||||||
`event,buttonPress2,internalNameEntity,actionName,code`
|
`event,buttonPress2,internalNameEntity,actionName,code`
|
||||||
|
|
||||||
|
|
||||||
### cardPower Page
|
|
||||||
|
|
||||||
`entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
|
|
||||||
|
|
||||||
`"entityUpd~test~1|1~6666~A~8888~B~1~t0o~t0u~9999~C~2~t1o~t1u~1111~D~3~t2o~t2u~33333~E~-1~t3o~t3u~3333~F~-2~t4o~t4u~4444~G~-3~t5o~t5u`
|
|
||||||
|
|
||||||
|
|
||||||
# Design Guidelines for Nextion HMI Project
|
# Design Guidelines for Nextion HMI Project
|
||||||
|
|
||||||
Background Color is
|
Background Color is
|
||||||
|
|||||||
@@ -1,160 +1,130 @@
|
|||||||
diff -bur HMI/n2t-out/Program.s.txt HMI/US/landscape/n2t-out/Program.s.txt
|
--- HMI/n2t-out
|
||||||
--- HMI/n2t-out/Program.s.txt 2022-09-15 18:53:18.301002047 +0000
|
+++ HMI/US/landscape/n2t-out
|
||||||
+++ HMI/US/landscape/n2t-out/Program.s.txt 2022-09-15 18:53:19.233011610 +0000
|
├── file list
|
||||||
@@ -14,6 +14,3 @@
|
│ @@ -9,9 +9,8 @@
|
||||||
//color vars
|
│ pageIcons.txt
|
||||||
int defaultFontColor=65535
|
│ pageStartup.txt
|
||||||
int defaultBcoColor=6371
|
│ pageTest.txt
|
||||||
- // fix touch offset
|
│ popupFan.txt
|
||||||
- lcd_dev fffb 0002 0000 0020
|
│ popupLight.txt
|
||||||
- page pageStartup
|
│ popupNotify.txt
|
||||||
Only in HMI/n2t-out: cardPower.txt
|
│ popupShutter.txt
|
||||||
diff -bur HMI/n2t-out/pageStartup.txt HMI/US/landscape/n2t-out/pageStartup.txt
|
│ -popupThermo.txt
|
||||||
--- HMI/n2t-out/pageStartup.txt 2022-09-15 18:53:18.301002047 +0000
|
│ screensaver.txt
|
||||||
+++ HMI/US/landscape/n2t-out/pageStartup.txt 2022-09-15 18:53:19.233011610 +0000
|
├── Program.s.txt
|
||||||
@@ -177,7 +177,7 @@
|
│ @@ -10,10 +10,7 @@
|
||||||
recmod=1
|
│ int sleepValue=0
|
||||||
bauds=115200
|
│ // dim value
|
||||||
// startup event
|
│ int dimValue=40
|
||||||
- tSend.txt="event,startup,"+tVersion.txt+",eu"
|
│ int dimValueNormal=100
|
||||||
+ tSend.txt="event,startup,"+tVersion.txt+",us-l"
|
│ //color vars
|
||||||
//send calc crc
|
│ int defaultFontColor=65535
|
||||||
btlen tSend.txt,sys0
|
│ int defaultBcoColor=6371
|
||||||
crcrest 1,0xffff // reset CRC
|
│ - // fix touch offset
|
||||||
diff -bur HMI/n2t-out/pageTest.txt HMI/US/landscape/n2t-out/pageTest.txt
|
│ - lcd_dev fffb 0002 0000 0020
|
||||||
--- HMI/n2t-out/pageTest.txt 2022-09-15 18:53:18.301002047 +0000
|
│ - page pageStartup
|
||||||
+++ HMI/US/landscape/n2t-out/pageTest.txt 2022-09-15 18:53:19.233011610 +0000
|
├── cardPower.txt
|
||||||
@@ -13,36 +13,6 @@
|
│ @@ -42,22 +42,19 @@
|
||||||
Events
|
│ for(sys0=0;sys0<43;sys0++)
|
||||||
Preinitialize Event
|
│ {
|
||||||
vis p0,0
|
│ if(b[sys0].type==98||b[sys0].type==116)
|
||||||
- recmod=1
|
│ {
|
||||||
- bauds=115200
|
│ b[sys0].bco=defaultBcoColor
|
||||||
-
|
│ b[sys0].pco=defaultFontColor
|
||||||
-Variable (string) tInstruction
|
│ }
|
||||||
- Attributes
|
│ - if(defaultBcoColor==0)
|
||||||
- Scope : local
|
│ + if(b[sys0].type==1)
|
||||||
- Text :
|
│ {
|
||||||
- Max. Text Size: 30
|
│ - if(b[sys0].type==1)
|
||||||
-
|
│ - {
|
||||||
-Variable (string) strCommand
|
│ - b[sys0].pic=19
|
||||||
- Attributes
|
│ - b[sys0].pic1=19
|
||||||
- Scope : local
|
│ - b[sys0].pic2=15
|
||||||
- Text :
|
│ - }
|
||||||
- Max. Text Size: 20
|
│ + b[sys0].pic=19
|
||||||
-
|
│ + b[sys0].pic1=19
|
||||||
-Variable (string) tSend
|
│ + b[sys0].pic2=15
|
||||||
- Attributes
|
│ }
|
||||||
- Scope : local
|
│ }
|
||||||
- Text :
|
│
|
||||||
- Max. Text Size: 40
|
│ Variable (string) strCommand
|
||||||
-
|
│ Attributes
|
||||||
-Text tBench
|
│ Scope : local
|
||||||
- Attributes
|
│ Text :
|
||||||
- Scope : local
|
├── cardThermo.txt
|
||||||
- Dragging : 0
|
│ @@ -779,30 +779,14 @@
|
||||||
- Disable release event after dragging: 0
|
│ crcputs tSend.txt,0
|
||||||
- Send Component ID : disabled
|
│ //send cmd
|
||||||
- Associated Keyboard : none
|
│ printh 55 bb
|
||||||
- Text :
|
│ prints sys0,2
|
||||||
- Max. Text Size : 20
|
│ prints tSend.txt,0
|
||||||
|
│ prints crcval,2
|
||||||
Picture p0
|
│
|
||||||
Attributes
|
│ -Dual-state Button btDetail
|
||||||
@@ -220,96 +190,3 @@
|
│ - Attributes
|
||||||
Touch Press Event
|
│ - Scope : local
|
||||||
page cardQR
|
│ - Dragging : 0
|
||||||
|
│ - Disable release event after dragging: 0
|
||||||
-Button b12
|
│ - Send Component ID : disabled
|
||||||
- Attributes
|
│ - State : pressed
|
||||||
- Scope : local
|
│ - Text : î
|
||||||
- Dragging : 0
|
│ - Max. Text Size : 10
|
||||||
- Disable release event after dragging: 0
|
│ -
|
||||||
- Send Component ID : disabled
|
│ - Events
|
||||||
- State : unpressed
|
│ - Touch Press Event
|
||||||
- Text : power
|
│ - pageIcons.tTmp1.txt=tHeading.txt
|
||||||
- Max. Text Size : 10
|
│ - pageIcons.tTmp2.txt=entn.txt
|
||||||
-
|
│ - page popupThermo
|
||||||
- Events
|
│ -
|
||||||
- Touch Press Event
|
│ Hotspot mSwipeNext
|
||||||
- page cardPower
|
│ Attributes
|
||||||
-
|
│ Scope : local
|
||||||
-Timer tmSerial
|
│ Dragging : 0
|
||||||
- Attributes
|
│ Disable release event after dragging: 0
|
||||||
- Scope : local
|
│ Send Component ID : disabled
|
||||||
- Period (ms): 50
|
├── pageStartup.txt
|
||||||
- Enabled : yes
|
│ @@ -173,15 +173,15 @@
|
||||||
-
|
│ Max. Text Size : 10
|
||||||
- Events
|
│
|
||||||
- Timer Event
|
│ Events
|
||||||
- // data available
|
│ Touch Press Event
|
||||||
- if(usize>1)
|
│ recmod=1
|
||||||
- {
|
│ bauds=115200
|
||||||
- bufferPos=0
|
│ // startup event
|
||||||
- while(bufferPos<usize)
|
│ - tSend.txt="event,startup,"+tVersion.txt+",eu"
|
||||||
- {
|
│ + tSend.txt="event,startup,"+tVersion.txt+",us-l"
|
||||||
- // check for 0x55 0xBB - Command Init Secuence
|
│ //send calc crc
|
||||||
- if(u[bufferPos]==187&&u[bufferPos-1]==85)
|
│ btlen tSend.txt,sys0
|
||||||
- {
|
│ crcrest 1,0xffff // reset CRC
|
||||||
- //remove garbage at the start of the buffer if there's any to free buffer for command
|
│ crcputh 55 bb
|
||||||
- if(u[bufferPos]!=1)
|
│ crcputs sys0,2
|
||||||
- {
|
│ crcputs tSend.txt,0
|
||||||
- udelete bufferPos-1
|
│ //send cmd
|
||||||
- }
|
├── screensaver.txt
|
||||||
- //instruction is now aligned with buffer, because we deleted garbage before instrcution
|
│ @@ -620,26 +620,14 @@
|
||||||
- //get length after init sequence (check if there are more than to bytes in buffer)
|
│ vis tNotifyHead,1
|
||||||
- if(3<usize)
|
│ vis tNotifyText,1
|
||||||
- {
|
│ }else
|
||||||
- // check if serial buffer has reached the announced length
|
│ {
|
||||||
- ucopy payloadLength,2,2,0
|
│ vis tNotifyHead,0
|
||||||
- // we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
|
│ vis tNotifyText,0
|
||||||
- payloadLength+=3
|
│ }
|
||||||
- // payload length does also not contain crc, so we are adding another 2 bytes for crc
|
│ - tNotifyHead.bco=tTime.bco
|
||||||
- payloadLength+=2
|
│ - tNotifyText.bco=tTime.bco
|
||||||
- if(payloadLength<usize)
|
│ - spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
- {
|
│ - if(tTmp.txt!="")
|
||||||
- // calculate crc
|
│ - {
|
||||||
- crcrest 1,0xFFFF
|
│ - covx tTmp.txt,tNotifyHead.pco,0,0
|
||||||
- // u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
|
│ - }
|
||||||
- //crcputu 3,u[2]
|
│ - spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
- // u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
|
│ - if(tTmp.txt!="")
|
||||||
- crcputu 0,payloadLength-1
|
│ - {
|
||||||
- // get recived crc to be able to compare it
|
│ - covx tTmp.txt,tNotifyText.pco,0,0
|
||||||
- ucopy recvCrc,payloadLength-1,2,0
|
│ - }
|
||||||
- // compare crc with recived value
|
│ }
|
||||||
- if(crcval==recvCrc)
|
│ if(tInstruction.txt=="pageType")
|
||||||
- {
|
│ {
|
||||||
- // crc is okay
|
│ dim=100
|
||||||
- // here is the location where acual code should be
|
│ //command format pageType,specialPageName
|
||||||
- // write command to variable strCommand
|
│ //write name of speical page to tId
|
||||||
- ucopy strCommand.txt,4,payloadLength-5,0
|
│ spstr strCommand.txt,tId.txt,"~",1
|
||||||
- // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
|
||||||
- spstr strCommand.txt,tInstruction.txt,"~",0
|
|
||||||
- if(tInstruction.txt=="ping")
|
|
||||||
- {
|
|
||||||
- spstr strCommand.txt,tBench.txt,"~",1
|
|
||||||
- tSend.txt="pong,"+tBench.txt
|
|
||||||
- //send calc crc
|
|
||||||
- btlen tSend.txt,sys0
|
|
||||||
- crcrest 1,0xffff // reset CRC
|
|
||||||
- crcputh 55 bb
|
|
||||||
- crcputs sys0,2
|
|
||||||
- crcputs tSend.txt,0
|
|
||||||
- //send cmd
|
|
||||||
- printh 55 bb
|
|
||||||
- prints sys0,2
|
|
||||||
- prints tSend.txt,0
|
|
||||||
- prints crcval,2
|
|
||||||
- }
|
|
||||||
- // end of user code
|
|
||||||
- udelete payloadLength-1
|
|
||||||
- bufferPos=0
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
- // next character
|
|
||||||
- bufferPos++
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
|
|||||||
@@ -1370,6 +1370,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1419,6 +1420,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -1507,9 +1507,9 @@ Button bText1
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 276
|
x coordinate : 276
|
||||||
y coordinate : 84
|
y coordinate : 75
|
||||||
Width : 166
|
Width : 166
|
||||||
Height : 30
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1525,8 +1525,8 @@ Button bText1
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1554,9 +1554,9 @@ Button bText2
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 276
|
x coordinate : 276
|
||||||
y coordinate : 140
|
y coordinate : 131
|
||||||
Width : 166
|
Width : 166
|
||||||
Height : 30
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1572,8 +1572,8 @@ Button bText2
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1601,9 +1601,9 @@ Button bText3
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 277
|
x coordinate : 277
|
||||||
y coordinate : 197
|
y coordinate : 188
|
||||||
Width : 166
|
Width : 166
|
||||||
Height : 30
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1619,8 +1619,8 @@ Button bText3
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1648,9 +1648,9 @@ Button bText4
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 277
|
x coordinate : 277
|
||||||
y coordinate : 254
|
y coordinate : 245
|
||||||
Width : 166
|
Width : 166
|
||||||
Height : 30
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1666,8 +1666,8 @@ Button bText4
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1912,6 +1912,7 @@ Hotspot m2
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity3.txt
|
//popupShutter.tHeading.txt=tEntity3.txt
|
||||||
@@ -1947,6 +1948,7 @@ Hotspot m1
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity2.txt
|
//popupShutter.tHeading.txt=tEntity2.txt
|
||||||
@@ -1982,6 +1984,7 @@ Hotspot m0
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity1.txt
|
//popupShutter.tHeading.txt=tEntity1.txt
|
||||||
@@ -2017,6 +2020,7 @@ Hotspot m3
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity4.txt
|
//popupShutter.tHeading.txt=tEntity4.txt
|
||||||
@@ -2790,6 +2794,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -2839,6 +2844,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -608,6 +608,7 @@ Button bEntity1
|
|||||||
tTmp.txt=type1.txt
|
tTmp.txt=type1.txt
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -666,6 +667,7 @@ Button bEntity2
|
|||||||
tTmp.txt=type2.txt
|
tTmp.txt=type2.txt
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -724,6 +726,7 @@ Button bEntity3
|
|||||||
tTmp.txt=type3.txt
|
tTmp.txt=type3.txt
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -782,6 +785,7 @@ Button bEntity4
|
|||||||
tTmp.txt=type4.txt
|
tTmp.txt=type4.txt
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -840,6 +844,7 @@ Button bEntity5
|
|||||||
tTmp.txt=type5.txt
|
tTmp.txt=type5.txt
|
||||||
pageIcons.tTmp1.txt=tEntity5.txt
|
pageIcons.tTmp1.txt=tEntity5.txt
|
||||||
pageIcons.tTmp2.txt=entn5.txt
|
pageIcons.tTmp2.txt=entn5.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity5.txt
|
||||||
if(type5.txt=="shutter")
|
if(type5.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -898,6 +903,7 @@ Button bEntity6
|
|||||||
tTmp.txt=type6.txt
|
tTmp.txt=type6.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity6.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn6.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity6.txt
|
||||||
if(type6.txt=="shutter")
|
if(type6.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -1232,6 +1238,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1281,6 +1288,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1137,6 +1137,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1186,6 +1187,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
1378
HMI/US/landscape/n2t-out-visual/cardPower.txt
Normal file
1378
HMI/US/landscape/n2t-out-visual/cardPower.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -956,6 +956,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1005,6 +1006,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -1791,6 +1791,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1840,6 +1841,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,64 +3,68 @@ Program.s
|
|||||||
11 Line(s) of event code
|
11 Line(s) of event code
|
||||||
11 Unique line(s) of event code
|
11 Unique line(s) of event code
|
||||||
pageIcons
|
pageIcons
|
||||||
6 Component(s)
|
7 Component(s)
|
||||||
0 Line(s) of event code
|
0 Line(s) of event code
|
||||||
0 Unique line(s) of event code
|
0 Unique line(s) of event code
|
||||||
popupNotify
|
|
||||||
17 Component(s)
|
|
||||||
226 Line(s) of event code
|
|
||||||
143 Unique line(s) of event code
|
|
||||||
pageStartup
|
pageStartup
|
||||||
19 Component(s)
|
19 Component(s)
|
||||||
167 Line(s) of event code
|
172 Line(s) of event code
|
||||||
122 Unique line(s) of event code
|
125 Unique line(s) of event code
|
||||||
popupShutter
|
popupNotify
|
||||||
25 Component(s)
|
19 Component(s)
|
||||||
388 Line(s) of event code
|
253 Line(s) of event code
|
||||||
211 Unique line(s) of event code
|
164 Unique line(s) of event code
|
||||||
cardMedia
|
cardMedia
|
||||||
34 Component(s)
|
34 Component(s)
|
||||||
389 Line(s) of event code
|
394 Line(s) of event code
|
||||||
210 Unique line(s) of event code
|
213 Unique line(s) of event code
|
||||||
popupFan
|
popupFan
|
||||||
27 Component(s)
|
27 Component(s)
|
||||||
342 Line(s) of event code
|
347 Line(s) of event code
|
||||||
199 Unique line(s) of event code
|
202 Unique line(s) of event code
|
||||||
cardQR
|
|
||||||
32 Component(s)
|
|
||||||
404 Line(s) of event code
|
|
||||||
235 Unique line(s) of event code
|
|
||||||
popupLight
|
popupLight
|
||||||
27 Component(s)
|
27 Component(s)
|
||||||
386 Line(s) of event code
|
391 Line(s) of event code
|
||||||
211 Unique line(s) of event code
|
214 Unique line(s) of event code
|
||||||
|
popupShutter
|
||||||
|
25 Component(s)
|
||||||
|
394 Line(s) of event code
|
||||||
|
216 Unique line(s) of event code
|
||||||
pageTest
|
pageTest
|
||||||
14 Component(s)
|
14 Component(s)
|
||||||
14 Line(s) of event code
|
14 Line(s) of event code
|
||||||
14 Unique line(s) of event code
|
14 Unique line(s) of event code
|
||||||
screensaver
|
|
||||||
38 Component(s)
|
|
||||||
341 Line(s) of event code
|
|
||||||
263 Unique line(s) of event code
|
|
||||||
cardThermo
|
|
||||||
52 Component(s)
|
|
||||||
580 Line(s) of event code
|
|
||||||
303 Unique line(s) of event code
|
|
||||||
cardGrid
|
cardGrid
|
||||||
42 Component(s)
|
42 Component(s)
|
||||||
463 Line(s) of event code
|
474 Line(s) of event code
|
||||||
272 Unique line(s) of event code
|
281 Unique line(s) of event code
|
||||||
cardEntities
|
|
||||||
65 Component(s)
|
|
||||||
1128 Line(s) of event code
|
|
||||||
515 Unique line(s) of event code
|
|
||||||
cardAlarm
|
cardAlarm
|
||||||
40 Component(s)
|
40 Component(s)
|
||||||
422 Line(s) of event code
|
427 Line(s) of event code
|
||||||
255 Unique line(s) of event code
|
258 Unique line(s) of event code
|
||||||
|
cardPower
|
||||||
|
43 Component(s)
|
||||||
|
420 Line(s) of event code
|
||||||
|
292 Unique line(s) of event code
|
||||||
|
cardQR
|
||||||
|
32 Component(s)
|
||||||
|
409 Line(s) of event code
|
||||||
|
238 Unique line(s) of event code
|
||||||
|
screensaver
|
||||||
|
38 Component(s)
|
||||||
|
338 Line(s) of event code
|
||||||
|
262 Unique line(s) of event code
|
||||||
|
cardThermo
|
||||||
|
52 Component(s)
|
||||||
|
585 Line(s) of event code
|
||||||
|
306 Unique line(s) of event code
|
||||||
|
cardEntities
|
||||||
|
65 Component(s)
|
||||||
|
1137 Line(s) of event code
|
||||||
|
522 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
14 Page(s)
|
15 Page(s)
|
||||||
438 Component(s)
|
484 Component(s)
|
||||||
5261 Line(s) of event code
|
5766 Line(s) of event code
|
||||||
1405 Unique line(s) of event code
|
1561 Unique line(s) of event code
|
||||||
|
|||||||
@@ -92,6 +92,36 @@ Text tTmp2
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tTmp3
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope : global
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 302
|
||||||
|
y coordinate : 152
|
||||||
|
Width : 146
|
||||||
|
Height : 69
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 1
|
||||||
|
Back. Color : 65535
|
||||||
|
Font Color : 0
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ Text tVersion
|
|||||||
Horizontal Alignment : center
|
Horizontal Alignment : center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : 42
|
Text : 43
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
@@ -601,6 +601,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -645,6 +646,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Page popupFan
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -758,7 +759,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -868,6 +869,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -917,6 +919,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Page popupLight
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -793,7 +794,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -940,6 +941,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -989,6 +991,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -33,11 +33,17 @@ Page popupNotify
|
|||||||
tText.bco=defaultBcoColor
|
tText.bco=defaultBcoColor
|
||||||
b1.bco=defaultBcoColor
|
b1.bco=defaultBcoColor
|
||||||
b2.bco=defaultBcoColor
|
b2.bco=defaultBcoColor
|
||||||
|
tIcon.bco=defaultBcoColor
|
||||||
|
tTextAlt.bco=defaultBcoColor
|
||||||
tHeading.pco=defaultFontColor
|
tHeading.pco=defaultFontColor
|
||||||
b0.pco=defaultFontColor
|
b0.pco=defaultFontColor
|
||||||
tText.pco=defaultFontColor
|
tText.pco=defaultFontColor
|
||||||
b1.pco=defaultFontColor
|
b1.pco=defaultFontColor
|
||||||
b2.pco=defaultFontColor
|
b2.pco=defaultFontColor
|
||||||
|
vis tIcon,0
|
||||||
|
vis tTextAlt,0
|
||||||
|
tIcon.pco=defaultFontColor
|
||||||
|
tTextAlt.pco=defaultFontColor
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
@@ -174,7 +180,7 @@ Text tHeading
|
|||||||
Fill : solid color
|
Fill : solid color
|
||||||
Style : flat
|
Style : flat
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Font ID : 2
|
Font ID : 1
|
||||||
Back. Color : 6371
|
Back. Color : 6371
|
||||||
Font Color : 65535
|
Font Color : 65535
|
||||||
Horizontal Alignment : left
|
Horizontal Alignment : left
|
||||||
@@ -216,6 +222,66 @@ Text tText
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tTextAlt
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 150
|
||||||
|
y coordinate : 74
|
||||||
|
Width : 285
|
||||||
|
Height : 171
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 65535
|
||||||
|
Horizontal Alignment : left
|
||||||
|
Vertical Alignment : top
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 500
|
||||||
|
Word wrap : enabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tIcon
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 38
|
||||||
|
y coordinate : 74
|
||||||
|
Width : 109
|
||||||
|
Height : 171
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 4
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 65535
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 250
|
||||||
|
Word wrap : enabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
@@ -298,7 +364,7 @@ Button b2
|
|||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
Fill : solid color
|
Fill : solid color
|
||||||
Style : flat
|
Style : flat
|
||||||
Font ID : 2
|
Font ID : 1
|
||||||
Back. Color : 6371
|
Back. Color : 6371
|
||||||
Back. Picture ID (Pressed) : 8
|
Back. Picture ID (Pressed) : 8
|
||||||
Back. Color (Pressed) : 1024
|
Back. Color (Pressed) : 1024
|
||||||
@@ -347,7 +413,7 @@ Button b1
|
|||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
Fill : solid color
|
Fill : solid color
|
||||||
Style : flat
|
Style : flat
|
||||||
Font ID : 2
|
Font ID : 1
|
||||||
Back. Color : 6371
|
Back. Color : 6371
|
||||||
Back. Picture ID (Pressed) : 8
|
Back. Picture ID (Pressed) : 8
|
||||||
Back. Color (Pressed) : 1024
|
Back. Color (Pressed) : 1024
|
||||||
@@ -493,6 +559,25 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
sleepTimeout=sys0
|
sleepTimeout=sys0
|
||||||
|
//font size
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tTextAlt.font=sys0
|
||||||
|
tText.font=sys0
|
||||||
|
//icon
|
||||||
|
spstr strCommand.txt,tIcon.txt,"~",12
|
||||||
|
if(tIcon.txt!="")
|
||||||
|
{
|
||||||
|
vis tIcon,1
|
||||||
|
vis tTextAlt,1
|
||||||
|
vis tText,0
|
||||||
|
tTextAlt.txt=tText.txt
|
||||||
|
tTextAlt.pco=tText.pco
|
||||||
|
}
|
||||||
|
// alt icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",13
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tIcon.pco=sys0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
@@ -546,6 +631,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -600,6 +686,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Page popupShutter
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -366,7 +367,7 @@ Slider hTilt
|
|||||||
// event,buttonPress2,internalNameEntity,positionSlider,50
|
// event,buttonPress2,internalNameEntity,positionSlider,50
|
||||||
//craft command
|
//craft command
|
||||||
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
||||||
covx hPosition.val,tTmp.txt,0,0
|
covx hTilt.val,tTmp.txt,0,0
|
||||||
tSend.txt+=tTmp.txt
|
tSend.txt+=tTmp.txt
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
@@ -949,6 +950,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -998,6 +1000,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -1012,7 +1012,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,sleepTimeout,0,0
|
covx tTmp.txt,sleepTimeout,0,0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="weatherUpdate")
|
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
vis tMainIcon,1
|
vis tMainIcon,1
|
||||||
vis tMainIconAlt,0
|
vis tMainIconAlt,0
|
||||||
@@ -1086,16 +1086,8 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tIcon2.txt,"~",19
|
spstr strCommand.txt,tIcon2.txt,"~",19
|
||||||
spstr strCommand.txt,tTmp.txt,"~",20
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,tIcon2.pco,0,0
|
covx tTmp.txt,tIcon2.pco,0,0
|
||||||
if(tNotifyHead.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyHead
|
|
||||||
}
|
|
||||||
if(tNotifyText.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyText
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="color")
|
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,tTime.bco,0,0
|
covx tTmp.txt,tTime.bco,0,0
|
||||||
@@ -1208,6 +1200,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete u[2]+3
|
udelete u[2]+3
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1252,6 +1245,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -788,6 +788,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -837,6 +838,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -786,7 +786,7 @@ Button bText1
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -811,7 +811,7 @@ Button bText2
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -836,7 +836,7 @@ Button bText3
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -861,7 +861,7 @@ Button bText4
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -1014,6 +1014,7 @@ Hotspot m2
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity3.txt
|
//popupShutter.tHeading.txt=tEntity3.txt
|
||||||
@@ -1040,6 +1041,7 @@ Hotspot m1
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity2.txt
|
//popupShutter.tHeading.txt=tEntity2.txt
|
||||||
@@ -1066,6 +1068,7 @@ Hotspot m0
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity1.txt
|
//popupShutter.tHeading.txt=tEntity1.txt
|
||||||
@@ -1092,6 +1095,7 @@ Hotspot m3
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity4.txt
|
//popupShutter.tHeading.txt=tEntity4.txt
|
||||||
@@ -1837,6 +1841,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1886,6 +1891,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -310,6 +310,7 @@ Button bEntity1
|
|||||||
tTmp.txt=type1.txt
|
tTmp.txt=type1.txt
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -346,6 +347,7 @@ Button bEntity2
|
|||||||
tTmp.txt=type2.txt
|
tTmp.txt=type2.txt
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -382,6 +384,7 @@ Button bEntity3
|
|||||||
tTmp.txt=type3.txt
|
tTmp.txt=type3.txt
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -418,6 +421,7 @@ Button bEntity4
|
|||||||
tTmp.txt=type4.txt
|
tTmp.txt=type4.txt
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -454,6 +458,7 @@ Button bEntity5
|
|||||||
tTmp.txt=type5.txt
|
tTmp.txt=type5.txt
|
||||||
pageIcons.tTmp1.txt=tEntity5.txt
|
pageIcons.tTmp1.txt=tEntity5.txt
|
||||||
pageIcons.tTmp2.txt=entn5.txt
|
pageIcons.tTmp2.txt=entn5.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity5.txt
|
||||||
if(type5.txt=="shutter")
|
if(type5.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -490,6 +495,7 @@ Button bEntity6
|
|||||||
tTmp.txt=type6.txt
|
tTmp.txt=type6.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity6.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn6.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity6.txt
|
||||||
if(type6.txt=="shutter")
|
if(type6.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -787,6 +793,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -836,6 +843,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -706,6 +706,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -755,6 +756,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
870
HMI/US/landscape/n2t-out/cardPower.txt
Normal file
870
HMI/US/landscape/n2t-out/cardPower.txt
Normal file
@@ -0,0 +1,870 @@
|
|||||||
|
Page cardPower
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Locked : no
|
||||||
|
Swide up page ID : disabled
|
||||||
|
Swide down page ID : disabled
|
||||||
|
Swide left page ID : disabled
|
||||||
|
Swide right page ID : disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Preinitialize Event
|
||||||
|
dim=dimValueNormal
|
||||||
|
vis p0,0
|
||||||
|
vis tSend,0
|
||||||
|
vis tInstruction,0
|
||||||
|
vis tTmp,0
|
||||||
|
vis tId,0
|
||||||
|
vis bPrev,0
|
||||||
|
vis bNext,0
|
||||||
|
tsw h0,0
|
||||||
|
tsw h1,0
|
||||||
|
tsw h2,0
|
||||||
|
tsw h3,0
|
||||||
|
tsw h4,0
|
||||||
|
tsw h5,0
|
||||||
|
vis h0,0
|
||||||
|
vis h1,0
|
||||||
|
vis h2,0
|
||||||
|
vis h3,0
|
||||||
|
vis h4,0
|
||||||
|
vis h5,0
|
||||||
|
vis t0Icon,0
|
||||||
|
vis t1Icon,0
|
||||||
|
vis t2Icon,0
|
||||||
|
vis t3Icon,0
|
||||||
|
vis t4Icon,0
|
||||||
|
vis t5Icon,0
|
||||||
|
cardPower.bco=defaultBcoColor
|
||||||
|
for(sys0=0;sys0<43;sys0++)
|
||||||
|
{
|
||||||
|
if(b[sys0].type==98||b[sys0].type==116)
|
||||||
|
{
|
||||||
|
b[sys0].bco=defaultBcoColor
|
||||||
|
b[sys0].pco=defaultFontColor
|
||||||
|
}
|
||||||
|
if(b[sys0].type==1)
|
||||||
|
{
|
||||||
|
b[sys0].pic=19
|
||||||
|
b[sys0].pic1=19
|
||||||
|
b[sys0].pic2=15
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Variable (string) strCommand
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 275
|
||||||
|
|
||||||
|
Variable (string) tSend
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 200
|
||||||
|
|
||||||
|
Variable (string) tTmp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 10
|
||||||
|
|
||||||
|
Variable (string) tId
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tInstruction
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (int32) t0Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t1Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t3Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t4Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t5Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t2Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Text tHeading
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 40
|
||||||
|
|
||||||
|
Text t4Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î´½
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t5Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t0Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î¢
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t2Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î °
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t1Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î¶
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t3Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î °
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t0u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t1u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t2u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t5u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t4u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t3u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text tHome
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Picture p0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
|
||||||
|
Slider h1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h4
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h2
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h5
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h3
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Button bNext
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î³
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,cardAlarm,bNext"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Button bPrev
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î°
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||||
|
if(bPrev.txt=="î¶")
|
||||||
|
{
|
||||||
|
tSend.txt+="bUp"
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
tSend.txt+="bPrev"
|
||||||
|
}
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Hotspot mSwipeNext
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
click bNext,1
|
||||||
|
|
||||||
|
Hotspot mSwipeUp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
click bPrev,1
|
||||||
|
|
||||||
|
Hotspot mSwipePrev
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
click bPrev,1
|
||||||
|
|
||||||
|
Timer tmSerial
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 50
|
||||||
|
Enabled : yes
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
// data available
|
||||||
|
if(usize>1)
|
||||||
|
{
|
||||||
|
bufferPos=0
|
||||||
|
while(bufferPos<usize)
|
||||||
|
{
|
||||||
|
// check for 0x55 0xBB - Command Init Secuence
|
||||||
|
if(u[bufferPos]==187&&u[bufferPos-1]==85)
|
||||||
|
{
|
||||||
|
//remove garbage at the start of the buffer if there's any to free buffer for command
|
||||||
|
if(u[bufferPos]!=1)
|
||||||
|
{
|
||||||
|
udelete bufferPos-1
|
||||||
|
}
|
||||||
|
//instruction is now aligned with buffer, because we deleted garbage before instrcution
|
||||||
|
//get length after init sequence (check if there are more than to bytes in buffer)
|
||||||
|
if(3<usize)
|
||||||
|
{
|
||||||
|
// check if serial buffer has reached the announced length
|
||||||
|
ucopy payloadLength,2,2,0
|
||||||
|
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
|
||||||
|
payloadLength+=3
|
||||||
|
// payload length does also not contain crc, so we are adding another 2 bytes for crc
|
||||||
|
payloadLength+=2
|
||||||
|
if(payloadLength<usize)
|
||||||
|
{
|
||||||
|
// calculate crc
|
||||||
|
crcrest 1,0xFFFF
|
||||||
|
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
|
||||||
|
//crcputu 3,u[2]
|
||||||
|
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
|
||||||
|
crcputu 0,payloadLength-1
|
||||||
|
// get recived crc to be able to compare it
|
||||||
|
ucopy recvCrc,payloadLength-1,2,0
|
||||||
|
// compare crc with recived value
|
||||||
|
if(crcval==recvCrc)
|
||||||
|
{
|
||||||
|
// crc is okay
|
||||||
|
// here is the location where acual code should be
|
||||||
|
// write command to variable strCommand
|
||||||
|
ucopy strCommand.txt,4,payloadLength-5,0
|
||||||
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
|
if(tInstruction.txt=="entityUpd")
|
||||||
|
{
|
||||||
|
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
|
||||||
|
spstr strCommand.txt,tHeading.txt,"~",1
|
||||||
|
// navigation icons
|
||||||
|
spstr strCommand.txt,tId.txt,"~",2
|
||||||
|
spstr tId.txt,tTmp.txt,"|",0
|
||||||
|
if(tTmp.txt=="0")
|
||||||
|
{
|
||||||
|
vis bPrev,0
|
||||||
|
tsw mSwipePrev,0
|
||||||
|
tsw mSwipeUp,0
|
||||||
|
}
|
||||||
|
if(tTmp.txt=="1")
|
||||||
|
{
|
||||||
|
vis bPrev,1
|
||||||
|
tsw mSwipePrev,1
|
||||||
|
tsw mSwipeUp,0
|
||||||
|
bPrev.txt="î°"
|
||||||
|
}
|
||||||
|
if(tTmp.txt=="2")
|
||||||
|
{
|
||||||
|
vis bPrev,1
|
||||||
|
tsw mSwipePrev,0
|
||||||
|
tsw mSwipeUp,1
|
||||||
|
bPrev.txt="î¶"
|
||||||
|
}
|
||||||
|
spstr tId.txt,tTmp.txt,"|",1
|
||||||
|
if(tTmp.txt=="0")
|
||||||
|
{
|
||||||
|
vis bNext,0
|
||||||
|
tsw mSwipeNext,0
|
||||||
|
}
|
||||||
|
if(tTmp.txt=="1")
|
||||||
|
{
|
||||||
|
vis bNext,1
|
||||||
|
tsw mSwipeNext,1
|
||||||
|
bNext.txt="î³"
|
||||||
|
}
|
||||||
|
// icon color home
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
covx tTmp.txt,t1.pco,0,0
|
||||||
|
// icon home
|
||||||
|
spstr strCommand.txt,t1.txt,"~",4
|
||||||
|
// text home
|
||||||
|
spstr strCommand.txt,tHome.txt,"~",5
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
|
covx tTmp.txt,t0Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t0Icon.txt,"~",7
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",8
|
||||||
|
covx tTmp.txt,t0Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t0u.txt,"~",9
|
||||||
|
if(t0Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t0Icon,1
|
||||||
|
vis t0u,1
|
||||||
|
vis h0,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t0Icon,0
|
||||||
|
vis t0u,0
|
||||||
|
vis h0,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
|
covx tTmp.txt,t1Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t1Icon.txt,"~",11
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",12
|
||||||
|
covx tTmp.txt,t1Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t1u.txt,"~",13
|
||||||
|
if(t1Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t1Icon,1
|
||||||
|
vis t1u,1
|
||||||
|
vis h1,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t1Icon,0
|
||||||
|
vis t1u,0
|
||||||
|
vis h1,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",14
|
||||||
|
covx tTmp.txt,t2Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t2Icon.txt,"~",15
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
|
covx tTmp.txt,t2Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t2u.txt,"~",17
|
||||||
|
if(t2Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t2Icon,1
|
||||||
|
vis t2u,1
|
||||||
|
vis h2,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t2Icon,0
|
||||||
|
vis t2u,0
|
||||||
|
vis h2,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",18
|
||||||
|
covx tTmp.txt,t3Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t3Icon.txt,"~",19
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
|
covx tTmp.txt,t3Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t3u.txt,"~",21
|
||||||
|
if(t3Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t3Icon,1
|
||||||
|
vis t3u,1
|
||||||
|
vis h3,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t3Icon,0
|
||||||
|
vis t3u,0
|
||||||
|
vis h3,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",22
|
||||||
|
covx tTmp.txt,t4Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t4Icon.txt,"~",23
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",24
|
||||||
|
covx tTmp.txt,t4Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t4u.txt,"~",25
|
||||||
|
if(t4Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t4Icon,1
|
||||||
|
vis t4u,1
|
||||||
|
vis h4,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t4Icon,0
|
||||||
|
vis t4u,0
|
||||||
|
vis h4,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
|
covx tTmp.txt,t5Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t5Icon.txt,"~",27
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",28
|
||||||
|
covx tTmp.txt,t5Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t5u.txt,"~",29
|
||||||
|
if(t5Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t5Icon,1
|
||||||
|
vis t5u,1
|
||||||
|
vis h5,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t5Icon,0
|
||||||
|
vis t5u,0
|
||||||
|
vis h5,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="pageType")
|
||||||
|
{
|
||||||
|
sleepValue=0
|
||||||
|
//command format pageType,specialPageName
|
||||||
|
//write name of speical page to tId
|
||||||
|
spstr strCommand.txt,tId.txt,"~",1
|
||||||
|
//save second arg if there's one
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
//save third arg if there's one
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
|
udelete payloadLength-1
|
||||||
|
bufferPos=0
|
||||||
|
if(tId.txt=="pageStartup")
|
||||||
|
{
|
||||||
|
page pageStartup
|
||||||
|
}
|
||||||
|
if(tId.txt=="screensaver")
|
||||||
|
{
|
||||||
|
page screensaver
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardEntities")
|
||||||
|
{
|
||||||
|
page cardEntities
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardGrid")
|
||||||
|
{
|
||||||
|
page cardGrid
|
||||||
|
}
|
||||||
|
if(tId.txt=="popupLight")
|
||||||
|
{
|
||||||
|
pageIcons.tTmp1.txt=tTmp.txt
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
|
if(tId.txt=="popupShutter")
|
||||||
|
{
|
||||||
|
pageIcons.tTmp1.txt=tTmp.txt
|
||||||
|
page popupShutter
|
||||||
|
}
|
||||||
|
if(tId.txt=="popupNotify")
|
||||||
|
{
|
||||||
|
page popupNotify
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardThermo")
|
||||||
|
{
|
||||||
|
page cardThermo
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardMedia")
|
||||||
|
{
|
||||||
|
page cardMedia
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardAlarm")
|
||||||
|
{
|
||||||
|
page cardAlarm
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardQR")
|
||||||
|
{
|
||||||
|
page cardQR
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="time")
|
||||||
|
{
|
||||||
|
// get set time to global variable
|
||||||
|
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="date")
|
||||||
|
{
|
||||||
|
// get set date to global variable
|
||||||
|
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="dimmode")
|
||||||
|
{
|
||||||
|
// get value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
covx tTmp.txt,dimValue,0,0
|
||||||
|
// get value normal
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
covx tTmp.txt,dimValueNormal,0,0
|
||||||
|
dim=dimValueNormal
|
||||||
|
// get background color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,defaultBcoColor,0,0
|
||||||
|
}
|
||||||
|
// get font color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="timeout")
|
||||||
|
{
|
||||||
|
//set timeout to global var
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
}
|
||||||
|
// end of user code
|
||||||
|
udelete payloadLength-1
|
||||||
|
bufferPos=0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// next character
|
||||||
|
bufferPos++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Timer tmSleep
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 1000
|
||||||
|
Enabled : yes
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
if(sleepTimeout!=0&&dimValue!=dim)
|
||||||
|
{
|
||||||
|
sleepValue+=1
|
||||||
|
if(sleepTimeout<=sleepValue)
|
||||||
|
{
|
||||||
|
sleepValue=0
|
||||||
|
dim=dimValue
|
||||||
|
tSend.txt="event,sleepReached,cardAlarm"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Timer tm0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 100
|
||||||
|
Enabled : yes
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
sys0=h0.val+t0Speed.val
|
||||||
|
if(sys0>h0.maxval)
|
||||||
|
{
|
||||||
|
h0.val=h0.minval
|
||||||
|
}
|
||||||
|
if(sys0<h0.minval)
|
||||||
|
{
|
||||||
|
h0.val=h0.maxval
|
||||||
|
}
|
||||||
|
h0.val+=t0Speed.val
|
||||||
|
sys0=h1.val+t1Speed.val
|
||||||
|
if(sys0>h1.maxval)
|
||||||
|
{
|
||||||
|
h1.val=h1.minval
|
||||||
|
}
|
||||||
|
if(sys0<h1.minval)
|
||||||
|
{
|
||||||
|
h1.val=h1.maxval
|
||||||
|
}
|
||||||
|
h1.val+=t1Speed.val
|
||||||
|
sys0=h2.val+t2Speed.val
|
||||||
|
if(sys0>h2.maxval)
|
||||||
|
{
|
||||||
|
h2.val=h2.minval
|
||||||
|
}
|
||||||
|
if(sys0<h2.minval)
|
||||||
|
{
|
||||||
|
h2.val=h2.maxval
|
||||||
|
}
|
||||||
|
h2.val+=t2Speed.val
|
||||||
|
sys0=h3.val+t3Speed.val
|
||||||
|
if(sys0>h3.maxval)
|
||||||
|
{
|
||||||
|
h3.val=h3.minval
|
||||||
|
}
|
||||||
|
if(sys0<h3.minval)
|
||||||
|
{
|
||||||
|
h3.val=h3.maxval
|
||||||
|
}
|
||||||
|
h3.val+=t3Speed.val
|
||||||
|
sys0=h4.val+t4Speed.val
|
||||||
|
if(sys0>h4.maxval)
|
||||||
|
{
|
||||||
|
h4.val=h4.minval
|
||||||
|
}
|
||||||
|
if(sys0<h4.minval)
|
||||||
|
{
|
||||||
|
h4.val=h4.maxval
|
||||||
|
}
|
||||||
|
h4.val+=t4Speed.val
|
||||||
|
sys0=h5.val+t5Speed.val
|
||||||
|
if(sys0>h5.maxval)
|
||||||
|
{
|
||||||
|
h5.val=h5.minval
|
||||||
|
}
|
||||||
|
if(sys0<h5.minval)
|
||||||
|
{
|
||||||
|
h5.val=h5.maxval
|
||||||
|
}
|
||||||
|
h5.val+=t5Speed.val
|
||||||
|
|
||||||
|
TouchCap tc0
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
sleepValue=0
|
||||||
|
|
||||||
@@ -657,6 +657,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -706,6 +707,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -1093,6 +1093,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1142,6 +1143,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,6 +42,16 @@ Text tTmp2
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 80
|
Max. Text Size : 80
|
||||||
|
|
||||||
|
Text tTmp3
|
||||||
|
Attributes
|
||||||
|
Scope : global
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ Text tVersion
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Text : 42
|
Text : 43
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
@@ -306,6 +306,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -350,6 +351,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Page popupFan
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -467,7 +468,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -577,6 +578,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -626,6 +628,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Page popupLight
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -466,7 +467,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -613,6 +614,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -662,6 +664,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,11 +25,17 @@ Page popupNotify
|
|||||||
tText.bco=defaultBcoColor
|
tText.bco=defaultBcoColor
|
||||||
b1.bco=defaultBcoColor
|
b1.bco=defaultBcoColor
|
||||||
b2.bco=defaultBcoColor
|
b2.bco=defaultBcoColor
|
||||||
|
tIcon.bco=defaultBcoColor
|
||||||
|
tTextAlt.bco=defaultBcoColor
|
||||||
tHeading.pco=defaultFontColor
|
tHeading.pco=defaultFontColor
|
||||||
b0.pco=defaultFontColor
|
b0.pco=defaultFontColor
|
||||||
tText.pco=defaultFontColor
|
tText.pco=defaultFontColor
|
||||||
b1.pco=defaultFontColor
|
b1.pco=defaultFontColor
|
||||||
b2.pco=defaultFontColor
|
b2.pco=defaultFontColor
|
||||||
|
vis tIcon,0
|
||||||
|
vis tTextAlt,0
|
||||||
|
tIcon.pco=defaultFontColor
|
||||||
|
tTextAlt.pco=defaultFontColor
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
@@ -104,6 +110,26 @@ Text tText
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 500
|
Max. Text Size : 500
|
||||||
|
|
||||||
|
Text tTextAlt
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 500
|
||||||
|
|
||||||
|
Text tIcon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 250
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -303,6 +329,25 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
sleepTimeout=sys0
|
sleepTimeout=sys0
|
||||||
|
//font size
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tTextAlt.font=sys0
|
||||||
|
tText.font=sys0
|
||||||
|
//icon
|
||||||
|
spstr strCommand.txt,tIcon.txt,"~",12
|
||||||
|
if(tIcon.txt!="")
|
||||||
|
{
|
||||||
|
vis tIcon,1
|
||||||
|
vis tTextAlt,1
|
||||||
|
vis tText,0
|
||||||
|
tTextAlt.txt=tText.txt
|
||||||
|
tTextAlt.pco=tText.pco
|
||||||
|
}
|
||||||
|
// alt icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",13
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tIcon.pco=sys0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
@@ -356,6 +401,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -410,6 +456,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Page popupShutter
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -212,7 +213,7 @@ Slider hTilt
|
|||||||
// event,buttonPress2,internalNameEntity,positionSlider,50
|
// event,buttonPress2,internalNameEntity,positionSlider,50
|
||||||
//craft command
|
//craft command
|
||||||
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
||||||
covx hPosition.val,tTmp.txt,0,0
|
covx hTilt.val,tTmp.txt,0,0
|
||||||
tSend.txt+=tTmp.txt
|
tSend.txt+=tTmp.txt
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
@@ -639,6 +640,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -688,6 +690,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -447,7 +447,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,sleepTimeout,0,0
|
covx tTmp.txt,sleepTimeout,0,0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="weatherUpdate")
|
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
vis tMainIcon,1
|
vis tMainIcon,1
|
||||||
vis tMainIconAlt,0
|
vis tMainIconAlt,0
|
||||||
@@ -521,16 +521,8 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tIcon2.txt,"~",19
|
spstr strCommand.txt,tIcon2.txt,"~",19
|
||||||
spstr strCommand.txt,tTmp.txt,"~",20
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,tIcon2.pco,0,0
|
covx tTmp.txt,tIcon2.pco,0,0
|
||||||
if(tNotifyHead.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyHead
|
|
||||||
}
|
|
||||||
if(tNotifyText.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyText
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="color")
|
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,tTime.bco,0,0
|
covx tTmp.txt,tTime.bco,0,0
|
||||||
@@ -643,6 +635,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete u[2]+3
|
udelete u[2]+3
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -687,6 +680,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,247 +1,126 @@
|
|||||||
+++ HMI/US/portrait/diff-eu-version.txt 2022-09-15 18:53:18.765006808 +0000
|
+++ /dev/fd/62 2022-10-23 14:41:10.580318674 +0000
|
||||||
+--- HMI/n2t-out/Program.s.txt 2022-09-15 18:53:18.301002047 +0000
|
++9,8 @@
|
||||||
++++ HMI/US/portrait/n2t-out/Program.s.txt 2022-09-15 18:53:18.749006644 +0000
|
+tify.txt
|
||||||
+@@ -14,6 +14,6 @@
|
+utter.txt
|
||||||
+ //color vars
|
+ermo.txt
|
||||||
+ int defaultFontColor=65535
|
+aver.txt
|
||||||
+ int defaultBcoColor=6371
|
+rdThermo.txt
|
||||||
+--- HMI/n2t-out/cardEntities.txt 2022-09-15 18:53:18.305002088 +0000
|
+30 +779,14 @@
|
||||||
++++ HMI/US/portrait/n2t-out/cardEntities.txt 2022-09-15 18:53:18.753006685 +0000
|
+ crcputs tSend.txt,0
|
||||||
+@@ -65,6 +65,16 @@
|
+ //send cmd
|
||||||
+ vis bPrev,0
|
+ printh 55 bb
|
||||||
+ vis bNext,0
|
+ prints sys0,2
|
||||||
+ cardEntities.bco=defaultBcoColor
|
+ prints tSend.txt,0
|
||||||
+ for(sys0=0;sys0<65;sys0++)
|
+ prints crcval,2
|
||||||
+ {
|
+
|
||||||
+@@ -140,6 +150,18 @@
|
+ate Button btDetail
|
||||||
+ Variable (string) tSend
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+@@ -182,6 +204,15 @@
|
+ Dragging : 0
|
||||||
+@@ -302,6 +333,26 @@
|
+ Disable release event after dragging: 0
|
||||||
+@@ -421,6 +472,34 @@
|
+ Send Component ID : disabled
|
||||||
+@@ -878,6 +957,106 @@
|
+ State : pressed
|
||||||
+@@ -986,6 +1165,33 @@
|
+ Text : î
|
||||||
+@@ -1107,6 +1313,32 @@
|
+ Max. Text Size : 10
|
||||||
+ page popupFan
|
+
|
||||||
+@@ -1826,6 +2058,155 @@
|
+nts
|
||||||
++ vis bUp5,0
|
+ Touch Press Event
|
||||||
++ vis bStop5,0
|
+ pageIcons.tTmp1.txt=tHeading.txt
|
||||||
++ vis bDown5,0
|
+ pageIcons.tTmp2.txt=entn.txt
|
||||||
++ vis btOnOff5,1
|
+ page popupThermo
|
||||||
++ vis bText5,0
|
+
|
||||||
++ vis hSlider5,0
|
+ mSwipeNext
|
||||||
++ vis nNum5,0
|
+ributes
|
||||||
++ // get Button State (optional Value)
|
+ Scope : local
|
||||||
++ spstr strCommand.txt,tTmp.txt,"~",32
|
+ Dragging : 0
|
||||||
++ covx tTmp.txt,sys0,0,0
|
+ Disable release event after dragging: 0
|
||||||
++ btOnOff5.val=sys0
|
+ Send Component ID : disabled
|
||||||
+Only in HMI/n2t-out: cardPower.txt
|
+geIcons.txt
|
||||||
+--- HMI/n2t-out/pageStartup.txt 2022-09-15 18:53:18.301002047 +0000
|
+5 +15,15 @@
|
||||||
++++ HMI/US/portrait/n2t-out/pageStartup.txt 2022-09-15 18:53:18.749006644 +0000
|
+ Scope : global
|
||||||
+diff -bur HMI/n2t-out/pageTest.txt HMI/US/portrait/n2t-out/pageTest.txt
|
+ Text :
|
||||||
+--- HMI/n2t-out/pageTest.txt 2022-09-15 18:53:18.301002047 +0000
|
+ Max. Text Size: 15
|
||||||
++++ HMI/US/portrait/n2t-out/pageTest.txt 2022-09-15 18:53:18.749006644 +0000
|
+
|
||||||
+@@ -13,36 +13,6 @@
|
+e (string) vaDate
|
||||||
+ Events
|
+ributes
|
||||||
+ Preinitialize Event
|
+ Scope : global
|
||||||
+ vis p0,0
|
+ Text :
|
||||||
+- recmod=1
|
+ Text :
|
||||||
+- bauds=115200
|
+ Max. Text Size: 35
|
||||||
+-
|
+
|
||||||
+-Variable (string) tInstruction
|
+mp1
|
||||||
+- Attributes
|
+ributes
|
||||||
+- Scope : local
|
+ Scope : global
|
||||||
+- Text :
|
+ Dragging : 0
|
||||||
+- Max. Text Size: 30
|
+ Disable release event after dragging: 0
|
||||||
+-
|
+pupNotify.txt
|
||||||
+-Variable (string) strCommand
|
+5 +21,19 @@
|
||||||
+- Attributes
|
+ vis tId,0
|
||||||
+- Scope : local
|
+ popupNotify.bco=defaultBcoColor
|
||||||
+- Text :
|
+ tHeading.bco=defaultBcoColor
|
||||||
+- Max. Text Size: 20
|
+ b0.bco=defaultBcoColor
|
||||||
+-
|
+ tText.bco=defaultBcoColor
|
||||||
+-Variable (string) tSend
|
+ b1.bco=defaultBcoColor
|
||||||
+- Attributes
|
+ b2.bco=defaultBcoColor
|
||||||
+- Scope : local
|
+ tIcon.bco=defaultBcoColor
|
||||||
+- Text :
|
+ tTextAlt.bco=defaultBcoColor
|
||||||
+- Max. Text Size: 40
|
+ tHeading.pco=defaultFontColor
|
||||||
+-
|
+ b0.pco=defaultFontColor
|
||||||
+-Text tBench
|
+ tText.pco=defaultFontColor
|
||||||
+- Attributes
|
+ b1.pco=defaultFontColor
|
||||||
+- Scope : local
|
+ b2.pco=defaultFontColor
|
||||||
+- Dragging : 0
|
+ vis tIcon,0
|
||||||
+- Disable release event after dragging: 0
|
+ vis tTextAlt,0
|
||||||
+- Send Component ID : disabled
|
+ tIcon.pco=defaultFontColor
|
||||||
+- Associated Keyboard : none
|
+ tTextAlt.pco=defaultFontColor
|
||||||
+- Text :
|
+
|
||||||
+- Max. Text Size : 20
|
+e (string) strCommand
|
||||||
+
|
+ributes
|
||||||
+ Picture p0
|
+ Scope : local
|
||||||
+ Attributes
|
+ Text :
|
||||||
+@@ -220,96 +190,3 @@
|
+ Max. Text Size: 1000
|
||||||
+ Touch Press Event
|
+reensaver.txt
|
||||||
+ page cardQR
|
+5 +71,15 @@
|
||||||
+
|
+ime
|
||||||
+-Button b12
|
+ributes
|
||||||
+- Attributes
|
+ Scope : local
|
||||||
+- Scope : local
|
+ Dragging : 0
|
||||||
+- Dragging : 0
|
+ Disable release event after dragging: 0
|
||||||
+- Disable release event after dragging: 0
|
+ Send Component ID : disabled
|
||||||
+- Send Component ID : disabled
|
+ Associated Keyboard : none
|
||||||
+- State : unpressed
|
+ Text : 21:32
|
||||||
+- Text : power
|
+ Text : 21:32
|
||||||
+- Max. Text Size : 10
|
+ Max. Text Size : 15
|
||||||
+-
|
+
|
||||||
+- Events
|
+ate
|
||||||
+- Touch Press Event
|
+ributes
|
||||||
+- page cardPower
|
+ Scope : local
|
||||||
+-
|
+ Dragging : 0
|
||||||
+-Timer tmSerial
|
+ Disable release event after dragging: 0
|
||||||
+- Attributes
|
+26 +620,14 @@
|
||||||
+- Scope : local
|
+ vis tNotifyHead,1
|
||||||
+- Period (ms): 50
|
+ vis tNotifyText,1
|
||||||
+- Enabled : yes
|
+ }else
|
||||||
+-
|
+ {
|
||||||
+- Events
|
+ vis tNotifyHead,0
|
||||||
+- Timer Event
|
+ vis tNotifyText,0
|
||||||
+- // data available
|
+ }
|
||||||
+- if(usize>1)
|
+ tNotifyHead.bco=tTime.bco
|
||||||
+- {
|
+ tNotifyText.bco=tTime.bco
|
||||||
+- bufferPos=0
|
+ spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
+- while(bufferPos<usize)
|
+ if(tTmp.txt!="")
|
||||||
+- {
|
+ {
|
||||||
+- // check for 0x55 0xBB - Command Init Secuence
|
+ covx tTmp.txt,tNotifyHead.pco,0,0
|
||||||
+- if(u[bufferPos]==187&&u[bufferPos-1]==85)
|
+ }
|
||||||
+- {
|
+ spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
+- //remove garbage at the start of the buffer if there's any to free buffer for command
|
+ if(tTmp.txt!="")
|
||||||
+- if(u[bufferPos]!=1)
|
+ {
|
||||||
+- {
|
+ covx tTmp.txt,tNotifyText.pco,0,0
|
||||||
+- udelete bufferPos-1
|
+ }
|
||||||
+- }
|
+ }
|
||||||
+- //instruction is now aligned with buffer, because we deleted garbage before instrcution
|
+ if(tInstruction.txt=="pageType")
|
||||||
+- //get length after init sequence (check if there are more than to bytes in buffer)
|
+ {
|
||||||
+- if(3<usize)
|
+ dim=100
|
||||||
+- {
|
+ //command format pageType,specialPageName
|
||||||
+- // check if serial buffer has reached the announced length
|
+ //write name of speical page to tId
|
||||||
+- ucopy payloadLength,2,2,0
|
+ spstr strCommand.txt,tId.txt,"~",1
|
||||||
+- // we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
|
|
||||||
+- payloadLength+=3
|
|
||||||
+- // payload length does also not contain crc, so we are adding another 2 bytes for crc
|
|
||||||
+- payloadLength+=2
|
|
||||||
+- if(payloadLength<usize)
|
|
||||||
+- {
|
|
||||||
+- // calculate crc
|
|
||||||
+- crcrest 1,0xFFFF
|
|
||||||
+- // u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
|
|
||||||
+- //crcputu 3,u[2]
|
|
||||||
+- // u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
|
|
||||||
+- crcputu 0,payloadLength-1
|
|
||||||
+- // get recived crc to be able to compare it
|
|
||||||
+- ucopy recvCrc,payloadLength-1,2,0
|
|
||||||
+- // compare crc with recived value
|
|
||||||
+- if(crcval==recvCrc)
|
|
||||||
+- {
|
|
||||||
+- // crc is okay
|
|
||||||
+- // here is the location where acual code should be
|
|
||||||
+- // write command to variable strCommand
|
|
||||||
+- ucopy strCommand.txt,4,payloadLength-5,0
|
|
||||||
+- // write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
|
||||||
+- spstr strCommand.txt,tInstruction.txt,"~",0
|
|
||||||
+- if(tInstruction.txt=="ping")
|
|
||||||
+- {
|
|
||||||
+- spstr strCommand.txt,tBench.txt,"~",1
|
|
||||||
+- tSend.txt="pong,"+tBench.txt
|
|
||||||
+- //send calc crc
|
|
||||||
+- btlen tSend.txt,sys0
|
|
||||||
+- crcrest 1,0xffff // reset CRC
|
|
||||||
+- crcputh 55 bb
|
|
||||||
+- crcputs sys0,2
|
|
||||||
+- crcputs tSend.txt,0
|
|
||||||
+- //send cmd
|
|
||||||
+- printh 55 bb
|
|
||||||
+- prints sys0,2
|
|
||||||
+- prints tSend.txt,0
|
|
||||||
+- prints crcval,2
|
|
||||||
+- }
|
|
||||||
+- // end of user code
|
|
||||||
+- udelete payloadLength-1
|
|
||||||
+- bufferPos=0
|
|
||||||
+- }
|
|
||||||
+- }
|
|
||||||
+- }
|
|
||||||
+- }
|
|
||||||
+- // next character
|
|
||||||
+- bufferPos++
|
|
||||||
+- }
|
|
||||||
+- }
|
|
||||||
+-
|
|
||||||
+diff -bur HMI/n2t-out/popupFan.txt HMI/US/portrait/n2t-out/popupFan.txt
|
|
||||||
+--- HMI/n2t-out/popupFan.txt 2022-09-15 18:53:18.301002047 +0000
|
|
||||||
++++ HMI/US/portrait/n2t-out/popupFan.txt 2022-09-15 18:53:18.749006644 +0000
|
|
||||||
+@@ -81,23 +81,23 @@
|
|
||||||
+ Scope: local
|
|
||||||
+ Value: 0
|
|
||||||
+
|
|
||||||
+-Variable (int32) vaModePos
|
|
||||||
+- Attributes
|
|
||||||
+- Scope: local
|
|
||||||
+- Value: 0
|
|
||||||
+-
|
|
||||||
+-Variable (string) vaModeList
|
|
||||||
++Variable (string) vaModeCur
|
|
||||||
+ Attributes
|
|
||||||
+ Scope : local
|
|
||||||
+ Text :
|
|
||||||
+ Max. Text Size: 400
|
|
||||||
+
|
|
||||||
+-Variable (string) vaModeCur
|
|
||||||
++Variable (string) vaModeList
|
|
||||||
+ Attributes
|
|
||||||
+ Scope : local
|
|
||||||
+ Text :
|
|
||||||
+ Max. Text Size: 400
|
|
||||||
+
|
|
||||||
++Variable (int32) vaModePos
|
|
||||||
++ Attributes
|
|
||||||
++ Scope: local
|
|
||||||
++ Value: 0
|
|
||||||
++
|
|
||||||
+ Variable (string) tSend
|
|
||||||
+ Attributes
|
|
||||||
+ Scope : local
|
|
||||||
+@@ -256,7 +256,7 @@
|
|
||||||
+ prints tSend.txt,0
|
|
||||||
+ prints crcval,2
|
|
||||||
+
|
|
||||||
+-Button bMode3
|
|
||||||
++Button bMode2
|
|
||||||
+ Attributes
|
|
||||||
+ Scope : local
|
|
||||||
+ Dragging : 0
|
|
||||||
+@@ -271,7 +271,7 @@
|
|
||||||
+ //craft command
|
|
||||||
+ tSend.txt="event,buttonPress2,"
|
|
||||||
+ tSend.txt+=entn.txt+","
|
|
||||||
+- sys2=vaModePos.val-1
|
|
||||||
++ sys2=vaModePos.val-2
|
|
||||||
+ covx sys2,tTmp.txt,0,0
|
|
||||||
+ tSend.txt+="mode-sel,"+tTmp.txt
|
|
||||||
+ //send calc crc
|
|
||||||
+@@ -286,7 +286,7 @@
|
|
||||||
+ prints tSend.txt,0
|
|
||||||
+ prints crcval,2
|
|
||||||
+
|
|
||||||
+-Button bMode2
|
|
||||||
++Button bMode3
|
|
||||||
+ Attributes
|
|
||||||
+ Scope : local
|
|
||||||
+ Dragging : 0
|
|
||||||
+@@ -301,7 +301,7 @@
|
|
||||||
+ //craft command
|
|
||||||
+ tSend.txt="event,buttonPress2,"
|
|
||||||
+ tSend.txt+=entn.txt+","
|
|
||||||
+- sys2=vaModePos.val-2
|
|
||||||
++ sys2=vaModePos.val-1
|
|
||||||
+ covx sys2,tTmp.txt,0,0
|
|
||||||
+ tSend.txt+="mode-sel,"+tTmp.txt
|
|
||||||
+ //send calc crc
|
|
||||||
|
|||||||
@@ -1370,6 +1370,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1419,6 +1420,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -1664,9 +1664,9 @@ Button bText1
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 165
|
x coordinate : 165
|
||||||
y coordinate : 82
|
y coordinate : 76
|
||||||
Width : 145
|
Width : 145
|
||||||
Height : 30
|
Height : 53
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1682,8 +1682,8 @@ Button bText1
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1711,9 +1711,9 @@ Button bText2
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 165
|
x coordinate : 165
|
||||||
y coordinate : 159
|
y coordinate : 152
|
||||||
Width : 145
|
Width : 145
|
||||||
Height : 30
|
Height : 53
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1729,8 +1729,8 @@ Button bText2
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1758,9 +1758,9 @@ Button bText3
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 165
|
x coordinate : 165
|
||||||
y coordinate : 242
|
y coordinate : 230
|
||||||
Width : 145
|
Width : 145
|
||||||
Height : 30
|
Height : 53
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1776,8 +1776,8 @@ Button bText3
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1805,9 +1805,9 @@ Button bText4
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 165
|
x coordinate : 165
|
||||||
y coordinate : 321
|
y coordinate : 310
|
||||||
Width : 145
|
Width : 145
|
||||||
Height : 30
|
Height : 53
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1823,8 +1823,8 @@ Button bText4
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1993,9 +1993,9 @@ Button bText5
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 168
|
x coordinate : 168
|
||||||
y coordinate : 401
|
y coordinate : 390
|
||||||
Width : 145
|
Width : 145
|
||||||
Height : 30
|
Height : 53
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -2011,8 +2011,8 @@ Button bText5
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -2302,6 +2302,7 @@ Hotspot m2
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity3.txt
|
//popupShutter.tHeading.txt=tEntity3.txt
|
||||||
@@ -2337,6 +2338,7 @@ Hotspot m1
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity2.txt
|
//popupShutter.tHeading.txt=tEntity2.txt
|
||||||
@@ -2372,6 +2374,7 @@ Hotspot m0
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity1.txt
|
//popupShutter.tHeading.txt=tEntity1.txt
|
||||||
@@ -2407,6 +2410,7 @@ Hotspot m3
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity4.txt
|
//popupShutter.tHeading.txt=tEntity4.txt
|
||||||
@@ -2442,6 +2446,7 @@ Hotspot m4
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity5.txt
|
pageIcons.tTmp1.txt=tEntity5.txt
|
||||||
pageIcons.tTmp2.txt=entn5.txt
|
pageIcons.tTmp2.txt=entn5.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon5.txt
|
||||||
if(type5.txt=="shutter")
|
if(type5.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity5.txt
|
//popupShutter.tHeading.txt=tEntity5.txt
|
||||||
@@ -3364,6 +3369,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -3413,6 +3419,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -608,6 +608,7 @@ Button bEntity1
|
|||||||
tTmp.txt=type1.txt
|
tTmp.txt=type1.txt
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -666,6 +667,7 @@ Button bEntity2
|
|||||||
tTmp.txt=type2.txt
|
tTmp.txt=type2.txt
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -724,6 +726,7 @@ Button bEntity3
|
|||||||
tTmp.txt=type3.txt
|
tTmp.txt=type3.txt
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -782,6 +785,7 @@ Button bEntity4
|
|||||||
tTmp.txt=type4.txt
|
tTmp.txt=type4.txt
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -840,6 +844,7 @@ Button bEntity5
|
|||||||
tTmp.txt=type5.txt
|
tTmp.txt=type5.txt
|
||||||
pageIcons.tTmp1.txt=tEntity5.txt
|
pageIcons.tTmp1.txt=tEntity5.txt
|
||||||
pageIcons.tTmp2.txt=entn5.txt
|
pageIcons.tTmp2.txt=entn5.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity5.txt
|
||||||
if(type5.txt=="shutter")
|
if(type5.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -898,6 +903,7 @@ Button bEntity6
|
|||||||
tTmp.txt=type6.txt
|
tTmp.txt=type6.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity6.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn6.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity6.txt
|
||||||
if(type6.txt=="shutter")
|
if(type6.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -1232,6 +1238,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1281,6 +1288,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1137,6 +1137,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1186,6 +1187,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
1381
HMI/US/portrait/n2t-out-visual/cardPower.txt
Normal file
1381
HMI/US/portrait/n2t-out-visual/cardPower.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -597,9 +597,9 @@ Hotspot mSwipeNext
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 311
|
x coordinate : 310
|
||||||
y coordinate : 5
|
y coordinate : 5
|
||||||
Width : 9
|
Width : 8
|
||||||
Height : 475
|
Height : 475
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -956,6 +956,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1005,6 +1006,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -1791,6 +1791,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1840,6 +1841,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,64 +3,68 @@ Program.s
|
|||||||
12 Line(s) of event code
|
12 Line(s) of event code
|
||||||
12 Unique line(s) of event code
|
12 Unique line(s) of event code
|
||||||
pageIcons
|
pageIcons
|
||||||
6 Component(s)
|
7 Component(s)
|
||||||
0 Line(s) of event code
|
0 Line(s) of event code
|
||||||
0 Unique line(s) of event code
|
0 Unique line(s) of event code
|
||||||
pageTest
|
pageTest
|
||||||
14 Component(s)
|
14 Component(s)
|
||||||
14 Line(s) of event code
|
14 Line(s) of event code
|
||||||
14 Unique line(s) of event code
|
14 Unique line(s) of event code
|
||||||
popupNotify
|
|
||||||
17 Component(s)
|
|
||||||
226 Line(s) of event code
|
|
||||||
143 Unique line(s) of event code
|
|
||||||
popupShutter
|
|
||||||
25 Component(s)
|
|
||||||
388 Line(s) of event code
|
|
||||||
211 Unique line(s) of event code
|
|
||||||
pageStartup
|
|
||||||
19 Component(s)
|
|
||||||
167 Line(s) of event code
|
|
||||||
122 Unique line(s) of event code
|
|
||||||
cardMedia
|
|
||||||
34 Component(s)
|
|
||||||
389 Line(s) of event code
|
|
||||||
210 Unique line(s) of event code
|
|
||||||
popupLight
|
|
||||||
27 Component(s)
|
|
||||||
386 Line(s) of event code
|
|
||||||
211 Unique line(s) of event code
|
|
||||||
popupFan
|
popupFan
|
||||||
27 Component(s)
|
27 Component(s)
|
||||||
342 Line(s) of event code
|
347 Line(s) of event code
|
||||||
199 Unique line(s) of event code
|
202 Unique line(s) of event code
|
||||||
|
cardPower
|
||||||
|
43 Component(s)
|
||||||
|
423 Line(s) of event code
|
||||||
|
293 Unique line(s) of event code
|
||||||
|
popupShutter
|
||||||
|
25 Component(s)
|
||||||
|
394 Line(s) of event code
|
||||||
|
216 Unique line(s) of event code
|
||||||
|
popupLight
|
||||||
|
27 Component(s)
|
||||||
|
391 Line(s) of event code
|
||||||
|
214 Unique line(s) of event code
|
||||||
|
pageStartup
|
||||||
|
19 Component(s)
|
||||||
|
172 Line(s) of event code
|
||||||
|
125 Unique line(s) of event code
|
||||||
cardGrid
|
cardGrid
|
||||||
42 Component(s)
|
42 Component(s)
|
||||||
463 Line(s) of event code
|
474 Line(s) of event code
|
||||||
272 Unique line(s) of event code
|
281 Unique line(s) of event code
|
||||||
cardQR
|
cardQR
|
||||||
32 Component(s)
|
32 Component(s)
|
||||||
404 Line(s) of event code
|
409 Line(s) of event code
|
||||||
235 Unique line(s) of event code
|
238 Unique line(s) of event code
|
||||||
|
cardMedia
|
||||||
|
34 Component(s)
|
||||||
|
394 Line(s) of event code
|
||||||
|
213 Unique line(s) of event code
|
||||||
|
popupNotify
|
||||||
|
19 Component(s)
|
||||||
|
247 Line(s) of event code
|
||||||
|
158 Unique line(s) of event code
|
||||||
screensaver
|
screensaver
|
||||||
38 Component(s)
|
38 Component(s)
|
||||||
341 Line(s) of event code
|
338 Line(s) of event code
|
||||||
263 Unique line(s) of event code
|
262 Unique line(s) of event code
|
||||||
cardAlarm
|
cardAlarm
|
||||||
40 Component(s)
|
40 Component(s)
|
||||||
422 Line(s) of event code
|
427 Line(s) of event code
|
||||||
255 Unique line(s) of event code
|
258 Unique line(s) of event code
|
||||||
cardThermo
|
cardThermo
|
||||||
52 Component(s)
|
52 Component(s)
|
||||||
580 Line(s) of event code
|
585 Line(s) of event code
|
||||||
303 Unique line(s) of event code
|
306 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
77 Component(s)
|
77 Component(s)
|
||||||
1349 Line(s) of event code
|
1359 Line(s) of event code
|
||||||
600 Unique line(s) of event code
|
608 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
14 Page(s)
|
15 Page(s)
|
||||||
450 Component(s)
|
496 Component(s)
|
||||||
5483 Line(s) of event code
|
5986 Line(s) of event code
|
||||||
1478 Unique line(s) of event code
|
1631 Unique line(s) of event code
|
||||||
|
|||||||
@@ -92,6 +92,36 @@ Text tTmp2
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tTmp3
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope : global
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 86
|
||||||
|
y coordinate : 143
|
||||||
|
Width : 146
|
||||||
|
Height : 69
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 1
|
||||||
|
Back. Color : 65535
|
||||||
|
Font Color : 0
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ Text tVersion
|
|||||||
Horizontal Alignment : center
|
Horizontal Alignment : center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : 42
|
Text : 43
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
@@ -601,6 +601,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -645,6 +646,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Page popupFan
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -758,7 +759,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -868,6 +869,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -917,6 +919,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Page popupLight
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -793,7 +794,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -940,6 +941,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -989,6 +991,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -194,8 +194,8 @@ Text tText
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 5
|
x coordinate : 4
|
||||||
y coordinate : 74
|
y coordinate : 76
|
||||||
Width : 307
|
Width : 307
|
||||||
Height : 260
|
Height : 260
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -216,6 +216,66 @@ Text tText
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tTextAlt
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 4
|
||||||
|
y coordinate : 164
|
||||||
|
Width : 306
|
||||||
|
Height : 171
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 65535
|
||||||
|
Horizontal Alignment : left
|
||||||
|
Vertical Alignment : top
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 500
|
||||||
|
Word wrap : enabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tIcon
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 3
|
||||||
|
y coordinate : 74
|
||||||
|
Width : 308
|
||||||
|
Height : 90
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 4
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 65535
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 250
|
||||||
|
Word wrap : enabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
@@ -493,6 +553,25 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
sleepTimeout=sys0
|
sleepTimeout=sys0
|
||||||
|
//font size
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tTextAlt.font=sys0
|
||||||
|
tText.font=sys0
|
||||||
|
//icon
|
||||||
|
spstr strCommand.txt,tIcon.txt,"~",12
|
||||||
|
if(tIcon.txt!="")
|
||||||
|
{
|
||||||
|
vis tIcon,1
|
||||||
|
vis tTextAlt,1
|
||||||
|
vis tText,0
|
||||||
|
tTextAlt.txt=tText.txt
|
||||||
|
tTextAlt.pco=tText.pco
|
||||||
|
}
|
||||||
|
// alt icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",13
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tIcon.pco=sys0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
@@ -546,6 +625,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -600,6 +680,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Page popupShutter
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -366,7 +367,7 @@ Slider hTilt
|
|||||||
// event,buttonPress2,internalNameEntity,positionSlider,50
|
// event,buttonPress2,internalNameEntity,positionSlider,50
|
||||||
//craft command
|
//craft command
|
||||||
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
||||||
covx hPosition.val,tTmp.txt,0,0
|
covx hTilt.val,tTmp.txt,0,0
|
||||||
tSend.txt+=tTmp.txt
|
tSend.txt+=tTmp.txt
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
@@ -949,6 +950,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -998,6 +1000,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -790,7 +790,7 @@ Text tNotifyText
|
|||||||
Fill : solid color
|
Fill : solid color
|
||||||
Style : flat
|
Style : flat
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Font ID : 3
|
Font ID : 0
|
||||||
Back. Color : 0
|
Back. Color : 0
|
||||||
Font Color : 65535
|
Font Color : 65535
|
||||||
Horizontal Alignment : center
|
Horizontal Alignment : center
|
||||||
@@ -1012,7 +1012,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,sleepTimeout,0,0
|
covx tTmp.txt,sleepTimeout,0,0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="weatherUpdate")
|
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
vis tMainIcon,1
|
vis tMainIcon,1
|
||||||
vis tMainIconAlt,0
|
vis tMainIconAlt,0
|
||||||
@@ -1086,16 +1086,8 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tIcon2.txt,"~",19
|
spstr strCommand.txt,tIcon2.txt,"~",19
|
||||||
spstr strCommand.txt,tTmp.txt,"~",20
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,tIcon2.pco,0,0
|
covx tTmp.txt,tIcon2.pco,0,0
|
||||||
if(tNotifyHead.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyHead
|
|
||||||
}
|
|
||||||
if(tNotifyText.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyText
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="color")
|
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,tTime.bco,0,0
|
covx tTmp.txt,tTime.bco,0,0
|
||||||
@@ -1208,6 +1200,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete u[2]+3
|
udelete u[2]+3
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1252,6 +1245,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -788,6 +788,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -837,6 +838,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -865,7 +865,7 @@ Button bText1
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -890,7 +890,7 @@ Button bText2
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -915,7 +915,7 @@ Button bText3
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -940,7 +940,7 @@ Button bText4
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -1040,7 +1040,7 @@ Button bText5
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -1220,6 +1220,7 @@ Hotspot m2
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity3.txt
|
//popupShutter.tHeading.txt=tEntity3.txt
|
||||||
@@ -1246,6 +1247,7 @@ Hotspot m1
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity2.txt
|
//popupShutter.tHeading.txt=tEntity2.txt
|
||||||
@@ -1272,6 +1274,7 @@ Hotspot m0
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity1.txt
|
//popupShutter.tHeading.txt=tEntity1.txt
|
||||||
@@ -1298,6 +1301,7 @@ Hotspot m3
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity4.txt
|
//popupShutter.tHeading.txt=tEntity4.txt
|
||||||
@@ -1324,6 +1328,7 @@ Hotspot m4
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity5.txt
|
pageIcons.tTmp1.txt=tEntity5.txt
|
||||||
pageIcons.tTmp2.txt=entn5.txt
|
pageIcons.tTmp2.txt=entn5.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon5.txt
|
||||||
if(type5.txt=="shutter")
|
if(type5.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity5.txt
|
//popupShutter.tHeading.txt=tEntity5.txt
|
||||||
@@ -2218,6 +2223,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -2267,6 +2273,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -310,6 +310,7 @@ Button bEntity1
|
|||||||
tTmp.txt=type1.txt
|
tTmp.txt=type1.txt
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -346,6 +347,7 @@ Button bEntity2
|
|||||||
tTmp.txt=type2.txt
|
tTmp.txt=type2.txt
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -382,6 +384,7 @@ Button bEntity3
|
|||||||
tTmp.txt=type3.txt
|
tTmp.txt=type3.txt
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -418,6 +421,7 @@ Button bEntity4
|
|||||||
tTmp.txt=type4.txt
|
tTmp.txt=type4.txt
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -454,6 +458,7 @@ Button bEntity5
|
|||||||
tTmp.txt=type5.txt
|
tTmp.txt=type5.txt
|
||||||
pageIcons.tTmp1.txt=tEntity5.txt
|
pageIcons.tTmp1.txt=tEntity5.txt
|
||||||
pageIcons.tTmp2.txt=entn5.txt
|
pageIcons.tTmp2.txt=entn5.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity5.txt
|
||||||
if(type5.txt=="shutter")
|
if(type5.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -490,6 +495,7 @@ Button bEntity6
|
|||||||
tTmp.txt=type6.txt
|
tTmp.txt=type6.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity6.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn6.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity6.txt
|
||||||
if(type6.txt=="shutter")
|
if(type6.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -787,6 +793,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -836,6 +843,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -706,6 +706,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -755,6 +756,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
873
HMI/US/portrait/n2t-out/cardPower.txt
Normal file
873
HMI/US/portrait/n2t-out/cardPower.txt
Normal file
@@ -0,0 +1,873 @@
|
|||||||
|
Page cardPower
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Locked : no
|
||||||
|
Swide up page ID : disabled
|
||||||
|
Swide down page ID : disabled
|
||||||
|
Swide left page ID : disabled
|
||||||
|
Swide right page ID : disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Preinitialize Event
|
||||||
|
dim=dimValueNormal
|
||||||
|
vis p0,0
|
||||||
|
vis tSend,0
|
||||||
|
vis tInstruction,0
|
||||||
|
vis tTmp,0
|
||||||
|
vis tId,0
|
||||||
|
vis bPrev,0
|
||||||
|
vis bNext,0
|
||||||
|
tsw h0,0
|
||||||
|
tsw h1,0
|
||||||
|
tsw h2,0
|
||||||
|
tsw h3,0
|
||||||
|
tsw h4,0
|
||||||
|
tsw h5,0
|
||||||
|
vis h0,0
|
||||||
|
vis h1,0
|
||||||
|
vis h2,0
|
||||||
|
vis h3,0
|
||||||
|
vis h4,0
|
||||||
|
vis h5,0
|
||||||
|
vis t0Icon,0
|
||||||
|
vis t1Icon,0
|
||||||
|
vis t2Icon,0
|
||||||
|
vis t3Icon,0
|
||||||
|
vis t4Icon,0
|
||||||
|
vis t5Icon,0
|
||||||
|
cardPower.bco=defaultBcoColor
|
||||||
|
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)
|
||||||
|
{
|
||||||
|
b[sys0].pic=19
|
||||||
|
b[sys0].pic1=19
|
||||||
|
b[sys0].pic2=15
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Variable (string) strCommand
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 275
|
||||||
|
|
||||||
|
Variable (string) tSend
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 200
|
||||||
|
|
||||||
|
Variable (string) tTmp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 10
|
||||||
|
|
||||||
|
Variable (string) tId
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tInstruction
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (int32) t0Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t1Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t3Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t4Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t5Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) t2Speed
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Text tHeading
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 40
|
||||||
|
|
||||||
|
Text t4Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î´½
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t5Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t0Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î¢
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t2Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î °
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t1Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î¶
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t3Icon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text : î °
|
||||||
|
Max. Text Size : 5
|
||||||
|
|
||||||
|
Text t0u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t1u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t2u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t5u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t4u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text t3u
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text tHome
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Picture p0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
|
||||||
|
Slider h1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h4
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h2
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h5
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Slider h3
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Button bNext
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î³
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,cardAlarm,bNext"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Button bPrev
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î°
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,cardAlarm,"
|
||||||
|
if(bPrev.txt=="î¶")
|
||||||
|
{
|
||||||
|
tSend.txt+="bUp"
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
tSend.txt+="bPrev"
|
||||||
|
}
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Hotspot mSwipeNext
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
click bNext,1
|
||||||
|
|
||||||
|
Hotspot mSwipeUp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
click bPrev,1
|
||||||
|
|
||||||
|
Hotspot mSwipePrev
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
click bPrev,1
|
||||||
|
|
||||||
|
Timer tmSerial
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 50
|
||||||
|
Enabled : yes
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
// data available
|
||||||
|
if(usize>1)
|
||||||
|
{
|
||||||
|
bufferPos=0
|
||||||
|
while(bufferPos<usize)
|
||||||
|
{
|
||||||
|
// check for 0x55 0xBB - Command Init Secuence
|
||||||
|
if(u[bufferPos]==187&&u[bufferPos-1]==85)
|
||||||
|
{
|
||||||
|
//remove garbage at the start of the buffer if there's any to free buffer for command
|
||||||
|
if(u[bufferPos]!=1)
|
||||||
|
{
|
||||||
|
udelete bufferPos-1
|
||||||
|
}
|
||||||
|
//instruction is now aligned with buffer, because we deleted garbage before instrcution
|
||||||
|
//get length after init sequence (check if there are more than to bytes in buffer)
|
||||||
|
if(3<usize)
|
||||||
|
{
|
||||||
|
// check if serial buffer has reached the announced length
|
||||||
|
ucopy payloadLength,2,2,0
|
||||||
|
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
|
||||||
|
payloadLength+=3
|
||||||
|
// payload length does also not contain crc, so we are adding another 2 bytes for crc
|
||||||
|
payloadLength+=2
|
||||||
|
if(payloadLength<usize)
|
||||||
|
{
|
||||||
|
// calculate crc
|
||||||
|
crcrest 1,0xFFFF
|
||||||
|
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
|
||||||
|
//crcputu 3,u[2]
|
||||||
|
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
|
||||||
|
crcputu 0,payloadLength-1
|
||||||
|
// get recived crc to be able to compare it
|
||||||
|
ucopy recvCrc,payloadLength-1,2,0
|
||||||
|
// compare crc with recived value
|
||||||
|
if(crcval==recvCrc)
|
||||||
|
{
|
||||||
|
// crc is okay
|
||||||
|
// here is the location where acual code should be
|
||||||
|
// write command to variable strCommand
|
||||||
|
ucopy strCommand.txt,4,payloadLength-5,0
|
||||||
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
|
if(tInstruction.txt=="entityUpd")
|
||||||
|
{
|
||||||
|
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
|
||||||
|
spstr strCommand.txt,tHeading.txt,"~",1
|
||||||
|
// navigation icons
|
||||||
|
spstr strCommand.txt,tId.txt,"~",2
|
||||||
|
spstr tId.txt,tTmp.txt,"|",0
|
||||||
|
if(tTmp.txt=="0")
|
||||||
|
{
|
||||||
|
vis bPrev,0
|
||||||
|
tsw mSwipePrev,0
|
||||||
|
tsw mSwipeUp,0
|
||||||
|
}
|
||||||
|
if(tTmp.txt=="1")
|
||||||
|
{
|
||||||
|
vis bPrev,1
|
||||||
|
tsw mSwipePrev,1
|
||||||
|
tsw mSwipeUp,0
|
||||||
|
bPrev.txt="î°"
|
||||||
|
}
|
||||||
|
if(tTmp.txt=="2")
|
||||||
|
{
|
||||||
|
vis bPrev,1
|
||||||
|
tsw mSwipePrev,0
|
||||||
|
tsw mSwipeUp,1
|
||||||
|
bPrev.txt="î¶"
|
||||||
|
}
|
||||||
|
spstr tId.txt,tTmp.txt,"|",1
|
||||||
|
if(tTmp.txt=="0")
|
||||||
|
{
|
||||||
|
vis bNext,0
|
||||||
|
tsw mSwipeNext,0
|
||||||
|
}
|
||||||
|
if(tTmp.txt=="1")
|
||||||
|
{
|
||||||
|
vis bNext,1
|
||||||
|
tsw mSwipeNext,1
|
||||||
|
bNext.txt="î³"
|
||||||
|
}
|
||||||
|
// icon color home
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
covx tTmp.txt,t1.pco,0,0
|
||||||
|
// icon home
|
||||||
|
spstr strCommand.txt,t1.txt,"~",4
|
||||||
|
// text home
|
||||||
|
spstr strCommand.txt,tHome.txt,"~",5
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
|
covx tTmp.txt,t0Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t0Icon.txt,"~",7
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",8
|
||||||
|
covx tTmp.txt,t0Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t0u.txt,"~",9
|
||||||
|
if(t0Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t0Icon,1
|
||||||
|
vis t0u,1
|
||||||
|
vis h0,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t0Icon,0
|
||||||
|
vis t0u,0
|
||||||
|
vis h0,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
|
covx tTmp.txt,t1Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t1Icon.txt,"~",11
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",12
|
||||||
|
covx tTmp.txt,t1Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t1u.txt,"~",13
|
||||||
|
if(t1Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t1Icon,1
|
||||||
|
vis t1u,1
|
||||||
|
vis h1,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t1Icon,0
|
||||||
|
vis t1u,0
|
||||||
|
vis h1,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",14
|
||||||
|
covx tTmp.txt,t2Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t2Icon.txt,"~",15
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
|
covx tTmp.txt,t2Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t2u.txt,"~",17
|
||||||
|
if(t2Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t2Icon,1
|
||||||
|
vis t2u,1
|
||||||
|
vis h2,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t2Icon,0
|
||||||
|
vis t2u,0
|
||||||
|
vis h2,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",18
|
||||||
|
covx tTmp.txt,t3Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t3Icon.txt,"~",19
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
|
covx tTmp.txt,t3Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t3u.txt,"~",21
|
||||||
|
if(t3Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t3Icon,1
|
||||||
|
vis t3u,1
|
||||||
|
vis h3,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t3Icon,0
|
||||||
|
vis t3u,0
|
||||||
|
vis h3,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",22
|
||||||
|
covx tTmp.txt,t4Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t4Icon.txt,"~",23
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",24
|
||||||
|
covx tTmp.txt,t4Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t4u.txt,"~",25
|
||||||
|
if(t4Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t4Icon,1
|
||||||
|
vis t4u,1
|
||||||
|
vis h4,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t4Icon,0
|
||||||
|
vis t4u,0
|
||||||
|
vis h4,0
|
||||||
|
}
|
||||||
|
// iconColor
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
|
covx tTmp.txt,t5Icon.pco,0,0
|
||||||
|
// icon
|
||||||
|
spstr strCommand.txt,t5Icon.txt,"~",27
|
||||||
|
// speed
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",28
|
||||||
|
covx tTmp.txt,t5Speed.val,0,0
|
||||||
|
// lower text
|
||||||
|
spstr strCommand.txt,t5u.txt,"~",29
|
||||||
|
if(t5Icon.txt!="")
|
||||||
|
{
|
||||||
|
vis t5Icon,1
|
||||||
|
vis t5u,1
|
||||||
|
vis h5,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis t5Icon,0
|
||||||
|
vis t5u,0
|
||||||
|
vis h5,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="pageType")
|
||||||
|
{
|
||||||
|
sleepValue=0
|
||||||
|
//command format pageType,specialPageName
|
||||||
|
//write name of speical page to tId
|
||||||
|
spstr strCommand.txt,tId.txt,"~",1
|
||||||
|
//save second arg if there's one
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
//save third arg if there's one
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
|
udelete payloadLength-1
|
||||||
|
bufferPos=0
|
||||||
|
if(tId.txt=="pageStartup")
|
||||||
|
{
|
||||||
|
page pageStartup
|
||||||
|
}
|
||||||
|
if(tId.txt=="screensaver")
|
||||||
|
{
|
||||||
|
page screensaver
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardEntities")
|
||||||
|
{
|
||||||
|
page cardEntities
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardGrid")
|
||||||
|
{
|
||||||
|
page cardGrid
|
||||||
|
}
|
||||||
|
if(tId.txt=="popupLight")
|
||||||
|
{
|
||||||
|
pageIcons.tTmp1.txt=tTmp.txt
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
|
if(tId.txt=="popupShutter")
|
||||||
|
{
|
||||||
|
pageIcons.tTmp1.txt=tTmp.txt
|
||||||
|
page popupShutter
|
||||||
|
}
|
||||||
|
if(tId.txt=="popupNotify")
|
||||||
|
{
|
||||||
|
page popupNotify
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardThermo")
|
||||||
|
{
|
||||||
|
page cardThermo
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardMedia")
|
||||||
|
{
|
||||||
|
page cardMedia
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardAlarm")
|
||||||
|
{
|
||||||
|
page cardAlarm
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardQR")
|
||||||
|
{
|
||||||
|
page cardQR
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="time")
|
||||||
|
{
|
||||||
|
// get set time to global variable
|
||||||
|
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="date")
|
||||||
|
{
|
||||||
|
// get set date to global variable
|
||||||
|
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="dimmode")
|
||||||
|
{
|
||||||
|
// get value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
covx tTmp.txt,dimValue,0,0
|
||||||
|
// get value normal
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
covx tTmp.txt,dimValueNormal,0,0
|
||||||
|
dim=dimValueNormal
|
||||||
|
// get background color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,defaultBcoColor,0,0
|
||||||
|
}
|
||||||
|
// get font color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="timeout")
|
||||||
|
{
|
||||||
|
//set timeout to global var
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
}
|
||||||
|
// end of user code
|
||||||
|
udelete payloadLength-1
|
||||||
|
bufferPos=0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// next character
|
||||||
|
bufferPos++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Timer tmSleep
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 1000
|
||||||
|
Enabled : yes
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
if(sleepTimeout!=0&&dimValue!=dim)
|
||||||
|
{
|
||||||
|
sleepValue+=1
|
||||||
|
if(sleepTimeout<=sleepValue)
|
||||||
|
{
|
||||||
|
sleepValue=0
|
||||||
|
dim=dimValue
|
||||||
|
tSend.txt="event,sleepReached,cardAlarm"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Timer tm0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 100
|
||||||
|
Enabled : yes
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
sys0=h0.val+t0Speed.val
|
||||||
|
if(sys0>h0.maxval)
|
||||||
|
{
|
||||||
|
h0.val=h0.minval
|
||||||
|
}
|
||||||
|
if(sys0<h0.minval)
|
||||||
|
{
|
||||||
|
h0.val=h0.maxval
|
||||||
|
}
|
||||||
|
h0.val+=t0Speed.val
|
||||||
|
sys0=h1.val+t1Speed.val
|
||||||
|
if(sys0>h1.maxval)
|
||||||
|
{
|
||||||
|
h1.val=h1.minval
|
||||||
|
}
|
||||||
|
if(sys0<h1.minval)
|
||||||
|
{
|
||||||
|
h1.val=h1.maxval
|
||||||
|
}
|
||||||
|
h1.val+=t1Speed.val
|
||||||
|
sys0=h2.val+t2Speed.val
|
||||||
|
if(sys0>h2.maxval)
|
||||||
|
{
|
||||||
|
h2.val=h2.minval
|
||||||
|
}
|
||||||
|
if(sys0<h2.minval)
|
||||||
|
{
|
||||||
|
h2.val=h2.maxval
|
||||||
|
}
|
||||||
|
h2.val+=t2Speed.val
|
||||||
|
sys0=h3.val+t3Speed.val
|
||||||
|
if(sys0>h3.maxval)
|
||||||
|
{
|
||||||
|
h3.val=h3.minval
|
||||||
|
}
|
||||||
|
if(sys0<h3.minval)
|
||||||
|
{
|
||||||
|
h3.val=h3.maxval
|
||||||
|
}
|
||||||
|
h3.val+=t3Speed.val
|
||||||
|
sys0=h4.val+t4Speed.val
|
||||||
|
if(sys0>h4.maxval)
|
||||||
|
{
|
||||||
|
h4.val=h4.minval
|
||||||
|
}
|
||||||
|
if(sys0<h4.minval)
|
||||||
|
{
|
||||||
|
h4.val=h4.maxval
|
||||||
|
}
|
||||||
|
h4.val+=t4Speed.val
|
||||||
|
sys0=h5.val+t5Speed.val
|
||||||
|
if(sys0>h5.maxval)
|
||||||
|
{
|
||||||
|
h5.val=h5.minval
|
||||||
|
}
|
||||||
|
if(sys0<h5.minval)
|
||||||
|
{
|
||||||
|
h5.val=h5.maxval
|
||||||
|
}
|
||||||
|
h5.val+=t5Speed.val
|
||||||
|
|
||||||
|
TouchCap tc0
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
sleepValue=0
|
||||||
|
|
||||||
@@ -657,6 +657,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -706,6 +707,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -1093,6 +1093,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1142,6 +1143,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,6 +42,16 @@ Text tTmp2
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 80
|
Max. Text Size : 80
|
||||||
|
|
||||||
|
Text tTmp3
|
||||||
|
Attributes
|
||||||
|
Scope : global
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ Text tVersion
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Text : 42
|
Text : 43
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
@@ -306,6 +306,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -350,6 +351,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Page popupFan
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -467,7 +468,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -577,6 +578,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -626,6 +628,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Page popupLight
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -466,7 +467,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -613,6 +614,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -662,6 +664,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -104,6 +104,26 @@ Text tText
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 500
|
Max. Text Size : 500
|
||||||
|
|
||||||
|
Text tTextAlt
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 500
|
||||||
|
|
||||||
|
Text tIcon
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 250
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -303,6 +323,25 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
sleepTimeout=sys0
|
sleepTimeout=sys0
|
||||||
|
//font size
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tTextAlt.font=sys0
|
||||||
|
tText.font=sys0
|
||||||
|
//icon
|
||||||
|
spstr strCommand.txt,tIcon.txt,"~",12
|
||||||
|
if(tIcon.txt!="")
|
||||||
|
{
|
||||||
|
vis tIcon,1
|
||||||
|
vis tTextAlt,1
|
||||||
|
vis tText,0
|
||||||
|
tTextAlt.txt=tText.txt
|
||||||
|
tTextAlt.pco=tText.pco
|
||||||
|
}
|
||||||
|
// alt icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",13
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tIcon.pco=sys0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
@@ -356,6 +395,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -410,6 +450,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Page popupShutter
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -212,7 +213,7 @@ Slider hTilt
|
|||||||
// event,buttonPress2,internalNameEntity,positionSlider,50
|
// event,buttonPress2,internalNameEntity,positionSlider,50
|
||||||
//craft command
|
//craft command
|
||||||
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
||||||
covx hPosition.val,tTmp.txt,0,0
|
covx hTilt.val,tTmp.txt,0,0
|
||||||
tSend.txt+=tTmp.txt
|
tSend.txt+=tTmp.txt
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
@@ -639,6 +640,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -688,6 +690,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -447,7 +447,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,sleepTimeout,0,0
|
covx tTmp.txt,sleepTimeout,0,0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="weatherUpdate")
|
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
vis tMainIcon,1
|
vis tMainIcon,1
|
||||||
vis tMainIconAlt,0
|
vis tMainIconAlt,0
|
||||||
@@ -521,16 +521,8 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tIcon2.txt,"~",19
|
spstr strCommand.txt,tIcon2.txt,"~",19
|
||||||
spstr strCommand.txt,tTmp.txt,"~",20
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,tIcon2.pco,0,0
|
covx tTmp.txt,tIcon2.pco,0,0
|
||||||
if(tNotifyHead.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyHead
|
|
||||||
}
|
|
||||||
if(tNotifyText.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyText
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="color")
|
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,tTime.bco,0,0
|
covx tTmp.txt,tTime.bco,0,0
|
||||||
@@ -643,6 +635,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete u[2]+3
|
udelete u[2]+3
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -687,6 +680,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -18,7 +18,12 @@ with open(os.path.join(__location__, "../../../apps/nspanel-lovelace-ui/luibacke
|
|||||||
f.write(f" '{name}': '{iconchar}',\n")
|
f.write(f" '{name}': '{iconchar}',\n")
|
||||||
f.write("}\n")
|
f.write("}\n")
|
||||||
f.write("""
|
f.write("""
|
||||||
|
import apis
|
||||||
def get_icon_id(ma_name):
|
def get_icon_id(ma_name):
|
||||||
|
if "text:" in ma_name:
|
||||||
|
return ma_name.replace("text:","")
|
||||||
|
if "ha:" in ma_name:
|
||||||
|
return apis.ha_api.render_template(ma_name.replace("ha:",""))
|
||||||
ma_name = ma_name.replace("mdi:","")
|
ma_name = ma_name.replace("mdi:","")
|
||||||
if ma_name in icons:
|
if ma_name in icons:
|
||||||
return icons[ma_name]
|
return icons[ma_name]
|
||||||
|
|||||||
@@ -10,11 +10,13 @@ head = sharedhead + """
|
|||||||
covx tTmp.txt,t1.pco,0,0
|
covx tTmp.txt,t1.pco,0,0
|
||||||
// icon home
|
// icon home
|
||||||
spstr strCommand.txt,t1.txt,"~",4
|
spstr strCommand.txt,t1.txt,"~",4
|
||||||
|
// text home
|
||||||
|
spstr strCommand.txt,tHome.txt,"~",5
|
||||||
"""
|
"""
|
||||||
print(head)
|
print(head)
|
||||||
start = 5
|
start = 6
|
||||||
for i in range(0,6):
|
for i in range(0,6):
|
||||||
idxstart = start + (i)*5
|
idxstart = start + (i)*4
|
||||||
item = f"""
|
item = f"""
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart}
|
||||||
@@ -24,21 +26,17 @@ for i in range(0,6):
|
|||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+2}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart+2}
|
||||||
covx tTmp.txt,t{i}Speed.val,0,0
|
covx tTmp.txt,t{i}Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t{i}o.txt,"~",{idxstart+3}
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t{i}u.txt,"~",{idxstart+4}
|
spstr strCommand.txt,t{i}u.txt,"~",{idxstart+3}
|
||||||
|
|
||||||
if(t{i}Icon.txt!="")
|
if(t{i}Icon.txt!="")
|
||||||
{{
|
{{
|
||||||
vis t{i}Icon,1
|
vis t{i}Icon,1
|
||||||
vis t{i}o,1
|
|
||||||
vis t{i}u,1
|
vis t{i}u,1
|
||||||
vis h{i},1
|
vis h{i},1
|
||||||
}}else
|
}}else
|
||||||
{{
|
{{
|
||||||
vis t{i}Icon,0
|
vis t{i}Icon,0
|
||||||
vis t{i}o,0
|
|
||||||
vis t{i}u,0
|
vis t{i}u,0
|
||||||
vis h{i},0
|
vis h{i},0
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ sharedfoot = """
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -104,6 +105,10 @@ sharedfoot = """
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1370,6 +1370,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1419,6 +1420,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -1507,9 +1507,9 @@ Button bText1
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 261
|
x coordinate : 261
|
||||||
y coordinate : 84
|
y coordinate : 74
|
||||||
Width : 166
|
Width : 166
|
||||||
Height : 30
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1525,8 +1525,8 @@ Button bText1
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1554,9 +1554,9 @@ Button bText2
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 261
|
x coordinate : 261
|
||||||
y coordinate : 140
|
y coordinate : 132
|
||||||
Width : 166
|
Width : 166
|
||||||
Height : 30
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1572,8 +1572,8 @@ Button bText2
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1601,9 +1601,9 @@ Button bText3
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 262
|
x coordinate : 262
|
||||||
y coordinate : 197
|
y coordinate : 188
|
||||||
Width : 166
|
Width : 166
|
||||||
Height : 30
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1619,8 +1619,8 @@ Button bText3
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1648,9 +1648,9 @@ Button bText4
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 262
|
x coordinate : 262
|
||||||
y coordinate : 254
|
y coordinate : 244
|
||||||
Width : 166
|
Width : 166
|
||||||
Height : 30
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1666,8 +1666,8 @@ Button bText4
|
|||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1912,6 +1912,7 @@ Hotspot m2
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity3.txt
|
//popupShutter.tHeading.txt=tEntity3.txt
|
||||||
@@ -1947,6 +1948,7 @@ Hotspot m1
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity2.txt
|
//popupShutter.tHeading.txt=tEntity2.txt
|
||||||
@@ -1982,6 +1984,7 @@ Hotspot m0
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity1.txt
|
//popupShutter.tHeading.txt=tEntity1.txt
|
||||||
@@ -2017,6 +2020,7 @@ Hotspot m3
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity4.txt
|
//popupShutter.tHeading.txt=tEntity4.txt
|
||||||
@@ -2790,6 +2794,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -2839,6 +2844,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -608,6 +608,7 @@ Button bEntity1
|
|||||||
tTmp.txt=type1.txt
|
tTmp.txt=type1.txt
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -636,7 +637,7 @@ Button bEntity2
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 153
|
x coordinate : 152
|
||||||
y coordinate : 75
|
y coordinate : 75
|
||||||
Width : 140
|
Width : 140
|
||||||
Height : 80
|
Height : 80
|
||||||
@@ -666,6 +667,7 @@ Button bEntity2
|
|||||||
tTmp.txt=type2.txt
|
tTmp.txt=type2.txt
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -724,6 +726,7 @@ Button bEntity3
|
|||||||
tTmp.txt=type3.txt
|
tTmp.txt=type3.txt
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -782,6 +785,7 @@ Button bEntity4
|
|||||||
tTmp.txt=type4.txt
|
tTmp.txt=type4.txt
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -840,6 +844,7 @@ Button bEntity5
|
|||||||
tTmp.txt=type5.txt
|
tTmp.txt=type5.txt
|
||||||
pageIcons.tTmp1.txt=tEntity5.txt
|
pageIcons.tTmp1.txt=tEntity5.txt
|
||||||
pageIcons.tTmp2.txt=entn5.txt
|
pageIcons.tTmp2.txt=entn5.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity5.txt
|
||||||
if(type5.txt=="shutter")
|
if(type5.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -898,6 +903,7 @@ Button bEntity6
|
|||||||
tTmp.txt=type6.txt
|
tTmp.txt=type6.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity6.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn6.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity6.txt
|
||||||
if(type6.txt=="shutter")
|
if(type6.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -1232,6 +1238,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1281,6 +1288,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1137,6 +1137,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1186,6 +1187,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -34,6 +34,36 @@ Page cardPower
|
|||||||
tsw h3,0
|
tsw h3,0
|
||||||
tsw h4,0
|
tsw h4,0
|
||||||
tsw h5,0
|
tsw h5,0
|
||||||
|
vis h0,0
|
||||||
|
vis h1,0
|
||||||
|
vis h2,0
|
||||||
|
vis h3,0
|
||||||
|
vis h4,0
|
||||||
|
vis h5,0
|
||||||
|
vis t0Icon,0
|
||||||
|
vis t1Icon,0
|
||||||
|
vis t2Icon,0
|
||||||
|
vis t3Icon,0
|
||||||
|
vis t4Icon,0
|
||||||
|
vis t5Icon,0
|
||||||
|
cardPower.bco=defaultBcoColor
|
||||||
|
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)
|
||||||
|
{
|
||||||
|
b[sys0].pic=19
|
||||||
|
b[sys0].pic1=19
|
||||||
|
b[sys0].pic2=15
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
@@ -72,37 +102,37 @@ Variable (string) tInstruction
|
|||||||
|
|
||||||
Variable (int32) t0Speed
|
Variable (int32) t0Speed
|
||||||
Attributes
|
Attributes
|
||||||
ID : 42
|
ID : 36
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (int32) t1Speed
|
Variable (int32) t1Speed
|
||||||
Attributes
|
Attributes
|
||||||
ID : 43
|
ID : 37
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (int32) t3Speed
|
Variable (int32) t3Speed
|
||||||
Attributes
|
Attributes
|
||||||
ID : 44
|
ID : 38
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (int32) t4Speed
|
Variable (int32) t4Speed
|
||||||
Attributes
|
Attributes
|
||||||
ID : 45
|
ID : 39
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (int32) t5Speed
|
Variable (int32) t5Speed
|
||||||
Attributes
|
Attributes
|
||||||
ID : 46
|
ID : 40
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (int32) t2Speed
|
Variable (int32) t2Speed
|
||||||
Attributes
|
Attributes
|
||||||
ID : 47
|
ID : 41
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
@@ -369,37 +399,7 @@ Text t0u
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 82
|
x coordinate : 82
|
||||||
y coordinate : 117
|
y coordinate : 132
|
||||||
Width : 108
|
|
||||||
Height : 30
|
|
||||||
Effect : load
|
|
||||||
Effect Priority : 0
|
|
||||||
Effect Time : 300
|
|
||||||
Fill : solid color
|
|
||||||
Style : flat
|
|
||||||
Associated Keyboard : none
|
|
||||||
Font ID : 0
|
|
||||||
Back. Color : 6371
|
|
||||||
Font Color : 65535
|
|
||||||
Horizontal Alignment : center
|
|
||||||
Vertical Alignment : center
|
|
||||||
Input Type : character
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
Word wrap : disabled
|
|
||||||
Horizontal Spacing : 0
|
|
||||||
Vertical Spacing : 0
|
|
||||||
|
|
||||||
Text t0o
|
|
||||||
Attributes
|
|
||||||
ID : 31
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Opacity : 127
|
|
||||||
x coordinate : 82
|
|
||||||
y coordinate : 70
|
|
||||||
Width : 108
|
Width : 108
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -422,74 +422,14 @@ Text t0o
|
|||||||
|
|
||||||
Text t1u
|
Text t1u
|
||||||
Attributes
|
Attributes
|
||||||
ID : 32
|
ID : 31
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 82
|
x coordinate : 82
|
||||||
y coordinate : 194
|
y coordinate : 209
|
||||||
Width : 108
|
|
||||||
Height : 30
|
|
||||||
Effect : load
|
|
||||||
Effect Priority : 0
|
|
||||||
Effect Time : 300
|
|
||||||
Fill : solid color
|
|
||||||
Style : flat
|
|
||||||
Associated Keyboard : none
|
|
||||||
Font ID : 0
|
|
||||||
Back. Color : 6371
|
|
||||||
Font Color : 65535
|
|
||||||
Horizontal Alignment : center
|
|
||||||
Vertical Alignment : center
|
|
||||||
Input Type : character
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
Word wrap : disabled
|
|
||||||
Horizontal Spacing : 0
|
|
||||||
Vertical Spacing : 0
|
|
||||||
|
|
||||||
Text t1o
|
|
||||||
Attributes
|
|
||||||
ID : 33
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Opacity : 127
|
|
||||||
x coordinate : 82
|
|
||||||
y coordinate : 147
|
|
||||||
Width : 108
|
|
||||||
Height : 30
|
|
||||||
Effect : load
|
|
||||||
Effect Priority : 0
|
|
||||||
Effect Time : 300
|
|
||||||
Fill : solid color
|
|
||||||
Style : flat
|
|
||||||
Associated Keyboard : none
|
|
||||||
Font ID : 0
|
|
||||||
Back. Color : 6371
|
|
||||||
Font Color : 65535
|
|
||||||
Horizontal Alignment : center
|
|
||||||
Vertical Alignment : center
|
|
||||||
Input Type : character
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
Word wrap : disabled
|
|
||||||
Horizontal Spacing : 0
|
|
||||||
Vertical Spacing : 0
|
|
||||||
|
|
||||||
Text t2o
|
|
||||||
Attributes
|
|
||||||
ID : 34
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Opacity : 127
|
|
||||||
x coordinate : 82
|
|
||||||
y coordinate : 224
|
|
||||||
Width : 108
|
Width : 108
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -512,14 +452,14 @@ Text t2o
|
|||||||
|
|
||||||
Text t2u
|
Text t2u
|
||||||
Attributes
|
Attributes
|
||||||
ID : 35
|
ID : 32
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 82
|
x coordinate : 82
|
||||||
y coordinate : 271
|
y coordinate : 285
|
||||||
Width : 108
|
Width : 108
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -542,44 +482,14 @@ Text t2u
|
|||||||
|
|
||||||
Text t5u
|
Text t5u
|
||||||
Attributes
|
Attributes
|
||||||
ID : 36
|
ID : 33
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 262
|
x coordinate : 262
|
||||||
y coordinate : 271
|
y coordinate : 285
|
||||||
Width : 108
|
|
||||||
Height : 30
|
|
||||||
Effect : load
|
|
||||||
Effect Priority : 0
|
|
||||||
Effect Time : 300
|
|
||||||
Fill : solid color
|
|
||||||
Style : flat
|
|
||||||
Associated Keyboard : none
|
|
||||||
Font ID : 0
|
|
||||||
Back. Color : 6371
|
|
||||||
Font Color : 65535
|
|
||||||
Horizontal Alignment : center
|
|
||||||
Vertical Alignment : center
|
|
||||||
Input Type : character
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
Word wrap : disabled
|
|
||||||
Horizontal Spacing : 0
|
|
||||||
Vertical Spacing : 0
|
|
||||||
|
|
||||||
Text t5o
|
|
||||||
Attributes
|
|
||||||
ID : 37
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Opacity : 127
|
|
||||||
x coordinate : 262
|
|
||||||
y coordinate : 224
|
|
||||||
Width : 108
|
Width : 108
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -602,44 +512,14 @@ Text t5o
|
|||||||
|
|
||||||
Text t4u
|
Text t4u
|
||||||
Attributes
|
Attributes
|
||||||
ID : 38
|
ID : 34
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 262
|
x coordinate : 262
|
||||||
y coordinate : 194
|
y coordinate : 209
|
||||||
Width : 108
|
|
||||||
Height : 30
|
|
||||||
Effect : load
|
|
||||||
Effect Priority : 0
|
|
||||||
Effect Time : 300
|
|
||||||
Fill : solid color
|
|
||||||
Style : flat
|
|
||||||
Associated Keyboard : none
|
|
||||||
Font ID : 0
|
|
||||||
Back. Color : 6371
|
|
||||||
Font Color : 65535
|
|
||||||
Horizontal Alignment : center
|
|
||||||
Vertical Alignment : center
|
|
||||||
Input Type : character
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
Word wrap : disabled
|
|
||||||
Horizontal Spacing : 0
|
|
||||||
Vertical Spacing : 0
|
|
||||||
|
|
||||||
Text t4o
|
|
||||||
Attributes
|
|
||||||
ID : 39
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Opacity : 127
|
|
||||||
x coordinate : 262
|
|
||||||
y coordinate : 147
|
|
||||||
Width : 108
|
Width : 108
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -662,14 +542,14 @@ Text t4o
|
|||||||
|
|
||||||
Text t3u
|
Text t3u
|
||||||
Attributes
|
Attributes
|
||||||
ID : 40
|
ID : 35
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 262
|
x coordinate : 262
|
||||||
y coordinate : 117
|
y coordinate : 132
|
||||||
Width : 108
|
Width : 108
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -690,18 +570,18 @@ Text t3u
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Text t3o
|
Text tHome
|
||||||
Attributes
|
Attributes
|
||||||
ID : 41
|
ID : 42
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 262
|
x coordinate : 200
|
||||||
y coordinate : 70
|
y coordinate : 214
|
||||||
Width : 108
|
Width : 56
|
||||||
Height : 30
|
Height : 81
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -716,7 +596,7 @@ Text t3o
|
|||||||
Input Type : character
|
Input Type : character
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
Word wrap : disabled
|
Word wrap : enabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
@@ -1144,28 +1024,26 @@ Timer tmSerial
|
|||||||
covx tTmp.txt,t1.pco,0,0
|
covx tTmp.txt,t1.pco,0,0
|
||||||
// icon home
|
// icon home
|
||||||
spstr strCommand.txt,t1.txt,"~",4
|
spstr strCommand.txt,t1.txt,"~",4
|
||||||
|
// text home
|
||||||
|
spstr strCommand.txt,tHome.txt,"~",5
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
covx tTmp.txt,t0Icon.pco,0,0
|
covx tTmp.txt,t0Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t0Icon.txt,"~",6
|
spstr strCommand.txt,t0Icon.txt,"~",7
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",7
|
spstr strCommand.txt,tTmp.txt,"~",8
|
||||||
covx tTmp.txt,t0Speed.val,0,0
|
covx tTmp.txt,t0Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t0o.txt,"~",8
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t0u.txt,"~",9
|
spstr strCommand.txt,t0u.txt,"~",9
|
||||||
if(t0Icon.txt!="")
|
if(t0Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t0Icon,1
|
vis t0Icon,1
|
||||||
vis t0o,1
|
|
||||||
vis t0u,1
|
vis t0u,1
|
||||||
vis h0,1
|
vis h0,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t0Icon,0
|
vis t0Icon,0
|
||||||
vis t0o,0
|
|
||||||
vis t0u,0
|
vis t0u,0
|
||||||
vis h0,0
|
vis h0,0
|
||||||
}
|
}
|
||||||
@@ -1177,120 +1055,100 @@ Timer tmSerial
|
|||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",12
|
spstr strCommand.txt,tTmp.txt,"~",12
|
||||||
covx tTmp.txt,t1Speed.val,0,0
|
covx tTmp.txt,t1Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t1o.txt,"~",13
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t1u.txt,"~",14
|
spstr strCommand.txt,t1u.txt,"~",13
|
||||||
if(t1Icon.txt!="")
|
if(t1Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t1Icon,1
|
vis t1Icon,1
|
||||||
vis t1o,1
|
|
||||||
vis t1u,1
|
vis t1u,1
|
||||||
vis h1,1
|
vis h1,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t1Icon,0
|
vis t1Icon,0
|
||||||
vis t1o,0
|
|
||||||
vis t1u,0
|
vis t1u,0
|
||||||
vis h1,0
|
vis h1,0
|
||||||
}
|
}
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
spstr strCommand.txt,tTmp.txt,"~",14
|
||||||
covx tTmp.txt,t2Icon.pco,0,0
|
covx tTmp.txt,t2Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t2Icon.txt,"~",16
|
spstr strCommand.txt,t2Icon.txt,"~",15
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
covx tTmp.txt,t2Speed.val,0,0
|
covx tTmp.txt,t2Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t2o.txt,"~",18
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t2u.txt,"~",19
|
spstr strCommand.txt,t2u.txt,"~",17
|
||||||
if(t2Icon.txt!="")
|
if(t2Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t2Icon,1
|
vis t2Icon,1
|
||||||
vis t2o,1
|
|
||||||
vis t2u,1
|
vis t2u,1
|
||||||
vis h2,1
|
vis h2,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t2Icon,0
|
vis t2Icon,0
|
||||||
vis t2o,0
|
|
||||||
vis t2u,0
|
vis t2u,0
|
||||||
vis h2,0
|
vis h2,0
|
||||||
}
|
}
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",20
|
spstr strCommand.txt,tTmp.txt,"~",18
|
||||||
covx tTmp.txt,t3Icon.pco,0,0
|
covx tTmp.txt,t3Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t3Icon.txt,"~",21
|
spstr strCommand.txt,t3Icon.txt,"~",19
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",22
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,t3Speed.val,0,0
|
covx tTmp.txt,t3Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t3o.txt,"~",23
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t3u.txt,"~",24
|
spstr strCommand.txt,t3u.txt,"~",21
|
||||||
if(t3Icon.txt!="")
|
if(t3Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t3Icon,1
|
vis t3Icon,1
|
||||||
vis t3o,1
|
|
||||||
vis t3u,1
|
vis t3u,1
|
||||||
vis h3,1
|
vis h3,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t3Icon,0
|
vis t3Icon,0
|
||||||
vis t3o,0
|
|
||||||
vis t3u,0
|
vis t3u,0
|
||||||
vis h3,0
|
vis h3,0
|
||||||
}
|
}
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",25
|
spstr strCommand.txt,tTmp.txt,"~",22
|
||||||
covx tTmp.txt,t4Icon.pco,0,0
|
covx tTmp.txt,t4Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t4Icon.txt,"~",26
|
spstr strCommand.txt,t4Icon.txt,"~",23
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",27
|
spstr strCommand.txt,tTmp.txt,"~",24
|
||||||
covx tTmp.txt,t4Speed.val,0,0
|
covx tTmp.txt,t4Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t4o.txt,"~",28
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t4u.txt,"~",29
|
spstr strCommand.txt,t4u.txt,"~",25
|
||||||
if(t4Icon.txt!="")
|
if(t4Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t4Icon,1
|
vis t4Icon,1
|
||||||
vis t4o,1
|
|
||||||
vis t4u,1
|
vis t4u,1
|
||||||
vis h4,1
|
vis h4,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t4Icon,0
|
vis t4Icon,0
|
||||||
vis t4o,0
|
|
||||||
vis t4u,0
|
vis t4u,0
|
||||||
vis h4,0
|
vis h4,0
|
||||||
}
|
}
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",30
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,t5Icon.pco,0,0
|
covx tTmp.txt,t5Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t5Icon.txt,"~",31
|
spstr strCommand.txt,t5Icon.txt,"~",27
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",32
|
spstr strCommand.txt,tTmp.txt,"~",28
|
||||||
covx tTmp.txt,t5Speed.val,0,0
|
covx tTmp.txt,t5Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t5o.txt,"~",33
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t5u.txt,"~",34
|
spstr strCommand.txt,t5u.txt,"~",29
|
||||||
if(t5Icon.txt!="")
|
if(t5Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t5Icon,1
|
vis t5Icon,1
|
||||||
vis t5o,1
|
|
||||||
vis t5u,1
|
vis t5u,1
|
||||||
vis h5,1
|
vis h5,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t5Icon,0
|
vis t5Icon,0
|
||||||
vis t5o,0
|
|
||||||
vis t5u,0
|
vis t5u,0
|
||||||
vis h5,0
|
vis h5,0
|
||||||
}
|
}
|
||||||
@@ -1305,6 +1163,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1354,6 +1213,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
@@ -1445,48 +1308,66 @@ Timer tm0
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
|
sys0=h0.val+t0Speed.val
|
||||||
|
if(sys0>h0.maxval)
|
||||||
|
{
|
||||||
|
h0.val=h0.minval
|
||||||
|
}
|
||||||
|
if(sys0<h0.minval)
|
||||||
|
{
|
||||||
|
h0.val=h0.maxval
|
||||||
|
}
|
||||||
h0.val+=t0Speed.val
|
h0.val+=t0Speed.val
|
||||||
|
sys0=h1.val+t1Speed.val
|
||||||
|
if(sys0>h1.maxval)
|
||||||
|
{
|
||||||
|
h1.val=h1.minval
|
||||||
|
}
|
||||||
|
if(sys0<h1.minval)
|
||||||
|
{
|
||||||
|
h1.val=h1.maxval
|
||||||
|
}
|
||||||
h1.val+=t1Speed.val
|
h1.val+=t1Speed.val
|
||||||
|
sys0=h2.val+t2Speed.val
|
||||||
|
if(sys0>h2.maxval)
|
||||||
|
{
|
||||||
|
h2.val=h2.minval
|
||||||
|
}
|
||||||
|
if(sys0<h2.minval)
|
||||||
|
{
|
||||||
|
h2.val=h2.maxval
|
||||||
|
}
|
||||||
h2.val+=t2Speed.val
|
h2.val+=t2Speed.val
|
||||||
|
sys0=h3.val+t3Speed.val
|
||||||
|
if(sys0>h3.maxval)
|
||||||
|
{
|
||||||
|
h3.val=h3.minval
|
||||||
|
}
|
||||||
|
if(sys0<h3.minval)
|
||||||
|
{
|
||||||
|
h3.val=h3.maxval
|
||||||
|
}
|
||||||
h3.val+=t3Speed.val
|
h3.val+=t3Speed.val
|
||||||
|
sys0=h4.val+t4Speed.val
|
||||||
|
if(sys0>h4.maxval)
|
||||||
|
{
|
||||||
|
h4.val=h4.minval
|
||||||
|
}
|
||||||
|
if(sys0<h4.minval)
|
||||||
|
{
|
||||||
|
h4.val=h4.maxval
|
||||||
|
}
|
||||||
h4.val+=t4Speed.val
|
h4.val+=t4Speed.val
|
||||||
|
sys0=h5.val+t5Speed.val
|
||||||
|
if(sys0>h5.maxval)
|
||||||
|
{
|
||||||
|
h5.val=h5.minval
|
||||||
|
}
|
||||||
|
if(sys0<h5.minval)
|
||||||
|
{
|
||||||
|
h5.val=h5.maxval
|
||||||
|
}
|
||||||
h5.val+=t5Speed.val
|
h5.val+=t5Speed.val
|
||||||
if(h0.val>=100&&h0.val<=150)
|
|
||||||
{
|
|
||||||
h0.val=0
|
|
||||||
}
|
|
||||||
if(h1.val>=100&&h1.val<=150)
|
|
||||||
{
|
|
||||||
h1.val=0
|
|
||||||
}
|
|
||||||
if(h2.val>=100&&h2.val<=150)
|
|
||||||
{
|
|
||||||
h2.val=0
|
|
||||||
}
|
|
||||||
if(h3.val>=100&&h3.val<=150)
|
|
||||||
{
|
|
||||||
h3.val=0
|
|
||||||
}
|
|
||||||
if(h4.val>=100&&h4.val<=150)
|
|
||||||
{
|
|
||||||
h4.val=0
|
|
||||||
}
|
|
||||||
if(h5.val>=100&&h5.val<=150)
|
|
||||||
{
|
|
||||||
h5.val=0
|
|
||||||
}
|
|
||||||
ref t0o
|
|
||||||
ref t0u
|
|
||||||
ref t1o
|
|
||||||
ref t1u
|
|
||||||
ref t2o
|
|
||||||
ref t2u
|
|
||||||
ref t3o
|
|
||||||
ref t3u
|
|
||||||
ref t4o
|
|
||||||
ref t4u
|
|
||||||
ref t5o
|
|
||||||
ref t5u
|
|
||||||
|
|
||||||
TouchCap tc0
|
TouchCap tc0
|
||||||
Attributes
|
Attributes
|
||||||
|
|||||||
@@ -956,6 +956,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1005,6 +1006,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ XFloat xTempMin1
|
|||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 383
|
x coordinate : 383
|
||||||
y coordinate : 71
|
y coordinate : 71
|
||||||
Width : 50
|
Width : 24
|
||||||
Height : 22
|
Height : 22
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -231,10 +231,10 @@ XFloat xTempMax1
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 383
|
x coordinate : 407
|
||||||
y coordinate : 93
|
y coordinate : 70
|
||||||
Width : 45
|
Width : 23
|
||||||
Height : 20
|
Height : 23
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -261,8 +261,8 @@ XFloat xTempStep1
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 384
|
x coordinate : 385
|
||||||
y coordinate : 181
|
y coordinate : 91
|
||||||
Width : 45
|
Width : 45
|
||||||
Height : 20
|
Height : 20
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -1453,6 +1453,44 @@ Dual-state Button btDown
|
|||||||
prints tSend.txt,0
|
prints tSend.txt,0
|
||||||
prints crcval,2
|
prints crcval,2
|
||||||
|
|
||||||
|
Dual-state Button btDetail
|
||||||
|
Attributes
|
||||||
|
ID : 52
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 391
|
||||||
|
y coordinate : 200
|
||||||
|
Width : 50
|
||||||
|
Height : 50
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Font ID : 3
|
||||||
|
Back. Color (Unpressed) : 6371
|
||||||
|
Back. Picture ID (Pressed) : 65535
|
||||||
|
Back. Color (Pressed) : 6371
|
||||||
|
Font Color (Unpressed) : 50712
|
||||||
|
Font Color (Pressed) : 64512
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
State : pressed
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tHeading.txt
|
||||||
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
page popupThermo
|
||||||
|
|
||||||
Hotspot mSwipeNext
|
Hotspot mSwipeNext
|
||||||
Attributes
|
Attributes
|
||||||
ID : 34
|
ID : 34
|
||||||
@@ -1791,6 +1829,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1840,6 +1879,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,68 +3,72 @@ Program.s
|
|||||||
13 Line(s) of event code
|
13 Line(s) of event code
|
||||||
13 Unique line(s) of event code
|
13 Unique line(s) of event code
|
||||||
pageIcons
|
pageIcons
|
||||||
6 Component(s)
|
7 Component(s)
|
||||||
0 Line(s) of event code
|
0 Line(s) of event code
|
||||||
0 Unique line(s) of event code
|
0 Unique line(s) of event code
|
||||||
popupFan
|
|
||||||
27 Component(s)
|
|
||||||
342 Line(s) of event code
|
|
||||||
199 Unique line(s) of event code
|
|
||||||
pageTest
|
pageTest
|
||||||
20 Component(s)
|
20 Component(s)
|
||||||
65 Line(s) of event code
|
65 Line(s) of event code
|
||||||
62 Unique line(s) of event code
|
62 Unique line(s) of event code
|
||||||
pageStartup
|
|
||||||
19 Component(s)
|
|
||||||
167 Line(s) of event code
|
|
||||||
122 Unique line(s) of event code
|
|
||||||
popupShutter
|
popupShutter
|
||||||
25 Component(s)
|
25 Component(s)
|
||||||
388 Line(s) of event code
|
394 Line(s) of event code
|
||||||
211 Unique line(s) of event code
|
216 Unique line(s) of event code
|
||||||
popupLight
|
popupLight
|
||||||
27 Component(s)
|
27 Component(s)
|
||||||
386 Line(s) of event code
|
391 Line(s) of event code
|
||||||
211 Unique line(s) of event code
|
214 Unique line(s) of event code
|
||||||
cardGrid
|
popupThermo
|
||||||
42 Component(s)
|
24 Component(s)
|
||||||
463 Line(s) of event code
|
294 Line(s) of event code
|
||||||
272 Unique line(s) of event code
|
175 Unique line(s) of event code
|
||||||
cardMedia
|
popupNotify
|
||||||
34 Component(s)
|
19 Component(s)
|
||||||
389 Line(s) of event code
|
253 Line(s) of event code
|
||||||
210 Unique line(s) of event code
|
164 Unique line(s) of event code
|
||||||
screensaver
|
popupFan
|
||||||
38 Component(s)
|
27 Component(s)
|
||||||
341 Line(s) of event code
|
347 Line(s) of event code
|
||||||
263 Unique line(s) of event code
|
202 Unique line(s) of event code
|
||||||
cardAlarm
|
pageStartup
|
||||||
40 Component(s)
|
19 Component(s)
|
||||||
422 Line(s) of event code
|
172 Line(s) of event code
|
||||||
255 Unique line(s) of event code
|
125 Unique line(s) of event code
|
||||||
cardQR
|
cardQR
|
||||||
32 Component(s)
|
32 Component(s)
|
||||||
404 Line(s) of event code
|
409 Line(s) of event code
|
||||||
235 Unique line(s) of event code
|
238 Unique line(s) of event code
|
||||||
popupNotify
|
cardGrid
|
||||||
17 Component(s)
|
42 Component(s)
|
||||||
226 Line(s) of event code
|
474 Line(s) of event code
|
||||||
143 Unique line(s) of event code
|
281 Unique line(s) of event code
|
||||||
cardPower
|
cardMedia
|
||||||
48 Component(s)
|
34 Component(s)
|
||||||
387 Line(s) of event code
|
394 Line(s) of event code
|
||||||
279 Unique line(s) of event code
|
213 Unique line(s) of event code
|
||||||
|
screensaver
|
||||||
|
38 Component(s)
|
||||||
|
350 Line(s) of event code
|
||||||
|
266 Unique line(s) of event code
|
||||||
cardThermo
|
cardThermo
|
||||||
52 Component(s)
|
53 Component(s)
|
||||||
580 Line(s) of event code
|
588 Line(s) of event code
|
||||||
303 Unique line(s) of event code
|
309 Unique line(s) of event code
|
||||||
|
cardAlarm
|
||||||
|
40 Component(s)
|
||||||
|
427 Line(s) of event code
|
||||||
|
258 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
65 Component(s)
|
65 Component(s)
|
||||||
1128 Line(s) of event code
|
1137 Line(s) of event code
|
||||||
515 Unique line(s) of event code
|
522 Unique line(s) of event code
|
||||||
|
cardPower
|
||||||
|
43 Component(s)
|
||||||
|
423 Line(s) of event code
|
||||||
|
293 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
15 Page(s)
|
16 Page(s)
|
||||||
492 Component(s)
|
515 Component(s)
|
||||||
5701 Line(s) of event code
|
6131 Line(s) of event code
|
||||||
1546 Unique line(s) of event code
|
1590 Unique line(s) of event code
|
||||||
|
|||||||
@@ -92,6 +92,36 @@ Text tTmp2
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tTmp3
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope : global
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 302
|
||||||
|
y coordinate : 154
|
||||||
|
Width : 146
|
||||||
|
Height : 69
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 1
|
||||||
|
Back. Color : 65535
|
||||||
|
Font Color : 0
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ Text tVersion
|
|||||||
Horizontal Alignment : center
|
Horizontal Alignment : center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : 42
|
Text : 43
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
@@ -601,6 +601,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -645,6 +646,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Page popupFan
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -758,7 +759,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -868,6 +869,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -917,6 +919,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Page popupLight
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -793,7 +794,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -940,6 +941,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -989,6 +991,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -33,11 +33,17 @@ Page popupNotify
|
|||||||
tText.bco=defaultBcoColor
|
tText.bco=defaultBcoColor
|
||||||
b1.bco=defaultBcoColor
|
b1.bco=defaultBcoColor
|
||||||
b2.bco=defaultBcoColor
|
b2.bco=defaultBcoColor
|
||||||
|
tIcon.bco=defaultBcoColor
|
||||||
|
tTextAlt.bco=defaultBcoColor
|
||||||
tHeading.pco=defaultFontColor
|
tHeading.pco=defaultFontColor
|
||||||
b0.pco=defaultFontColor
|
b0.pco=defaultFontColor
|
||||||
tText.pco=defaultFontColor
|
tText.pco=defaultFontColor
|
||||||
b1.pco=defaultFontColor
|
b1.pco=defaultFontColor
|
||||||
b2.pco=defaultFontColor
|
b2.pco=defaultFontColor
|
||||||
|
vis tIcon,0
|
||||||
|
vis tTextAlt,0
|
||||||
|
tIcon.pco=defaultFontColor
|
||||||
|
tTextAlt.pco=defaultFontColor
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
@@ -216,6 +222,66 @@ Text tText
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tTextAlt
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 135
|
||||||
|
y coordinate : 74
|
||||||
|
Width : 285
|
||||||
|
Height : 171
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 65535
|
||||||
|
Horizontal Alignment : left
|
||||||
|
Vertical Alignment : top
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 500
|
||||||
|
Word wrap : enabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tIcon
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 23
|
||||||
|
y coordinate : 74
|
||||||
|
Width : 109
|
||||||
|
Height : 171
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 4
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 65535
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 250
|
||||||
|
Word wrap : enabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
@@ -493,6 +559,25 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",10
|
spstr strCommand.txt,tTmp.txt,"~",10
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
sleepTimeout=sys0
|
sleepTimeout=sys0
|
||||||
|
//font size
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tTextAlt.font=sys0
|
||||||
|
tText.font=sys0
|
||||||
|
//icon
|
||||||
|
spstr strCommand.txt,tIcon.txt,"~",12
|
||||||
|
if(tIcon.txt!="")
|
||||||
|
{
|
||||||
|
vis tIcon,1
|
||||||
|
vis tTextAlt,1
|
||||||
|
vis tText,0
|
||||||
|
tTextAlt.txt=tText.txt
|
||||||
|
tTextAlt.pco=tText.pco
|
||||||
|
}
|
||||||
|
// alt icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",13
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tIcon.pco=sys0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
@@ -546,6 +631,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -600,6 +686,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Page popupShutter
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tPosHeading,0
|
vis tPosHeading,0
|
||||||
@@ -366,7 +367,7 @@ Slider hTilt
|
|||||||
// event,buttonPress2,internalNameEntity,positionSlider,50
|
// event,buttonPress2,internalNameEntity,positionSlider,50
|
||||||
//craft command
|
//craft command
|
||||||
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
|
||||||
covx hPosition.val,tTmp.txt,0,0
|
covx hTilt.val,tTmp.txt,0,0
|
||||||
tSend.txt+=tTmp.txt
|
tSend.txt+=tTmp.txt
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
@@ -949,6 +950,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -998,6 +1000,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
806
HMI/n2t-out-visual/popupThermo.txt
Normal file
806
HMI/n2t-out-visual/popupThermo.txt
Normal file
@@ -0,0 +1,806 @@
|
|||||||
|
Page popupThermo
|
||||||
|
Attributes
|
||||||
|
ID : 0
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
Width : 480
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Locked : no
|
||||||
|
Swide up page ID : disabled
|
||||||
|
Swide down page ID : disabled
|
||||||
|
Swide left page ID : disabled
|
||||||
|
Swide right page ID : disabled
|
||||||
|
Fill : solid color
|
||||||
|
Back. Color : 6371
|
||||||
|
|
||||||
|
Events
|
||||||
|
Preinitialize Event
|
||||||
|
dim=dimValueNormal
|
||||||
|
//get entitiy name
|
||||||
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
|
//get entity id
|
||||||
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
|
vis p0,0
|
||||||
|
vis tSend,0
|
||||||
|
vis tTmp,0
|
||||||
|
vis tInstruction,0
|
||||||
|
vis tId,0
|
||||||
|
//page open event
|
||||||
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
|
// craft command
|
||||||
|
tSend.txt="event,pageOpenDetail,popupThermo,"+entn.txt
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
popupThermo.bco=defaultBcoColor
|
||||||
|
for(sys0=0;sys0<24;sys0++)
|
||||||
|
{
|
||||||
|
if(b[sys0].type==98||b[sys0].type==116)
|
||||||
|
{
|
||||||
|
b[sys0].bco=defaultBcoColor
|
||||||
|
b[sys0].pco=defaultFontColor
|
||||||
|
}
|
||||||
|
if(b[sys0].type==53&&defaultBcoColor==0)
|
||||||
|
{
|
||||||
|
b[sys0].pic=10
|
||||||
|
b[sys0].pic2=11
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Variable (string) strCommand
|
||||||
|
Attributes
|
||||||
|
ID : 9
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 500
|
||||||
|
|
||||||
|
Variable (string) entn
|
||||||
|
Attributes
|
||||||
|
ID : 12
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Variable (int32) mode
|
||||||
|
Attributes
|
||||||
|
ID : 13
|
||||||
|
Scope: local
|
||||||
|
Value: 1
|
||||||
|
|
||||||
|
Variable (int32) mode_temp
|
||||||
|
Attributes
|
||||||
|
ID : 14
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (int32) vaModePos
|
||||||
|
Attributes
|
||||||
|
ID : 20
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (string) vaModeList
|
||||||
|
Attributes
|
||||||
|
ID : 21
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 400
|
||||||
|
|
||||||
|
Variable (string) vaModeCur
|
||||||
|
Attributes
|
||||||
|
ID : 22
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 400
|
||||||
|
|
||||||
|
Variable (string) tSend
|
||||||
|
Attributes
|
||||||
|
ID : 23
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 200
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
ID : 2
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 92
|
||||||
|
y coordinate : 21
|
||||||
|
Width : 263
|
||||||
|
Height : 30
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 65535
|
||||||
|
Horizontal Alignment : left
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 25
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tIcon1
|
||||||
|
Attributes
|
||||||
|
ID : 3
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 11
|
||||||
|
y coordinate : 21
|
||||||
|
Width : 45
|
||||||
|
Height : 30
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 1
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 17299
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tTmp
|
||||||
|
Attributes
|
||||||
|
ID : 5
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 343
|
||||||
|
y coordinate : 277
|
||||||
|
Width : 97
|
||||||
|
Height : 30
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 65535
|
||||||
|
Font Color : 0
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 80
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tInstruction
|
||||||
|
Attributes
|
||||||
|
ID : 10
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 0
|
||||||
|
y coordinate : 290
|
||||||
|
Width : 100
|
||||||
|
Height : 30
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 65535
|
||||||
|
Font Color : 0
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tId
|
||||||
|
Attributes
|
||||||
|
ID : 11
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 100
|
||||||
|
y coordinate : 290
|
||||||
|
Width : 100
|
||||||
|
Height : 30
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Associated Keyboard : none
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 65535
|
||||||
|
Font Color : 0
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Picture p0
|
||||||
|
Attributes
|
||||||
|
ID : 1
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 0
|
||||||
|
y coordinate : 0
|
||||||
|
Width : 480
|
||||||
|
Height : 320
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Picture ID : 0
|
||||||
|
|
||||||
|
Button b0
|
||||||
|
Attributes
|
||||||
|
ID : 4
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 397
|
||||||
|
y coordinate : 8
|
||||||
|
Width : 50
|
||||||
|
Height : 50
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Font ID : 1
|
||||||
|
Back. Color : 6371
|
||||||
|
Back. Picture ID (Pressed) : 65535
|
||||||
|
Back. Color (Pressed) : 14823
|
||||||
|
Font Color (Unpressed) : 65535
|
||||||
|
Font Color (Pressed) : 65535
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
State : unpressed
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
tSend.txt="event,buttonPress2,popupLight,bExit"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Button bMode1
|
||||||
|
Attributes
|
||||||
|
ID : 16
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 11
|
||||||
|
y coordinate : 88
|
||||||
|
Width : 120
|
||||||
|
Height : 50
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 6371
|
||||||
|
Back. Picture ID (Pressed) : 65535
|
||||||
|
Back. Color (Pressed) : 14823
|
||||||
|
Font Color (Unpressed) : 65535
|
||||||
|
Font Color (Pressed) : 65535
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
State : unpressed
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 40
|
||||||
|
Word wrap : enabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"
|
||||||
|
tSend.txt+=entn.txt+","
|
||||||
|
sys2=vaModePos.val-3
|
||||||
|
covx sys2,tTmp.txt,0,0
|
||||||
|
tSend.txt+="mode-sel,"+tTmp.txt
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Button bMode3
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 259
|
||||||
|
y coordinate : 88
|
||||||
|
Width : 120
|
||||||
|
Height : 50
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 6371
|
||||||
|
Back. Picture ID (Pressed) : 65535
|
||||||
|
Back. Color (Pressed) : 14823
|
||||||
|
Font Color (Unpressed) : 65535
|
||||||
|
Font Color (Pressed) : 65535
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
State : unpressed
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 40
|
||||||
|
Word wrap : enabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"
|
||||||
|
tSend.txt+=entn.txt+","
|
||||||
|
sys2=vaModePos.val-1
|
||||||
|
covx sys2,tTmp.txt,0,0
|
||||||
|
tSend.txt+="mode-sel,"+tTmp.txt
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Button bMode2
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 135
|
||||||
|
y coordinate : 88
|
||||||
|
Width : 120
|
||||||
|
Height : 50
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Font ID : 0
|
||||||
|
Back. Color : 6371
|
||||||
|
Back. Picture ID (Pressed) : 65535
|
||||||
|
Back. Color (Pressed) : 14823
|
||||||
|
Font Color (Unpressed) : 65535
|
||||||
|
Font Color (Pressed) : 65535
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
State : unpressed
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 40
|
||||||
|
Word wrap : enabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"
|
||||||
|
tSend.txt+=entn.txt+","
|
||||||
|
sys2=vaModePos.val-2
|
||||||
|
covx sys2,tTmp.txt,0,0
|
||||||
|
tSend.txt+="mode-sel,"+tTmp.txt
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,2
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
|
Button bModeNext
|
||||||
|
Attributes
|
||||||
|
ID : 19
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 388
|
||||||
|
y coordinate : 88
|
||||||
|
Width : 50
|
||||||
|
Height : 50
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : solid color
|
||||||
|
Style : flat
|
||||||
|
Font ID : 3
|
||||||
|
Back. Color : 6371
|
||||||
|
Back. Picture ID (Pressed) : 65535
|
||||||
|
Back. Color (Pressed) : 14823
|
||||||
|
Font Color (Unpressed) : 50712
|
||||||
|
Font Color (Pressed) : 65535
|
||||||
|
Horizontal Alignment : center
|
||||||
|
Vertical Alignment : center
|
||||||
|
State : unpressed
|
||||||
|
Text : î´
|
||||||
|
Max. Text Size : 5
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//if(bMode3.txt=="")
|
||||||
|
spstr vaModeList.txt,tTmp.txt,"?",vaModePos.val
|
||||||
|
if(tTmp.txt=="")
|
||||||
|
{
|
||||||
|
vaModePos.val=0
|
||||||
|
spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val
|
||||||
|
spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1
|
||||||
|
spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2
|
||||||
|
}
|
||||||
|
spstr vaModeList.txt,bMode1.txt,"?",vaModePos.val
|
||||||
|
spstr vaModeList.txt,bMode2.txt,"?",vaModePos.val+1
|
||||||
|
spstr vaModeList.txt,bMode3.txt,"?",vaModePos.val+2
|
||||||
|
vaModePos.val+=3
|
||||||
|
spstr vaModeList.txt,tTmp.txt,"?",3
|
||||||
|
if(tTmp.txt=="")
|
||||||
|
{
|
||||||
|
vis bModeNext,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis bModeNext,1
|
||||||
|
}
|
||||||
|
bMode1.pco=defaultFontColor
|
||||||
|
bMode2.pco=defaultFontColor
|
||||||
|
bMode3.pco=defaultFontColor
|
||||||
|
if(bMode1.txt==vaModeCur.txt)
|
||||||
|
{
|
||||||
|
bMode1.pco=1374
|
||||||
|
}
|
||||||
|
if(bMode2.txt==vaModeCur.txt)
|
||||||
|
{
|
||||||
|
bMode2.pco=1374
|
||||||
|
}
|
||||||
|
if(bMode3.txt==vaModeCur.txt)
|
||||||
|
{
|
||||||
|
bMode3.pco=1374
|
||||||
|
}
|
||||||
|
|
||||||
|
Timer tmSleep
|
||||||
|
Attributes
|
||||||
|
ID : 7
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 1000
|
||||||
|
Enabled : yes
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
if(sleepTimeout!=0)
|
||||||
|
{
|
||||||
|
sleepValue+=1
|
||||||
|
if(sleepTimeout<=sleepValue)
|
||||||
|
{
|
||||||
|
sleepValue=0
|
||||||
|
click b0,1
|
||||||
|
click b0,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Timer tmSerial
|
||||||
|
Attributes
|
||||||
|
ID : 8
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 50
|
||||||
|
Enabled : yes
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
// data available
|
||||||
|
if(usize>1)
|
||||||
|
{
|
||||||
|
bufferPos=0
|
||||||
|
while(bufferPos<usize)
|
||||||
|
{
|
||||||
|
// check for 0x55 0xBB - Command Init Secuence
|
||||||
|
if(u[bufferPos]==187&&u[bufferPos-1]==85)
|
||||||
|
{
|
||||||
|
//remove garbage at the start of the buffer if there's any to free buffer for command
|
||||||
|
if(u[bufferPos]!=1)
|
||||||
|
{
|
||||||
|
udelete bufferPos-1
|
||||||
|
}
|
||||||
|
//instruction is now aligned with buffer, because we deleted garbage before instrcution
|
||||||
|
//get length after init sequence (check if there are more than to bytes in buffer)
|
||||||
|
if(3<usize)
|
||||||
|
{
|
||||||
|
// check if serial buffer has reached the announced length
|
||||||
|
ucopy payloadLength,2,2,0
|
||||||
|
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
|
||||||
|
payloadLength+=3
|
||||||
|
// payload length does also not contain crc, so we are adding another 2 bytes for crc
|
||||||
|
payloadLength+=2
|
||||||
|
if(payloadLength<usize)
|
||||||
|
{
|
||||||
|
// calculate crc
|
||||||
|
crcrest 1,0xFFFF
|
||||||
|
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
|
||||||
|
//crcputu 3,u[2]
|
||||||
|
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
|
||||||
|
crcputu 0,payloadLength-1
|
||||||
|
// get recived crc to be able to compare it
|
||||||
|
ucopy recvCrc,payloadLength-1,2,0
|
||||||
|
// compare crc with recived value
|
||||||
|
if(crcval==recvCrc)
|
||||||
|
{
|
||||||
|
// crc is okay
|
||||||
|
// here is the location where acual code should be
|
||||||
|
// write command to variable strCommand
|
||||||
|
ucopy strCommand.txt,4,payloadLength-5,0
|
||||||
|
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
|
||||||
|
spstr strCommand.txt,tInstruction.txt,"~",0
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
|
{
|
||||||
|
// change icon
|
||||||
|
spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
|
vis tIcon1,1
|
||||||
|
// change icon color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
tIcon1.pco=sys0
|
||||||
|
//current mode
|
||||||
|
spstr strCommand.txt,vaModeCur.txt,"~",4
|
||||||
|
//mode list
|
||||||
|
spstr strCommand.txt,vaModeList.txt,"~",5
|
||||||
|
if(vaModeList.txt=="")
|
||||||
|
{
|
||||||
|
vis bMode1,0
|
||||||
|
vis bMode2,0
|
||||||
|
vis bMode3,0
|
||||||
|
vis bModeNext,0
|
||||||
|
}
|
||||||
|
if(bMode1.txt=="")
|
||||||
|
{
|
||||||
|
click bModeNext,1
|
||||||
|
click bModeNext,0
|
||||||
|
}
|
||||||
|
bMode1.pco=defaultFontColor
|
||||||
|
bMode2.pco=defaultFontColor
|
||||||
|
bMode3.pco=defaultFontColor
|
||||||
|
if(bMode1.txt==vaModeCur.txt)
|
||||||
|
{
|
||||||
|
bMode1.pco=1374
|
||||||
|
}
|
||||||
|
if(bMode2.txt==vaModeCur.txt)
|
||||||
|
{
|
||||||
|
bMode2.pco=1374
|
||||||
|
}
|
||||||
|
if(bMode3.txt==vaModeCur.txt)
|
||||||
|
{
|
||||||
|
bMode3.pco=1374
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="time")
|
||||||
|
{
|
||||||
|
// get set time to global variable
|
||||||
|
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="date")
|
||||||
|
{
|
||||||
|
// get set date to global variable
|
||||||
|
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="dimmode")
|
||||||
|
{
|
||||||
|
// get value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
covx tTmp.txt,dimValue,0,0
|
||||||
|
// get value normal
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
covx tTmp.txt,dimValueNormal,0,0
|
||||||
|
dim=dimValueNormal
|
||||||
|
// get background color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,defaultBcoColor,0,0
|
||||||
|
}
|
||||||
|
// get font color
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="timeout")
|
||||||
|
{
|
||||||
|
//set timeout to global var
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
}
|
||||||
|
if(tInstruction.txt=="pageType")
|
||||||
|
{
|
||||||
|
//command format pageType,specialPageName
|
||||||
|
//write name of speical page to tId
|
||||||
|
spstr strCommand.txt,tId.txt,"~",1
|
||||||
|
//save second arg if there's one
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
|
//save third arg if there's one
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
|
udelete payloadLength-1
|
||||||
|
bufferPos=0
|
||||||
|
if(tId.txt=="pageStartup")
|
||||||
|
{
|
||||||
|
page pageStartup
|
||||||
|
}
|
||||||
|
if(tId.txt=="screensaver")
|
||||||
|
{
|
||||||
|
page screensaver
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardEntities")
|
||||||
|
{
|
||||||
|
page cardEntities
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardGrid")
|
||||||
|
{
|
||||||
|
page cardGrid
|
||||||
|
}
|
||||||
|
if(tId.txt=="popupLight")
|
||||||
|
{
|
||||||
|
pageIcons.tTmp1.txt=tTmp.txt
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
|
if(tId.txt=="popupShutter")
|
||||||
|
{
|
||||||
|
pageIcons.tTmp1.txt=tTmp.txt
|
||||||
|
page popupShutter
|
||||||
|
}
|
||||||
|
if(tId.txt=="popupNotify")
|
||||||
|
{
|
||||||
|
page popupNotify
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardThermo")
|
||||||
|
{
|
||||||
|
page cardThermo
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardMedia")
|
||||||
|
{
|
||||||
|
page cardMedia
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardAlarm")
|
||||||
|
{
|
||||||
|
page cardAlarm
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardQR")
|
||||||
|
{
|
||||||
|
page cardQR
|
||||||
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// end of user code
|
||||||
|
udelete payloadLength-1
|
||||||
|
bufferPos=0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// next character
|
||||||
|
bufferPos++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Timer tmCooldown
|
||||||
|
Attributes
|
||||||
|
ID : 15
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 100
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
tmCooldown.en=0
|
||||||
|
|
||||||
|
TouchCap tc0
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
sleepValue=0
|
||||||
|
|
||||||
@@ -1012,7 +1012,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,sleepTimeout,0,0
|
covx tTmp.txt,sleepTimeout,0,0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="weatherUpdate")
|
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
vis tMainIcon,1
|
vis tMainIcon,1
|
||||||
vis tMainIconAlt,0
|
vis tMainIconAlt,0
|
||||||
@@ -1086,16 +1086,8 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tIcon2.txt,"~",19
|
spstr strCommand.txt,tIcon2.txt,"~",19
|
||||||
spstr strCommand.txt,tTmp.txt,"~",20
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,tIcon2.pco,0,0
|
covx tTmp.txt,tIcon2.pco,0,0
|
||||||
if(tNotifyHead.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyHead
|
|
||||||
}
|
|
||||||
if(tNotifyText.txt!="")
|
|
||||||
{
|
|
||||||
ref tNotifyText
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="color")
|
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||||
{
|
{
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
covx tTmp.txt,tTime.bco,0,0
|
covx tTmp.txt,tTime.bco,0,0
|
||||||
@@ -1197,6 +1189,18 @@ Timer tmSerial
|
|||||||
vis tNotifyHead,0
|
vis tNotifyHead,0
|
||||||
vis tNotifyText,0
|
vis tNotifyText,0
|
||||||
}
|
}
|
||||||
|
tNotifyHead.bco=tTime.bco
|
||||||
|
tNotifyText.bco=tTime.bco
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,tNotifyHead.pco,0,0
|
||||||
|
}
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,tNotifyText.pco,0,0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="pageType")
|
if(tInstruction.txt=="pageType")
|
||||||
{
|
{
|
||||||
@@ -1208,6 +1212,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete u[2]+3
|
udelete u[2]+3
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1252,6 +1257,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -788,6 +788,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -837,6 +838,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -786,7 +786,7 @@ Button bText1
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -811,7 +811,7 @@ Button bText2
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -836,7 +836,7 @@ Button bText3
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -861,7 +861,7 @@ Button bText4
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 45
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -1014,6 +1014,7 @@ Hotspot m2
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity3.txt
|
//popupShutter.tHeading.txt=tEntity3.txt
|
||||||
@@ -1040,6 +1041,7 @@ Hotspot m1
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity2.txt
|
//popupShutter.tHeading.txt=tEntity2.txt
|
||||||
@@ -1066,6 +1068,7 @@ Hotspot m0
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity1.txt
|
//popupShutter.tHeading.txt=tEntity1.txt
|
||||||
@@ -1092,6 +1095,7 @@ Hotspot m3
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
//popupShutter.tHeading.txt=tEntity4.txt
|
//popupShutter.tHeading.txt=tEntity4.txt
|
||||||
@@ -1837,6 +1841,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1886,6 +1891,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -310,6 +310,7 @@ Button bEntity1
|
|||||||
tTmp.txt=type1.txt
|
tTmp.txt=type1.txt
|
||||||
pageIcons.tTmp1.txt=tEntity1.txt
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
pageIcons.tTmp2.txt=entn1.txt
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity1.txt
|
||||||
if(type1.txt=="shutter")
|
if(type1.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -346,6 +347,7 @@ Button bEntity2
|
|||||||
tTmp.txt=type2.txt
|
tTmp.txt=type2.txt
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity2.txt
|
||||||
if(type2.txt=="shutter")
|
if(type2.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -382,6 +384,7 @@ Button bEntity3
|
|||||||
tTmp.txt=type3.txt
|
tTmp.txt=type3.txt
|
||||||
pageIcons.tTmp1.txt=tEntity3.txt
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
pageIcons.tTmp2.txt=entn3.txt
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity3.txt
|
||||||
if(type3.txt=="shutter")
|
if(type3.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -418,6 +421,7 @@ Button bEntity4
|
|||||||
tTmp.txt=type4.txt
|
tTmp.txt=type4.txt
|
||||||
pageIcons.tTmp1.txt=tEntity4.txt
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
pageIcons.tTmp2.txt=entn4.txt
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity4.txt
|
||||||
if(type4.txt=="shutter")
|
if(type4.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -454,6 +458,7 @@ Button bEntity5
|
|||||||
tTmp.txt=type5.txt
|
tTmp.txt=type5.txt
|
||||||
pageIcons.tTmp1.txt=tEntity5.txt
|
pageIcons.tTmp1.txt=tEntity5.txt
|
||||||
pageIcons.tTmp2.txt=entn5.txt
|
pageIcons.tTmp2.txt=entn5.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity5.txt
|
||||||
if(type5.txt=="shutter")
|
if(type5.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -490,6 +495,7 @@ Button bEntity6
|
|||||||
tTmp.txt=type6.txt
|
tTmp.txt=type6.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity6.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn6.txt
|
||||||
|
pageIcons.tTmp3.txt=bEntity6.txt
|
||||||
if(type6.txt=="shutter")
|
if(type6.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
@@ -787,6 +793,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -836,6 +843,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -706,6 +706,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -755,6 +756,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -26,6 +26,36 @@ Page cardPower
|
|||||||
tsw h3,0
|
tsw h3,0
|
||||||
tsw h4,0
|
tsw h4,0
|
||||||
tsw h5,0
|
tsw h5,0
|
||||||
|
vis h0,0
|
||||||
|
vis h1,0
|
||||||
|
vis h2,0
|
||||||
|
vis h3,0
|
||||||
|
vis h4,0
|
||||||
|
vis h5,0
|
||||||
|
vis t0Icon,0
|
||||||
|
vis t1Icon,0
|
||||||
|
vis t2Icon,0
|
||||||
|
vis t3Icon,0
|
||||||
|
vis t4Icon,0
|
||||||
|
vis t5Icon,0
|
||||||
|
cardPower.bco=defaultBcoColor
|
||||||
|
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)
|
||||||
|
{
|
||||||
|
b[sys0].pic=19
|
||||||
|
b[sys0].pic1=19
|
||||||
|
b[sys0].pic2=15
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
@@ -177,16 +207,6 @@ Text t0u
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text t0o
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Associated Keyboard : none
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
|
|
||||||
Text t1u
|
Text t1u
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -197,26 +217,6 @@ Text t1u
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text t1o
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Associated Keyboard : none
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
|
|
||||||
Text t2o
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Associated Keyboard : none
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
|
|
||||||
Text t2u
|
Text t2u
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -237,16 +237,6 @@ Text t5u
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text t5o
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Associated Keyboard : none
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
|
|
||||||
Text t4u
|
Text t4u
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -257,16 +247,6 @@ Text t4u
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text t4o
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Dragging : 0
|
|
||||||
Disable release event after dragging: 0
|
|
||||||
Send Component ID : disabled
|
|
||||||
Associated Keyboard : none
|
|
||||||
Text :
|
|
||||||
Max. Text Size : 20
|
|
||||||
|
|
||||||
Text t3u
|
Text t3u
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -277,7 +257,7 @@ Text t3u
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text t3o
|
Text tHome
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
@@ -539,28 +519,26 @@ Timer tmSerial
|
|||||||
covx tTmp.txt,t1.pco,0,0
|
covx tTmp.txt,t1.pco,0,0
|
||||||
// icon home
|
// icon home
|
||||||
spstr strCommand.txt,t1.txt,"~",4
|
spstr strCommand.txt,t1.txt,"~",4
|
||||||
|
// text home
|
||||||
|
spstr strCommand.txt,tHome.txt,"~",5
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
covx tTmp.txt,t0Icon.pco,0,0
|
covx tTmp.txt,t0Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t0Icon.txt,"~",6
|
spstr strCommand.txt,t0Icon.txt,"~",7
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",7
|
spstr strCommand.txt,tTmp.txt,"~",8
|
||||||
covx tTmp.txt,t0Speed.val,0,0
|
covx tTmp.txt,t0Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t0o.txt,"~",8
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t0u.txt,"~",9
|
spstr strCommand.txt,t0u.txt,"~",9
|
||||||
if(t0Icon.txt!="")
|
if(t0Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t0Icon,1
|
vis t0Icon,1
|
||||||
vis t0o,1
|
|
||||||
vis t0u,1
|
vis t0u,1
|
||||||
vis h0,1
|
vis h0,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t0Icon,0
|
vis t0Icon,0
|
||||||
vis t0o,0
|
|
||||||
vis t0u,0
|
vis t0u,0
|
||||||
vis h0,0
|
vis h0,0
|
||||||
}
|
}
|
||||||
@@ -572,120 +550,100 @@ Timer tmSerial
|
|||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",12
|
spstr strCommand.txt,tTmp.txt,"~",12
|
||||||
covx tTmp.txt,t1Speed.val,0,0
|
covx tTmp.txt,t1Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t1o.txt,"~",13
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t1u.txt,"~",14
|
spstr strCommand.txt,t1u.txt,"~",13
|
||||||
if(t1Icon.txt!="")
|
if(t1Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t1Icon,1
|
vis t1Icon,1
|
||||||
vis t1o,1
|
|
||||||
vis t1u,1
|
vis t1u,1
|
||||||
vis h1,1
|
vis h1,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t1Icon,0
|
vis t1Icon,0
|
||||||
vis t1o,0
|
|
||||||
vis t1u,0
|
vis t1u,0
|
||||||
vis h1,0
|
vis h1,0
|
||||||
}
|
}
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",15
|
spstr strCommand.txt,tTmp.txt,"~",14
|
||||||
covx tTmp.txt,t2Icon.pco,0,0
|
covx tTmp.txt,t2Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t2Icon.txt,"~",16
|
spstr strCommand.txt,t2Icon.txt,"~",15
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",16
|
||||||
covx tTmp.txt,t2Speed.val,0,0
|
covx tTmp.txt,t2Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t2o.txt,"~",18
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t2u.txt,"~",19
|
spstr strCommand.txt,t2u.txt,"~",17
|
||||||
if(t2Icon.txt!="")
|
if(t2Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t2Icon,1
|
vis t2Icon,1
|
||||||
vis t2o,1
|
|
||||||
vis t2u,1
|
vis t2u,1
|
||||||
vis h2,1
|
vis h2,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t2Icon,0
|
vis t2Icon,0
|
||||||
vis t2o,0
|
|
||||||
vis t2u,0
|
vis t2u,0
|
||||||
vis h2,0
|
vis h2,0
|
||||||
}
|
}
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",20
|
spstr strCommand.txt,tTmp.txt,"~",18
|
||||||
covx tTmp.txt,t3Icon.pco,0,0
|
covx tTmp.txt,t3Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t3Icon.txt,"~",21
|
spstr strCommand.txt,t3Icon.txt,"~",19
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",22
|
spstr strCommand.txt,tTmp.txt,"~",20
|
||||||
covx tTmp.txt,t3Speed.val,0,0
|
covx tTmp.txt,t3Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t3o.txt,"~",23
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t3u.txt,"~",24
|
spstr strCommand.txt,t3u.txt,"~",21
|
||||||
if(t3Icon.txt!="")
|
if(t3Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t3Icon,1
|
vis t3Icon,1
|
||||||
vis t3o,1
|
|
||||||
vis t3u,1
|
vis t3u,1
|
||||||
vis h3,1
|
vis h3,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t3Icon,0
|
vis t3Icon,0
|
||||||
vis t3o,0
|
|
||||||
vis t3u,0
|
vis t3u,0
|
||||||
vis h3,0
|
vis h3,0
|
||||||
}
|
}
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",25
|
spstr strCommand.txt,tTmp.txt,"~",22
|
||||||
covx tTmp.txt,t4Icon.pco,0,0
|
covx tTmp.txt,t4Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t4Icon.txt,"~",26
|
spstr strCommand.txt,t4Icon.txt,"~",23
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",27
|
spstr strCommand.txt,tTmp.txt,"~",24
|
||||||
covx tTmp.txt,t4Speed.val,0,0
|
covx tTmp.txt,t4Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t4o.txt,"~",28
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t4u.txt,"~",29
|
spstr strCommand.txt,t4u.txt,"~",25
|
||||||
if(t4Icon.txt!="")
|
if(t4Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t4Icon,1
|
vis t4Icon,1
|
||||||
vis t4o,1
|
|
||||||
vis t4u,1
|
vis t4u,1
|
||||||
vis h4,1
|
vis h4,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t4Icon,0
|
vis t4Icon,0
|
||||||
vis t4o,0
|
|
||||||
vis t4u,0
|
vis t4u,0
|
||||||
vis h4,0
|
vis h4,0
|
||||||
}
|
}
|
||||||
// iconColor
|
// iconColor
|
||||||
spstr strCommand.txt,tTmp.txt,"~",30
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,t5Icon.pco,0,0
|
covx tTmp.txt,t5Icon.pco,0,0
|
||||||
// icon
|
// icon
|
||||||
spstr strCommand.txt,t5Icon.txt,"~",31
|
spstr strCommand.txt,t5Icon.txt,"~",27
|
||||||
// speed
|
// speed
|
||||||
spstr strCommand.txt,tTmp.txt,"~",32
|
spstr strCommand.txt,tTmp.txt,"~",28
|
||||||
covx tTmp.txt,t5Speed.val,0,0
|
covx tTmp.txt,t5Speed.val,0,0
|
||||||
// upper text
|
|
||||||
spstr strCommand.txt,t5o.txt,"~",33
|
|
||||||
// lower text
|
// lower text
|
||||||
spstr strCommand.txt,t5u.txt,"~",34
|
spstr strCommand.txt,t5u.txt,"~",29
|
||||||
if(t5Icon.txt!="")
|
if(t5Icon.txt!="")
|
||||||
{
|
{
|
||||||
vis t5Icon,1
|
vis t5Icon,1
|
||||||
vis t5o,1
|
|
||||||
vis t5u,1
|
vis t5u,1
|
||||||
vis h5,1
|
vis h5,1
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
vis t5Icon,0
|
vis t5Icon,0
|
||||||
vis t5o,0
|
|
||||||
vis t5u,0
|
vis t5u,0
|
||||||
vis h5,0
|
vis h5,0
|
||||||
}
|
}
|
||||||
@@ -700,6 +658,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -749,6 +708,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
@@ -838,48 +801,66 @@ Timer tm0
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
|
sys0=h0.val+t0Speed.val
|
||||||
|
if(sys0>h0.maxval)
|
||||||
|
{
|
||||||
|
h0.val=h0.minval
|
||||||
|
}
|
||||||
|
if(sys0<h0.minval)
|
||||||
|
{
|
||||||
|
h0.val=h0.maxval
|
||||||
|
}
|
||||||
h0.val+=t0Speed.val
|
h0.val+=t0Speed.val
|
||||||
|
sys0=h1.val+t1Speed.val
|
||||||
|
if(sys0>h1.maxval)
|
||||||
|
{
|
||||||
|
h1.val=h1.minval
|
||||||
|
}
|
||||||
|
if(sys0<h1.minval)
|
||||||
|
{
|
||||||
|
h1.val=h1.maxval
|
||||||
|
}
|
||||||
h1.val+=t1Speed.val
|
h1.val+=t1Speed.val
|
||||||
|
sys0=h2.val+t2Speed.val
|
||||||
|
if(sys0>h2.maxval)
|
||||||
|
{
|
||||||
|
h2.val=h2.minval
|
||||||
|
}
|
||||||
|
if(sys0<h2.minval)
|
||||||
|
{
|
||||||
|
h2.val=h2.maxval
|
||||||
|
}
|
||||||
h2.val+=t2Speed.val
|
h2.val+=t2Speed.val
|
||||||
|
sys0=h3.val+t3Speed.val
|
||||||
|
if(sys0>h3.maxval)
|
||||||
|
{
|
||||||
|
h3.val=h3.minval
|
||||||
|
}
|
||||||
|
if(sys0<h3.minval)
|
||||||
|
{
|
||||||
|
h3.val=h3.maxval
|
||||||
|
}
|
||||||
h3.val+=t3Speed.val
|
h3.val+=t3Speed.val
|
||||||
|
sys0=h4.val+t4Speed.val
|
||||||
|
if(sys0>h4.maxval)
|
||||||
|
{
|
||||||
|
h4.val=h4.minval
|
||||||
|
}
|
||||||
|
if(sys0<h4.minval)
|
||||||
|
{
|
||||||
|
h4.val=h4.maxval
|
||||||
|
}
|
||||||
h4.val+=t4Speed.val
|
h4.val+=t4Speed.val
|
||||||
|
sys0=h5.val+t5Speed.val
|
||||||
|
if(sys0>h5.maxval)
|
||||||
|
{
|
||||||
|
h5.val=h5.minval
|
||||||
|
}
|
||||||
|
if(sys0<h5.minval)
|
||||||
|
{
|
||||||
|
h5.val=h5.maxval
|
||||||
|
}
|
||||||
h5.val+=t5Speed.val
|
h5.val+=t5Speed.val
|
||||||
if(h0.val>=100&&h0.val<=150)
|
|
||||||
{
|
|
||||||
h0.val=0
|
|
||||||
}
|
|
||||||
if(h1.val>=100&&h1.val<=150)
|
|
||||||
{
|
|
||||||
h1.val=0
|
|
||||||
}
|
|
||||||
if(h2.val>=100&&h2.val<=150)
|
|
||||||
{
|
|
||||||
h2.val=0
|
|
||||||
}
|
|
||||||
if(h3.val>=100&&h3.val<=150)
|
|
||||||
{
|
|
||||||
h3.val=0
|
|
||||||
}
|
|
||||||
if(h4.val>=100&&h4.val<=150)
|
|
||||||
{
|
|
||||||
h4.val=0
|
|
||||||
}
|
|
||||||
if(h5.val>=100&&h5.val<=150)
|
|
||||||
{
|
|
||||||
h5.val=0
|
|
||||||
}
|
|
||||||
ref t0o
|
|
||||||
ref t0u
|
|
||||||
ref t1o
|
|
||||||
ref t1u
|
|
||||||
ref t2o
|
|
||||||
ref t2u
|
|
||||||
ref t3o
|
|
||||||
ref t3u
|
|
||||||
ref t4o
|
|
||||||
ref t4u
|
|
||||||
ref t5o
|
|
||||||
ref t5u
|
|
||||||
|
|
||||||
TouchCap tc0
|
TouchCap tc0
|
||||||
Attributes
|
Attributes
|
||||||
|
|||||||
@@ -657,6 +657,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -706,6 +707,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -783,6 +783,22 @@ Dual-state Button btDown
|
|||||||
prints tSend.txt,0
|
prints tSend.txt,0
|
||||||
prints crcval,2
|
prints crcval,2
|
||||||
|
|
||||||
|
Dual-state Button btDetail
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
State : pressed
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tHeading.txt
|
||||||
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
page popupThermo
|
||||||
|
|
||||||
Hotspot mSwipeNext
|
Hotspot mSwipeNext
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -1093,6 +1109,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -1142,6 +1159,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,6 +42,16 @@ Text tTmp2
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size : 80
|
Max. Text Size : 80
|
||||||
|
|
||||||
|
Text tTmp3
|
||||||
|
Attributes
|
||||||
|
Scope : global
|
||||||
|
Dragging : 0
|
||||||
|
Disable release event after dragging: 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard : none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ Text tVersion
|
|||||||
Disable release event after dragging: 0
|
Disable release event after dragging: 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Text : 42
|
Text : 43
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
@@ -306,6 +306,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -350,6 +351,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Page popupFan
|
|||||||
tEntity.txt=pageIcons.tTmp1.txt
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
//get entity id
|
//get entity id
|
||||||
entn.txt=pageIcons.tTmp2.txt
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
tIcon1.txt=pageIcons.tTmp3.txt
|
||||||
vis p0,0
|
vis p0,0
|
||||||
vis tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
@@ -467,7 +468,7 @@ Timer tmSerial
|
|||||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,tIcon1.txt,"~",2
|
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||||
vis tIcon1,1
|
vis tIcon1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",3
|
spstr strCommand.txt,tTmp.txt,"~",3
|
||||||
@@ -577,6 +578,7 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",2
|
spstr strCommand.txt,tTmp.txt,"~",2
|
||||||
//save third arg if there's one
|
//save third arg if there's one
|
||||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||||
|
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
bufferPos=0
|
bufferPos=0
|
||||||
@@ -626,6 +628,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardQR
|
page cardQR
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardPower")
|
||||||
|
{
|
||||||
|
page cardPower
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// end of user code
|
// end of user code
|
||||||
udelete payloadLength-1
|
udelete payloadLength-1
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user