mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 06:54:24 +01:00
Compare commits
97 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4600458da3 | ||
|
|
67bc1533bf | ||
|
|
e5f5546352 | ||
|
|
40896473b2 | ||
|
|
83e820d037 | ||
|
|
fb8a1003f9 | ||
|
|
1eef2bc96f | ||
|
|
015d9c29c7 | ||
|
|
164467d435 | ||
|
|
e8e8b0fc29 | ||
|
|
b95b35f10c | ||
|
|
7d52df1f11 | ||
|
|
ff2208a646 | ||
|
|
205f45ba48 | ||
|
|
1712098f61 | ||
|
|
84585499d5 | ||
|
|
1a4f7a7754 | ||
|
|
632663cd9f | ||
|
|
059619a636 | ||
|
|
49352c7ca0 | ||
|
|
a44573cfc9 | ||
|
|
847546893f | ||
|
|
11106eb778 | ||
|
|
cf1acdefff | ||
|
|
5a07523a86 | ||
|
|
affb663579 | ||
|
|
d2695d993e | ||
|
|
b3b24d4b8d | ||
|
|
690a8f4279 | ||
|
|
040119963a | ||
|
|
fe44b008af | ||
|
|
7d2503c66b | ||
|
|
f0edaa36fb | ||
|
|
6d41c16eda | ||
|
|
337657fede | ||
|
|
652dd0b157 | ||
|
|
e580333560 | ||
|
|
8407171efb | ||
|
|
291102971a | ||
|
|
a1104b8f81 | ||
|
|
48e9d2c8a3 | ||
|
|
306a189d79 | ||
|
|
98b40de8dc | ||
|
|
2355ce9c82 | ||
|
|
d743eb00db | ||
|
|
c725defd30 | ||
|
|
3b297607ff | ||
|
|
bb9e6b3799 | ||
|
|
7f73e28861 | ||
|
|
d81fc9e278 | ||
|
|
f4fa14eb16 | ||
|
|
5652387869 | ||
|
|
cbd5a084af | ||
|
|
80a881c980 | ||
|
|
7d58066448 | ||
|
|
63cce74dbe | ||
|
|
f4db5490ed | ||
|
|
e8713881b6 | ||
|
|
43d21a4b6b | ||
|
|
ce0215c1d2 | ||
|
|
498b90ad77 | ||
|
|
66cd7341c9 | ||
|
|
cfbfd8c3e0 | ||
|
|
65a381cbac | ||
|
|
4a94526244 | ||
|
|
442f8ccdf0 | ||
|
|
1b57cdbe62 | ||
|
|
3ddef89431 | ||
|
|
3f416ade44 | ||
|
|
832c9cd241 | ||
|
|
2aa1e222aa | ||
|
|
ec15e56728 | ||
|
|
26cce9ac13 | ||
|
|
8850e1d8cb | ||
|
|
06174d3912 | ||
|
|
75d652e402 | ||
|
|
893714d569 | ||
|
|
fd7448c61d | ||
|
|
6b04938a8a | ||
|
|
35af3a778f | ||
|
|
23beb90591 | ||
|
|
e40017c66e | ||
|
|
e94c57344a | ||
|
|
df3105ac2b | ||
|
|
04f7d026f4 | ||
|
|
f462780c08 | ||
|
|
b7de710de5 | ||
|
|
e8cc170c0c | ||
|
|
94d0d176e5 | ||
|
|
c9222a9484 | ||
|
|
5d02de6b6d | ||
|
|
0c3bcf07c3 | ||
|
|
9ed8bfc702 | ||
|
|
b3d9883b19 | ||
|
|
a0af621e7d | ||
|
|
2812dd302c | ||
|
|
b2b945c6ed |
@@ -6,6 +6,24 @@ Messages to the Panel can be send through the Command `CustomSend`, which is imp
|
|||||||
You can issue this command through MQTT by sending messages to the `cmnd/XXX/CustomSend` Topic.
|
You can issue this command through MQTT by sending messages to the `cmnd/XXX/CustomSend` Topic.
|
||||||
Messages from the Panel are send to the `tele/XXX/RESULT` Topic, encoded in json `{"CustomRecv":"message_from_screen"}`
|
Messages from the Panel are send to the `tele/XXX/RESULT` Topic, encoded in json `{"CustomRecv":"message_from_screen"}`
|
||||||
|
|
||||||
|
|
||||||
|
# Table of contents
|
||||||
|
|
||||||
|
- [Startup](#startup)
|
||||||
|
- [Some preperation before we are acually navigating away:](#some-preperation-before-we-are-acually-navigating-away)
|
||||||
|
- [Navigate from the startup page to the screensaver, by sending this command to the CustomSend Topic.](#navigate-from-the-startup-page-to-the-screensaver-by-sending-this-command-to-the-customsend-topic)
|
||||||
|
- [Exit Screensaver](#exit-screensaver)
|
||||||
|
- [Messages to Nextion Display](#messages-to-nextion-display)
|
||||||
|
- [General Commands, implemented on all pages](#general-commands-implemented-on-all-pages)
|
||||||
|
- [screensaver page](#screensaver-page)
|
||||||
|
- [cardEntities Page](#cardentities-page)
|
||||||
|
- [cardGrid Page](#cardgrid-page)
|
||||||
|
- [cardMedia](#cardmedia)
|
||||||
|
- [cardThermo](#cardthermo)
|
||||||
|
- [cardAlarm](#cardalarm)
|
||||||
|
- [cardQR](#cardqr)
|
||||||
|
- [cardPower](#cardpower)
|
||||||
|
|
||||||
## Startup
|
## Startup
|
||||||
|
|
||||||
On startup the panel will send `{"CustomRecv":"event,startup,39,eu"}` every few seconds.
|
On startup the panel will send `{"CustomRecv":"event,startup,39,eu"}` every few seconds.
|
||||||
@@ -94,9 +112,6 @@ change the page type:
|
|||||||
|
|
||||||
### screensaver page
|
### screensaver page
|
||||||
|
|
||||||
Example default layout: `weatherUpdate~~~A~21130~~-0.7C~~~B~63469~Sat~3.6C~~~C~35957~Sun~3.9C~~~D~31728~Mon~4.3C~~~E~35957~Tue~3.6C`
|
|
||||||
Example alternative layout: `weatherUpdate~~~A~21130~~-0.7C~~~B~63469~Sat~3.6C~~~C~35957~Sun~3.9C~~~D~31728~Mon~4.3C~~~E~35957~Tue~3.6C~~~F~21130~~23.6C`
|
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
+++ HMI/US/landscape/n2t-out
|
+++ HMI/US/landscape/n2t-out
|
||||||
│ --- HMI/n2t-out/Program.s.txt
|
│ --- HMI/n2t-out/Program.s.txt
|
||||||
├── +++ HMI/US/landscape/n2t-out/Program.s.txt
|
├── +++ HMI/US/landscape/n2t-out/Program.s.txt
|
||||||
│ @@ -11,10 +11,10 @@
|
│ @@ -13,10 +13,10 @@
|
||||||
│ // dim value
|
|
||||||
│ int dimValue=40
|
|
||||||
│ int dimValueNormal=100
|
│ int dimValueNormal=100
|
||||||
│ //color vars
|
│ //color vars
|
||||||
│ int defaultFontColor=65535
|
│ int defaultFontColor=65535
|
||||||
│ int defaultBcoColor=6371
|
│ int defaultBcoColor=6371
|
||||||
|
│ //feature flags
|
||||||
|
│ int featNewSliders=0
|
||||||
│ // fix touch offset
|
│ // fix touch offset
|
||||||
│ - lcd_dev fffb 0002 0000 0020
|
│ - lcd_dev fffb 0002 0000 0020
|
||||||
│ + //lcd_dev fffb 0002 0000 0020
|
│ + //lcd_dev fffb 0002 0000 0020
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ Program.s
|
|||||||
//color vars
|
//color vars
|
||||||
int defaultFontColor=65535
|
int defaultFontColor=65535
|
||||||
int defaultBcoColor=6371
|
int defaultBcoColor=6371
|
||||||
|
//feature flags
|
||||||
|
int featNewSliders=0
|
||||||
// fix touch offset
|
// fix touch offset
|
||||||
//lcd_dev fffb 0002 0000 0020
|
//lcd_dev fffb 0002 0000 0020
|
||||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
|
|||||||
@@ -1856,9 +1856,14 @@ Hotspot m0
|
|||||||
}
|
}
|
||||||
if(type1.txt=="light")
|
if(type1.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity1.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type1.txt=="fan")
|
if(type1.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1899,9 +1904,14 @@ Hotspot m1
|
|||||||
}
|
}
|
||||||
if(type2.txt=="light")
|
if(type2.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity2.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type2.txt=="fan")
|
if(type2.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1942,9 +1952,14 @@ Hotspot m2
|
|||||||
}
|
}
|
||||||
if(type3.txt=="light")
|
if(type3.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity3.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type3.txt=="fan")
|
if(type3.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1985,9 +2000,14 @@ Hotspot m3
|
|||||||
}
|
}
|
||||||
if(type4.txt=="light")
|
if(type4.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity4.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type4.txt=="fan")
|
if(type4.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ Text tEntity4
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 16
|
x coordinate : 22
|
||||||
y coordinate : 274
|
y coordinate : 274
|
||||||
Width : 140
|
Width : 140
|
||||||
Height : 30
|
Height : 30
|
||||||
@@ -1051,9 +1051,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1161,6 +1167,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -1182,6 +1199,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -1203,6 +1231,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -1224,6 +1263,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -1245,6 +1295,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -1266,6 +1327,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -1352,10 +1424,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -991,26 +991,26 @@ Button bEntity7
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type7.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity7.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn7.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity7.txt
|
||||||
if(type6.txt=="shutter")
|
if(type7.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type7.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type7.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -1057,26 +1057,26 @@ Button bEntity8
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type8.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity8.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn8.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity8.txt
|
||||||
if(type6.txt=="shutter")
|
if(type8.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type8.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type8.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -1273,9 +1273,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1383,6 +1389,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -1404,6 +1421,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -1425,6 +1453,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -1446,6 +1485,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -1467,6 +1517,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -1488,6 +1549,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -1509,6 +1581,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity7.txt,"~",52
|
spstr strCommand.txt,bEntity7.txt,"~",52
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity7.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity7.font=sys1
|
||||||
|
substr bEntity7.txt,bEntity7.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity7,1
|
vis bEntity7,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",53
|
spstr strCommand.txt,tTmp.txt,"~",53
|
||||||
@@ -1530,6 +1613,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity8.txt,"~",58
|
spstr strCommand.txt,bEntity8.txt,"~",58
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity8.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity8.font=sys1
|
||||||
|
substr bEntity8.txt,bEntity8.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity8,1
|
vis bEntity8,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",59
|
spstr strCommand.txt,tTmp.txt,"~",59
|
||||||
|
|||||||
@@ -1485,6 +1485,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",26
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1506,6 +1517,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",32
|
spstr strCommand.txt,tTmp.txt,"~",32
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1527,6 +1549,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",38
|
spstr strCommand.txt,tTmp.txt,"~",38
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1548,6 +1581,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",44
|
spstr strCommand.txt,tTmp.txt,"~",44
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1569,6 +1613,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",50
|
spstr strCommand.txt,tTmp.txt,"~",50
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1590,6 +1645,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",56
|
spstr strCommand.txt,tTmp.txt,"~",56
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1675,10 +1741,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1652,6 +1652,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Program.s
|
Program.s
|
||||||
0 Component(s)
|
0 Component(s)
|
||||||
13 Line(s) of event code
|
14 Line(s) of event code
|
||||||
13 Unique line(s) of event code
|
14 Unique line(s) of event code
|
||||||
popupThermo
|
popupThermo
|
||||||
44 Component(s)
|
44 Component(s)
|
||||||
523 Line(s) of event code
|
523 Line(s) of event code
|
||||||
@@ -10,18 +10,14 @@ pageIcons
|
|||||||
7 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
|
pageStartup
|
||||||
19 Component(s)
|
20 Component(s)
|
||||||
267 Line(s) of event code
|
198 Line(s) of event code
|
||||||
172 Unique line(s) of event code
|
137 Unique line(s) of event code
|
||||||
popupTimer
|
popupTimer
|
||||||
42 Component(s)
|
42 Component(s)
|
||||||
516 Line(s) of event code
|
516 Line(s) of event code
|
||||||
257 Unique line(s) of event code
|
257 Unique line(s) of event code
|
||||||
popupLight
|
|
||||||
23 Component(s)
|
|
||||||
410 Line(s) of event code
|
|
||||||
209 Unique line(s) of event code
|
|
||||||
cardChart
|
cardChart
|
||||||
33 Component(s)
|
33 Component(s)
|
||||||
437 Line(s) of event code
|
437 Line(s) of event code
|
||||||
@@ -30,10 +26,10 @@ popupInSel
|
|||||||
34 Component(s)
|
34 Component(s)
|
||||||
621 Line(s) of event code
|
621 Line(s) of event code
|
||||||
297 Unique line(s) of event code
|
297 Unique line(s) of event code
|
||||||
pageStartup
|
popupNotify
|
||||||
20 Component(s)
|
19 Component(s)
|
||||||
193 Line(s) of event code
|
267 Line(s) of event code
|
||||||
135 Unique line(s) of event code
|
172 Unique line(s) of event code
|
||||||
pageTest
|
pageTest
|
||||||
26 Component(s)
|
26 Component(s)
|
||||||
68 Line(s) of event code
|
68 Line(s) of event code
|
||||||
@@ -54,18 +50,18 @@ cardAlarm
|
|||||||
43 Component(s)
|
43 Component(s)
|
||||||
500 Line(s) of event code
|
500 Line(s) of event code
|
||||||
273 Unique line(s) of event code
|
273 Unique line(s) of event code
|
||||||
cardGrid
|
popupLightNew
|
||||||
44 Component(s)
|
23 Component(s)
|
||||||
523 Line(s) of event code
|
412 Line(s) of event code
|
||||||
295 Unique line(s) of event code
|
209 Unique line(s) of event code
|
||||||
screensaver
|
screensaver
|
||||||
46 Component(s)
|
46 Component(s)
|
||||||
435 Line(s) of event code
|
435 Line(s) of event code
|
||||||
309 Unique line(s) of event code
|
309 Unique line(s) of event code
|
||||||
cardGrid2
|
cardPower
|
||||||
52 Component(s)
|
54 Component(s)
|
||||||
611 Line(s) of event code
|
531 Line(s) of event code
|
||||||
319 Unique line(s) of event code
|
349 Unique line(s) of event code
|
||||||
cardLChart
|
cardLChart
|
||||||
33 Component(s)
|
33 Component(s)
|
||||||
402 Line(s) of event code
|
402 Line(s) of event code
|
||||||
@@ -74,25 +70,33 @@ cardThermo
|
|||||||
57 Component(s)
|
57 Component(s)
|
||||||
540 Line(s) of event code
|
540 Line(s) of event code
|
||||||
319 Unique line(s) of event code
|
319 Unique line(s) of event code
|
||||||
|
cardGrid
|
||||||
|
44 Component(s)
|
||||||
|
579 Line(s) of event code
|
||||||
|
330 Unique line(s) of event code
|
||||||
cardMedia
|
cardMedia
|
||||||
59 Component(s)
|
59 Component(s)
|
||||||
649 Line(s) of event code
|
699 Line(s) of event code
|
||||||
322 Unique line(s) of event code
|
354 Unique line(s) of event code
|
||||||
screensaver2
|
popupLight
|
||||||
58 Component(s)
|
28 Component(s)
|
||||||
348 Line(s) of event code
|
412 Line(s) of event code
|
||||||
245 Unique line(s) of event code
|
227 Unique line(s) of event code
|
||||||
cardPower
|
cardGrid2
|
||||||
54 Component(s)
|
52 Component(s)
|
||||||
527 Line(s) of event code
|
689 Line(s) of event code
|
||||||
347 Unique line(s) of event code
|
382 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
67 Component(s)
|
67 Component(s)
|
||||||
1170 Line(s) of event code
|
1194 Line(s) of event code
|
||||||
532 Unique line(s) of event code
|
535 Unique line(s) of event code
|
||||||
|
screensaver2
|
||||||
|
58 Component(s)
|
||||||
|
352 Line(s) of event code
|
||||||
|
247 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
22 Page(s)
|
23 Page(s)
|
||||||
847 Component(s)
|
875 Component(s)
|
||||||
9920 Line(s) of event code
|
10556 Line(s) of event code
|
||||||
2360 Unique line(s) of event code
|
2450 Unique line(s) of event code
|
||||||
|
|||||||
@@ -396,7 +396,7 @@ Text tVersion
|
|||||||
Horizontal Alignment: center
|
Horizontal Alignment: center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : 51
|
Text : 53
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
@@ -575,6 +575,12 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
|
// get feature flag popup
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,featNewSliders,0,0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,12 +24,13 @@ 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 tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
vis tId,0
|
vis tId,0
|
||||||
vis bEffect,0
|
vis bEffect,0
|
||||||
vis hBrightness,0
|
|
||||||
//page open event
|
//page open event
|
||||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
// craft command
|
// craft command
|
||||||
@@ -46,16 +47,16 @@ Page popupLight
|
|||||||
prints tSend.txt,0
|
prints tSend.txt,0
|
||||||
prints crcval,2
|
prints crcval,2
|
||||||
//disable brightness by default
|
//disable brightness by default
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,1
|
vis hBrightness,0
|
||||||
//disable color temp by default
|
//disable color temp by default
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//disable color wheel components by default
|
//disable color wheel components by default
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
//vis t0,0
|
//vis t0,0
|
||||||
popupLight.bco=defaultBcoColor
|
popupLight.bco=defaultBcoColor
|
||||||
@@ -74,83 +75,115 @@ Page popupLight
|
|||||||
}
|
}
|
||||||
if(defaultBcoColor==0)
|
if(defaultBcoColor==0)
|
||||||
{
|
{
|
||||||
|
hBrightness.pic=24
|
||||||
|
hBrightness.pic1=25
|
||||||
|
hBrightness.pic2=15
|
||||||
hTempSlider.pic=16
|
hTempSlider.pic=16
|
||||||
hTempSlider.pic1=16
|
hTempSlider.pic1=17
|
||||||
|
hTempSlider.pic2=15
|
||||||
}
|
}
|
||||||
|
|
||||||
Postinitialize Event
|
|
||||||
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
|
||||||
|
|
||||||
Variable (int32) col
|
|
||||||
Attributes
|
|
||||||
ID : 18
|
|
||||||
Scope: local
|
|
||||||
Value: 65504
|
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Variable (int32) mode
|
Variable (int32) mode
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 22
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 1
|
Value: 1
|
||||||
|
|
||||||
Variable (int32) mode_temp
|
Variable (int32) mode_temp
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 23
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 500
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) tId
|
|
||||||
Attributes
|
|
||||||
ID : 20
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tInstruction
|
|
||||||
Attributes
|
|
||||||
ID : 19
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 200
|
||||||
|
|
||||||
Variable (string) tTmp
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 24
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 80
|
|
||||||
|
|
||||||
Text tEntity
|
|
||||||
Attributes
|
|
||||||
ID : 2
|
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 108
|
x coordinate : 9
|
||||||
y coordinate : 21
|
y coordinate : 80
|
||||||
Width : 263
|
Width : 64
|
||||||
|
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 : Color
|
||||||
|
Max. Text Size : 50
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t1
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 10
|
||||||
|
y coordinate : 226
|
||||||
|
Width : 211
|
||||||
|
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 : Brightness
|
||||||
|
Max. Text Size : 50
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t2
|
||||||
|
Attributes
|
||||||
|
ID : 9
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 10
|
||||||
|
y coordinate : 267
|
||||||
|
Width : 45
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -160,25 +193,244 @@ Text tEntity
|
|||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Font ID : 1
|
Font ID : 1
|
||||||
Back. Color : 6371
|
Back. Color : 6371
|
||||||
Font Color : 65535
|
Font Color : 40147
|
||||||
Horizontal Alignment: center
|
Horizontal Alignment: center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t3
|
||||||
|
Attributes
|
||||||
|
ID : 10
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 10
|
||||||
|
y coordinate : 181
|
||||||
|
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 : 40147
|
||||||
|
Horizontal Alignment: center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t4
|
||||||
|
Attributes
|
||||||
|
ID : 11
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 9
|
||||||
|
y coordinate : 143
|
||||||
|
Width : 242
|
||||||
|
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 : Temperature
|
||||||
|
Max. Text Size : 50
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
ID : 3
|
||||||
|
Scope : local
|
||||||
|
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 : tEntity1
|
Text : tEntity1
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Picture pColorWheel
|
Text tIcon1
|
||||||
|
Attributes
|
||||||
|
ID : 4
|
||||||
|
Scope : local
|
||||||
|
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 tId
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope : local
|
||||||
|
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
|
||||||
|
|
||||||
|
Text tInstruction
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
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 tTmp
|
||||||
|
Attributes
|
||||||
|
ID : 12
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 406
|
||||||
|
y coordinate : 277
|
||||||
|
Width : 34
|
||||||
|
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
|
||||||
|
|
||||||
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 249
|
x coordinate : 0
|
||||||
y coordinate : 105
|
y coordinate : 0
|
||||||
|
Width : 480
|
||||||
|
Height : 320
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Picture ID : 0
|
||||||
|
|
||||||
|
Picture pColorWheel
|
||||||
|
Attributes
|
||||||
|
ID : 2
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 167
|
||||||
|
y coordinate : 69
|
||||||
Width : 160
|
Width : 160
|
||||||
Height : 160
|
Height : 160
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -216,44 +468,30 @@ Picture pColorWheel
|
|||||||
|
|
||||||
Slider hBrightness
|
Slider hBrightness
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 105
|
x coordinate : 61
|
||||||
y coordinate : 64
|
y coordinate : 261
|
||||||
Width : 100
|
Width : 335
|
||||||
Height : 250
|
Height : 43
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
Direction : vertical
|
Direction : horizontal
|
||||||
Fill : image
|
Fill : image
|
||||||
Cursor width : auto
|
Cursor width : auto
|
||||||
Cursor height : 1
|
Cursor height : 255
|
||||||
Back. Picture ID : 65535
|
Back. Picture ID : 5
|
||||||
Slided Back. Picture ID: 65535
|
Slided Back. Picture ID: 4
|
||||||
Position : 50
|
Position : 50
|
||||||
Upper range limit : 100
|
Upper range limit : 100
|
||||||
Lower range limit : 0
|
Lower range limit : 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmCooldown.en=1
|
tmCooldown.en=1
|
||||||
tmCooldown.tim=2500
|
tmCooldown.tim=2500
|
||||||
//craft command
|
//craft command
|
||||||
@@ -274,24 +512,24 @@ Slider hBrightness
|
|||||||
|
|
||||||
Slider hTempSlider
|
Slider hTempSlider
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 279
|
x coordinate : 61
|
||||||
y coordinate : 64
|
y coordinate : 178
|
||||||
Width : 100
|
Width : 335
|
||||||
Height : 250
|
Height : 44
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
Direction : vertical
|
Direction : horizontal
|
||||||
Fill : image
|
Fill : image
|
||||||
Cursor width : auto
|
Cursor width : auto
|
||||||
Cursor height : 255
|
Cursor height : 255
|
||||||
Back. Picture ID : 7
|
Back. Picture ID : 22
|
||||||
Slided Back. Picture ID: 7
|
Slided Back. Picture ID: 23
|
||||||
Position : 50
|
Position : 50
|
||||||
Upper range limit : 100
|
Upper range limit : 100
|
||||||
Lower range limit : 0
|
Lower range limit : 0
|
||||||
@@ -318,12 +556,12 @@ Slider hTempSlider
|
|||||||
|
|
||||||
Button b0
|
Button b0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 413
|
x coordinate : 397
|
||||||
y coordinate : 8
|
y coordinate : 8
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
@@ -364,13 +602,13 @@ Button b0
|
|||||||
|
|
||||||
Button bColor
|
Button bColor
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 30
|
x coordinate : 93
|
||||||
y coordinate : 146
|
y coordinate : 68
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -401,8 +639,8 @@ Button bColor
|
|||||||
//enable color wheel
|
//enable color wheel
|
||||||
vis pColorWheel,1
|
vis pColorWheel,1
|
||||||
//disable color temp
|
//disable color temp
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
@@ -412,21 +650,21 @@ Button bColor
|
|||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
//enable color temp
|
//enable color temp
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button bEffect
|
Button bEffect
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 30
|
x coordinate : 396
|
||||||
y coordinate : 213
|
y coordinate : 95
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -453,17 +691,18 @@ Button bEffect
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity.txt
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
pageIcons.tTmp2.txt=entn.txt
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
page popupInSel
|
page popupInSel
|
||||||
|
|
||||||
Dual-state Button btOnOff1
|
Dual-state Button btOnOff1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 30
|
x coordinate : 341
|
||||||
y coordinate : 77
|
y coordinate : 95
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -502,43 +741,18 @@ Dual-state Button btOnOff1
|
|||||||
|
|
||||||
Timer tmCooldown
|
Timer tmCooldown
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 300
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
tmCooldown.en=0
|
tmCooldown.en=0
|
||||||
|
|
||||||
Timer tmDrawCooldown
|
|
||||||
Attributes
|
|
||||||
ID : 22
|
|
||||||
Scope : local
|
|
||||||
Period (ms): 500
|
|
||||||
Enabled : no
|
|
||||||
|
|
||||||
Events
|
|
||||||
Timer Event
|
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmDrawCooldown.en=0
|
|
||||||
|
|
||||||
Timer tmSerial
|
Timer tmSerial
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
@@ -593,12 +807,11 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// 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
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
col.val=sys0
|
tIcon1.pco=sys0
|
||||||
//tEntity.pco=sys0
|
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -607,26 +820,27 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,0
|
vis hBrightness,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t1,1
|
vis t1,1
|
||||||
//vis t2,1
|
vis t2,1
|
||||||
vis hBrightness,1
|
vis hBrightness,1
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
hBrightness.val=sys0
|
hBrightness.val=sys0
|
||||||
tmDrawCooldown.en=1
|
}
|
||||||
tmDrawCooldown.tim=500
|
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
mode_temp.val=0
|
mode_temp.val=0
|
||||||
// mode == 1 is temp controls currently shown
|
// mode == 1 is temp controls currently shown
|
||||||
if(mode.val==1)
|
if(mode.val==1)
|
||||||
@@ -649,8 +863,8 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
mode_temp.val=1
|
mode_temp.val=1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
if(tmCooldown.en==0)
|
if(tmCooldown.en==0)
|
||||||
{
|
{
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -669,12 +883,12 @@ Timer tmSerial
|
|||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t0,1
|
vis t0,1
|
||||||
//only enable bColor button if color temp is also supported
|
//only enable bColor button if color temp is also supported
|
||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
@@ -686,11 +900,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
//spstr strCommand.txt,t0.txt,"~",8
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
//spstr strCommand.txt,t4.txt,"~",9
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
//spstr strCommand.txt,t1.txt,"~",10
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
// activate effect button
|
// activate effect button
|
||||||
spstr strCommand.txt,tTmp.txt,"~",11
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
if(tTmp.txt=="enable")
|
if(tTmp.txt=="enable")
|
||||||
@@ -825,7 +1039,7 @@ Timer tmSerial
|
|||||||
|
|
||||||
Timer tmSleep
|
Timer tmSleep
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 1000
|
Period (ms): 1000
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
@@ -845,7 +1059,7 @@ Timer tmSleep
|
|||||||
|
|
||||||
TouchCap tc0
|
TouchCap tc0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 13
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
|
|||||||
855
HMI/US/landscape/n2t-out-visual/popupLightNew.txt
Normal file
855
HMI/US/landscape/n2t-out-visual/popupLightNew.txt
Normal file
@@ -0,0 +1,855 @@
|
|||||||
|
Page popupLightNew
|
||||||
|
Attributes
|
||||||
|
ID : 0
|
||||||
|
Scope : local
|
||||||
|
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
|
||||||
|
vis tSend,0
|
||||||
|
vis tTmp,0
|
||||||
|
vis tInstruction,0
|
||||||
|
vis tId,0
|
||||||
|
vis bEffect,0
|
||||||
|
vis hBrightness,0
|
||||||
|
//page open event
|
||||||
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
|
// craft command
|
||||||
|
tSend.txt="event,pageOpenDetail,popupLight,"+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
|
||||||
|
//disable brightness by default
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,1
|
||||||
|
//disable color temp by default
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
//disable color wheel components by default
|
||||||
|
vis bColor,0
|
||||||
|
//vis t0,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
//vis t0,0
|
||||||
|
popupLightNew.bco=defaultBcoColor
|
||||||
|
for(sys0=0;sys0<27;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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(defaultBcoColor==0)
|
||||||
|
{
|
||||||
|
hTempSlider.pic=16
|
||||||
|
hTempSlider.pic1=16
|
||||||
|
}
|
||||||
|
|
||||||
|
Postinitialize Event
|
||||||
|
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
||||||
|
|
||||||
|
Variable (int32) col
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope: local
|
||||||
|
Value: 65504
|
||||||
|
|
||||||
|
Variable (string) entn
|
||||||
|
Attributes
|
||||||
|
ID : 11
|
||||||
|
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 (string) strCommand
|
||||||
|
Attributes
|
||||||
|
ID : 9
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 500
|
||||||
|
|
||||||
|
Variable (string) tId
|
||||||
|
Attributes
|
||||||
|
ID : 20
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tInstruction
|
||||||
|
Attributes
|
||||||
|
ID : 19
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tSend
|
||||||
|
Attributes
|
||||||
|
ID : 16
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 200
|
||||||
|
|
||||||
|
Variable (string) tTmp
|
||||||
|
Attributes
|
||||||
|
ID : 21
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
ID : 2
|
||||||
|
Scope : local
|
||||||
|
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 : 1
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 65535
|
||||||
|
Horizontal Alignment: center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text : tEntity1
|
||||||
|
Max. Text Size : 25
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Picture pColorWheel
|
||||||
|
Attributes
|
||||||
|
ID : 1
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 233
|
||||||
|
y coordinate : 105
|
||||||
|
Width : 160
|
||||||
|
Height : 160
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Picture ID : 3
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
||||||
|
sys0=tch0
|
||||||
|
sys0=sys0-pColorWheel.x
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
sys0=tch1
|
||||||
|
sys0=sys0-pColorWheel.y
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
covx pColorWheel.h,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hBrightness
|
||||||
|
Attributes
|
||||||
|
ID : 4
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 89
|
||||||
|
y coordinate : 64
|
||||||
|
Width : 100
|
||||||
|
Height : 250
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Direction : vertical
|
||||||
|
Fill : image
|
||||||
|
Cursor width : auto
|
||||||
|
Cursor height : 1
|
||||||
|
Back. Picture ID : 65535
|
||||||
|
Slided Back. Picture ID: 65535
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
|
||||||
|
covx hBrightness.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hTempSlider
|
||||||
|
Attributes
|
||||||
|
ID : 10
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 263
|
||||||
|
y coordinate : 64
|
||||||
|
Width : 100
|
||||||
|
Height : 250
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Direction : vertical
|
||||||
|
Fill : image
|
||||||
|
Cursor width : auto
|
||||||
|
Cursor height : 255
|
||||||
|
Back. Picture ID : 7
|
||||||
|
Slided Back. Picture ID: 7
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
||||||
|
covx hTempSlider.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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 b0
|
||||||
|
Attributes
|
||||||
|
ID : 3
|
||||||
|
Scope : local
|
||||||
|
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 bColor
|
||||||
|
Attributes
|
||||||
|
ID : 12
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 14
|
||||||
|
y coordinate : 146
|
||||||
|
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
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
mode.val=0
|
||||||
|
//enable color wheel
|
||||||
|
vis pColorWheel,1
|
||||||
|
//disable color temp
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode.val=1
|
||||||
|
//disable color wheel
|
||||||
|
vis pColorWheel,0
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
//enable color temp
|
||||||
|
//vis t4,1
|
||||||
|
//vis t3,1
|
||||||
|
vis hTempSlider,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button bEffect
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 14
|
||||||
|
y coordinate : 213
|
||||||
|
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
|
||||||
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
page popupInSel
|
||||||
|
|
||||||
|
Dual-state Button btOnOff1
|
||||||
|
Attributes
|
||||||
|
ID : 5
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 14
|
||||||
|
y coordinate : 77
|
||||||
|
Width : 50
|
||||||
|
Height : 50
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : image
|
||||||
|
Font ID : 0
|
||||||
|
Background Picture ID (Unpressed): 1
|
||||||
|
Back. Picture ID (Pressed) : 2
|
||||||
|
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
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
||||||
|
covx btOnOff1.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Timer tmCooldown
|
||||||
|
Attributes
|
||||||
|
ID : 15
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 300
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
tmCooldown.en=0
|
||||||
|
|
||||||
|
Timer tmDrawCooldown
|
||||||
|
Attributes
|
||||||
|
ID : 22
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 500
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmDrawCooldown.en=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
|
||||||
|
col.val=sys0
|
||||||
|
//tEntity.pco=sys0
|
||||||
|
// get Button State
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
btOnOff1.val=sys0
|
||||||
|
// get Brightness value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t1,1
|
||||||
|
//vis t2,1
|
||||||
|
vis hBrightness,1
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hBrightness.val=sys0
|
||||||
|
tmDrawCooldown.en=1
|
||||||
|
tmDrawCooldown.tim=500
|
||||||
|
}
|
||||||
|
// get ColorTemp value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
vis hTempSlider,0
|
||||||
|
//vis t3,0
|
||||||
|
//vis t4,0
|
||||||
|
mode_temp.val=0
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
vis hTempSlider,1
|
||||||
|
//vis t3,1
|
||||||
|
//vis t4,1
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hTempSlider.val=sys0
|
||||||
|
}
|
||||||
|
// mode == 0 is rgb controls currently shown
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// get Color value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
|
// disable -> isn't supported
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t0,0
|
||||||
|
vis bColor,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t0,1
|
||||||
|
//only enable bColor button if color temp is also supported
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
vis bColor,1
|
||||||
|
}
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
vis pColorWheel,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// set t0 Color (Localization)
|
||||||
|
//spstr strCommand.txt,t0.txt,"~",8
|
||||||
|
// set t4 Temperature (Localization)
|
||||||
|
//spstr strCommand.txt,t4.txt,"~",9
|
||||||
|
// set t1 Brightness (Localization)
|
||||||
|
//spstr strCommand.txt,t1.txt,"~",10
|
||||||
|
// activate effect button
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
vis bEffect,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis bEffect,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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=="cardGrid2")
|
||||||
|
{
|
||||||
|
page cardGrid2
|
||||||
|
}
|
||||||
|
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(tId.txt=="cardChart")
|
||||||
|
{
|
||||||
|
page cardChart
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// end of user code
|
||||||
|
udelete payloadLength-1
|
||||||
|
bufferPos=0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// next character
|
||||||
|
bufferPos++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TouchCap tc0
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
sleepValue=0
|
||||||
|
|
||||||
@@ -581,7 +581,7 @@ Timer tmSerial
|
|||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout2")
|
||||||
{
|
{
|
||||||
//set timeout to global var
|
//set timeout to global var
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
|||||||
@@ -1617,6 +1617,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ Program.s
|
|||||||
//color vars
|
//color vars
|
||||||
int defaultFontColor=65535
|
int defaultFontColor=65535
|
||||||
int defaultBcoColor=6371
|
int defaultBcoColor=6371
|
||||||
|
//feature flags
|
||||||
|
int featNewSliders=0
|
||||||
// fix touch offset
|
// fix touch offset
|
||||||
//lcd_dev fffb 0002 0000 0020
|
//lcd_dev fffb 0002 0000 0020
|
||||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
|
|||||||
@@ -965,9 +965,14 @@ Hotspot m0
|
|||||||
}
|
}
|
||||||
if(type1.txt=="light")
|
if(type1.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity1.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type1.txt=="fan")
|
if(type1.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -999,9 +1004,14 @@ Hotspot m1
|
|||||||
}
|
}
|
||||||
if(type2.txt=="light")
|
if(type2.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity2.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type2.txt=="fan")
|
if(type2.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1033,9 +1043,14 @@ Hotspot m2
|
|||||||
}
|
}
|
||||||
if(type3.txt=="light")
|
if(type3.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity3.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type3.txt=="fan")
|
if(type3.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1067,9 +1082,14 @@ Hotspot m3
|
|||||||
}
|
}
|
||||||
if(type4.txt=="light")
|
if(type4.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity4.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type4.txt=="fan")
|
if(type4.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
|
|||||||
@@ -604,9 +604,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -713,6 +719,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -734,6 +751,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -755,6 +783,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -776,6 +815,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -797,6 +847,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -818,6 +879,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -904,10 +976,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -559,26 +559,26 @@ Button bEntity7
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type7.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity7.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn7.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity7.txt
|
||||||
if(type6.txt=="shutter")
|
if(type7.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type7.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type7.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -603,26 +603,26 @@ Button bEntity8
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type8.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity8.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn8.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity8.txt
|
||||||
if(type6.txt=="shutter")
|
if(type8.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type8.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type8.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -738,9 +738,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -847,6 +853,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -868,6 +885,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -889,6 +917,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -910,6 +949,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -931,6 +981,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -952,6 +1013,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -973,6 +1045,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity7.txt,"~",52
|
spstr strCommand.txt,bEntity7.txt,"~",52
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity7.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity7.font=sys1
|
||||||
|
substr bEntity7.txt,bEntity7.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity7,1
|
vis bEntity7,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",53
|
spstr strCommand.txt,tTmp.txt,"~",53
|
||||||
@@ -994,6 +1077,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity8.txt,"~",58
|
spstr strCommand.txt,bEntity8.txt,"~",58
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity8.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity8.font=sys1
|
||||||
|
substr bEntity8.txt,bEntity8.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity8,1
|
vis bEntity8,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",59
|
spstr strCommand.txt,tTmp.txt,"~",59
|
||||||
|
|||||||
@@ -997,6 +997,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",26
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1018,6 +1029,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",32
|
spstr strCommand.txt,tTmp.txt,"~",32
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1039,6 +1061,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",38
|
spstr strCommand.txt,tTmp.txt,"~",38
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1060,6 +1093,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",44
|
spstr strCommand.txt,tTmp.txt,"~",44
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1081,6 +1125,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",50
|
spstr strCommand.txt,tTmp.txt,"~",50
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1102,6 +1157,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",56
|
spstr strCommand.txt,tTmp.txt,"~",56
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1187,10 +1253,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -964,6 +964,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ Text tVersion
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : 51
|
Text : 53
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
@@ -279,6 +279,12 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
|
// get feature flag popup
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,featNewSliders,0,0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,12 +16,13 @@ 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 tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
vis tId,0
|
vis tId,0
|
||||||
vis bEffect,0
|
vis bEffect,0
|
||||||
vis hBrightness,0
|
|
||||||
//page open event
|
//page open event
|
||||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
// craft command
|
// craft command
|
||||||
@@ -38,16 +39,16 @@ Page popupLight
|
|||||||
prints tSend.txt,0
|
prints tSend.txt,0
|
||||||
prints crcval,2
|
prints crcval,2
|
||||||
//disable brightness by default
|
//disable brightness by default
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,1
|
vis hBrightness,0
|
||||||
//disable color temp by default
|
//disable color temp by default
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//disable color wheel components by default
|
//disable color wheel components by default
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
//vis t0,0
|
//vis t0,0
|
||||||
popupLight.bco=defaultBcoColor
|
popupLight.bco=defaultBcoColor
|
||||||
@@ -66,18 +67,14 @@ Page popupLight
|
|||||||
}
|
}
|
||||||
if(defaultBcoColor==0)
|
if(defaultBcoColor==0)
|
||||||
{
|
{
|
||||||
|
hBrightness.pic=24
|
||||||
|
hBrightness.pic1=25
|
||||||
|
hBrightness.pic2=15
|
||||||
hTempSlider.pic=16
|
hTempSlider.pic=16
|
||||||
hTempSlider.pic1=16
|
hTempSlider.pic1=17
|
||||||
|
hTempSlider.pic2=15
|
||||||
}
|
}
|
||||||
|
|
||||||
Postinitialize Event
|
|
||||||
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
|
||||||
|
|
||||||
Variable (int32) col
|
|
||||||
Attributes
|
|
||||||
Scope: local
|
|
||||||
Value: 65504
|
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -100,29 +97,56 @@ Variable (string) strCommand
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size: 500
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) tId
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tInstruction
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 200
|
||||||
|
|
||||||
Variable (string) tTmp
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Dragging : 0
|
||||||
Max. Text Size: 80
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : Color
|
||||||
|
Max. Text Size : 50
|
||||||
|
|
||||||
|
Text t1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : Brightness
|
||||||
|
Max. Text Size : 50
|
||||||
|
|
||||||
|
Text t2
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Text t3
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Text t4
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : Temperature
|
||||||
|
Max. Text Size : 50
|
||||||
|
|
||||||
Text tEntity
|
Text tEntity
|
||||||
Attributes
|
Attributes
|
||||||
@@ -133,6 +157,48 @@ Text tEntity
|
|||||||
Text : tEntity1
|
Text : tEntity1
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
|
Text tIcon1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : î´
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Text tId
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text tInstruction
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text tTmp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 80
|
||||||
|
|
||||||
|
Picture p0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
|
||||||
Picture pColorWheel
|
Picture pColorWheel
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -178,20 +244,6 @@ Slider hBrightness
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmCooldown.en=1
|
tmCooldown.en=1
|
||||||
tmCooldown.tim=2500
|
tmCooldown.tim=2500
|
||||||
//craft command
|
//craft command
|
||||||
@@ -280,8 +332,8 @@ Button bColor
|
|||||||
//enable color wheel
|
//enable color wheel
|
||||||
vis pColorWheel,1
|
vis pColorWheel,1
|
||||||
//disable color temp
|
//disable color temp
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
@@ -291,8 +343,8 @@ Button bColor
|
|||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
//enable color temp
|
//enable color temp
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -310,6 +362,7 @@ Button bEffect
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity.txt
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
pageIcons.tTmp2.txt=entn.txt
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
page popupInSel
|
page popupInSel
|
||||||
|
|
||||||
Dual-state Button btOnOff1
|
Dual-state Button btOnOff1
|
||||||
@@ -342,37 +395,13 @@ Dual-state Button btOnOff1
|
|||||||
Timer tmCooldown
|
Timer tmCooldown
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 300
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
tmCooldown.en=0
|
tmCooldown.en=0
|
||||||
|
|
||||||
Timer tmDrawCooldown
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Period (ms): 500
|
|
||||||
Enabled : no
|
|
||||||
|
|
||||||
Events
|
|
||||||
Timer Event
|
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmDrawCooldown.en=0
|
|
||||||
|
|
||||||
Timer tmSerial
|
Timer tmSerial
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -429,12 +458,11 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// 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
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
col.val=sys0
|
tIcon1.pco=sys0
|
||||||
//tEntity.pco=sys0
|
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -443,26 +471,27 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,0
|
vis hBrightness,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t1,1
|
vis t1,1
|
||||||
//vis t2,1
|
vis t2,1
|
||||||
vis hBrightness,1
|
vis hBrightness,1
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
hBrightness.val=sys0
|
hBrightness.val=sys0
|
||||||
tmDrawCooldown.en=1
|
}
|
||||||
tmDrawCooldown.tim=500
|
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
mode_temp.val=0
|
mode_temp.val=0
|
||||||
// mode == 1 is temp controls currently shown
|
// mode == 1 is temp controls currently shown
|
||||||
if(mode.val==1)
|
if(mode.val==1)
|
||||||
@@ -485,8 +514,8 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
mode_temp.val=1
|
mode_temp.val=1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
if(tmCooldown.en==0)
|
if(tmCooldown.en==0)
|
||||||
{
|
{
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -505,12 +534,12 @@ Timer tmSerial
|
|||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t0,1
|
vis t0,1
|
||||||
//only enable bColor button if color temp is also supported
|
//only enable bColor button if color temp is also supported
|
||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
@@ -522,11 +551,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
//spstr strCommand.txt,t0.txt,"~",8
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
//spstr strCommand.txt,t4.txt,"~",9
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
//spstr strCommand.txt,t1.txt,"~",10
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
// activate effect button
|
// activate effect button
|
||||||
spstr strCommand.txt,tTmp.txt,"~",11
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
if(tTmp.txt=="enable")
|
if(tTmp.txt=="enable")
|
||||||
|
|||||||
689
HMI/US/landscape/n2t-out/popupLightNew.txt
Normal file
689
HMI/US/landscape/n2t-out/popupLightNew.txt
Normal file
@@ -0,0 +1,689 @@
|
|||||||
|
Page popupLightNew
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
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
|
||||||
|
//get entitiy name
|
||||||
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
|
//get entity id
|
||||||
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
vis tSend,0
|
||||||
|
vis tTmp,0
|
||||||
|
vis tInstruction,0
|
||||||
|
vis tId,0
|
||||||
|
vis bEffect,0
|
||||||
|
vis hBrightness,0
|
||||||
|
//page open event
|
||||||
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
|
// craft command
|
||||||
|
tSend.txt="event,pageOpenDetail,popupLight,"+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
|
||||||
|
//disable brightness by default
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,1
|
||||||
|
//disable color temp by default
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
//disable color wheel components by default
|
||||||
|
vis bColor,0
|
||||||
|
//vis t0,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
//vis t0,0
|
||||||
|
popupLightNew.bco=defaultBcoColor
|
||||||
|
for(sys0=0;sys0<27;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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(defaultBcoColor==0)
|
||||||
|
{
|
||||||
|
hTempSlider.pic=16
|
||||||
|
hTempSlider.pic1=16
|
||||||
|
}
|
||||||
|
|
||||||
|
Postinitialize Event
|
||||||
|
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
||||||
|
|
||||||
|
Variable (int32) col
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 65504
|
||||||
|
|
||||||
|
Variable (string) entn
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Variable (int32) mode
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 1
|
||||||
|
|
||||||
|
Variable (int32) mode_temp
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (string) strCommand
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 500
|
||||||
|
|
||||||
|
Variable (string) tId
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tInstruction
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tSend
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 200
|
||||||
|
|
||||||
|
Variable (string) tTmp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : tEntity1
|
||||||
|
Max. Text Size : 25
|
||||||
|
|
||||||
|
Picture pColorWheel
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
||||||
|
sys0=tch0
|
||||||
|
sys0=sys0-pColorWheel.x
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
sys0=tch1
|
||||||
|
sys0=sys0-pColorWheel.y
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
covx pColorWheel.h,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hBrightness
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit: 100
|
||||||
|
Lower range limit: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
|
||||||
|
covx hBrightness.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hTempSlider
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit: 100
|
||||||
|
Lower range limit: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
||||||
|
covx hTempSlider.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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 b0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
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 bColor
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
mode.val=0
|
||||||
|
//enable color wheel
|
||||||
|
vis pColorWheel,1
|
||||||
|
//disable color temp
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode.val=1
|
||||||
|
//disable color wheel
|
||||||
|
vis pColorWheel,0
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
//enable color temp
|
||||||
|
//vis t4,1
|
||||||
|
//vis t3,1
|
||||||
|
vis hTempSlider,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button bEffect
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : 
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
page popupInSel
|
||||||
|
|
||||||
|
Dual-state Button btOnOff1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
||||||
|
covx btOnOff1.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Timer tmCooldown
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 300
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
tmCooldown.en=0
|
||||||
|
|
||||||
|
Timer tmDrawCooldown
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 500
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmDrawCooldown.en=0
|
||||||
|
|
||||||
|
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
|
||||||
|
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
|
||||||
|
col.val=sys0
|
||||||
|
//tEntity.pco=sys0
|
||||||
|
// get Button State
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
btOnOff1.val=sys0
|
||||||
|
// get Brightness value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t1,1
|
||||||
|
//vis t2,1
|
||||||
|
vis hBrightness,1
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hBrightness.val=sys0
|
||||||
|
tmDrawCooldown.en=1
|
||||||
|
tmDrawCooldown.tim=500
|
||||||
|
}
|
||||||
|
// get ColorTemp value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
vis hTempSlider,0
|
||||||
|
//vis t3,0
|
||||||
|
//vis t4,0
|
||||||
|
mode_temp.val=0
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
vis hTempSlider,1
|
||||||
|
//vis t3,1
|
||||||
|
//vis t4,1
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hTempSlider.val=sys0
|
||||||
|
}
|
||||||
|
// mode == 0 is rgb controls currently shown
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// get Color value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
|
// disable -> isn't supported
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t0,0
|
||||||
|
vis bColor,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t0,1
|
||||||
|
//only enable bColor button if color temp is also supported
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
vis bColor,1
|
||||||
|
}
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
vis pColorWheel,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// set t0 Color (Localization)
|
||||||
|
//spstr strCommand.txt,t0.txt,"~",8
|
||||||
|
// set t4 Temperature (Localization)
|
||||||
|
//spstr strCommand.txt,t4.txt,"~",9
|
||||||
|
// set t1 Brightness (Localization)
|
||||||
|
//spstr strCommand.txt,t1.txt,"~",10
|
||||||
|
// activate effect button
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
vis bEffect,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis bEffect,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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=="cardGrid2")
|
||||||
|
{
|
||||||
|
page cardGrid2
|
||||||
|
}
|
||||||
|
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(tId.txt=="cardChart")
|
||||||
|
{
|
||||||
|
page cardChart
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 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)
|
||||||
|
{
|
||||||
|
sleepValue+=1
|
||||||
|
if(sleepTimeout<=sleepValue)
|
||||||
|
{
|
||||||
|
sleepValue=0
|
||||||
|
click b0,1
|
||||||
|
click b0,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TouchCap tc0
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
sleepValue=0
|
||||||
|
|
||||||
@@ -352,7 +352,7 @@ Timer tmSerial
|
|||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout2")
|
||||||
{
|
{
|
||||||
//set timeout to global var
|
//set timeout to global var
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
|||||||
@@ -804,6 +804,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,14 +2,14 @@
|
|||||||
+++ HMI/US/portrait/n2t-out
|
+++ HMI/US/portrait/n2t-out
|
||||||
│ --- HMI/n2t-out/Program.s.txt
|
│ --- HMI/n2t-out/Program.s.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/Program.s.txt
|
├── +++ HMI/US/portrait/n2t-out/Program.s.txt
|
||||||
│ @@ -10,11 +10,11 @@
|
│ @@ -12,11 +12,11 @@
|
||||||
│ int sleepValue=0
|
|
||||||
│ // dim value
|
|
||||||
│ int dimValue=40
|
│ int dimValue=40
|
||||||
│ int dimValueNormal=100
|
│ int dimValueNormal=100
|
||||||
│ //color vars
|
│ //color vars
|
||||||
│ int defaultFontColor=65535
|
│ int defaultFontColor=65535
|
||||||
│ int defaultBcoColor=6371
|
│ int defaultBcoColor=6371
|
||||||
|
│ //feature flags
|
||||||
|
│ int featNewSliders=0
|
||||||
│ - // fix touch offset
|
│ - // fix touch offset
|
||||||
│ - lcd_dev fffb 0002 0000 0020
|
│ - lcd_dev fffb 0002 0000 0020
|
||||||
│ + // fix touch offset (Removed for US version)
|
│ + // fix touch offset (Removed for US version)
|
||||||
@@ -65,54 +65,54 @@
|
|||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Text :
|
│ Text :
|
||||||
│ - Max. Text Size: 80
|
│ - Max. Text Size: 80
|
||||||
│ + Max. Text Size: 65
|
│ + Max. Text Size: 64
|
||||||
│
|
│
|
||||||
│ Variable (string) entn2
|
│ Variable (string) entn2
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Text :
|
│ Text :
|
||||||
│ - Max. Text Size: 80
|
│ - Max. Text Size: 80
|
||||||
│ + Max. Text Size: 65
|
│ + Max. Text Size: 64
|
||||||
│
|
│
|
||||||
│ Variable (string) entn3
|
│ Variable (string) entn3
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Text :
|
│ Text :
|
||||||
│ - Max. Text Size: 80
|
│ - Max. Text Size: 80
|
||||||
│ + Max. Text Size: 65
|
│ + Max. Text Size: 64
|
||||||
│
|
│
|
||||||
│ Variable (string) entn4
|
│ Variable (string) entn4
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Text :
|
│ Text :
|
||||||
│ - Max. Text Size: 80
|
│ - Max. Text Size: 80
|
||||||
│ + Max. Text Size: 65
|
│ + Max. Text Size: 64
|
||||||
│ +
|
│ +
|
||||||
│ +Variable (string) entn5
|
│ +Variable (string) entn5
|
||||||
│ + Attributes
|
│ + Attributes
|
||||||
│ + Scope : local
|
│ + Scope : local
|
||||||
│ + Text :
|
│ + Text :
|
||||||
│ + Max. Text Size: 65
|
│ + Max. Text Size: 64
|
||||||
│ +
|
│ +
|
||||||
│ +Variable (string) entn6
|
│ +Variable (string) entn6
|
||||||
│ + Attributes
|
│ + Attributes
|
||||||
│ + Scope : local
|
│ + Scope : local
|
||||||
│ + Text :
|
│ + Text :
|
||||||
│ + Max. Text Size: 65
|
│ + Max. Text Size: 64
|
||||||
│
|
│
|
||||||
│ Variable (string) nent1
|
│ Variable (string) nent1
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Text :
|
│ Text :
|
||||||
│ - Max. Text Size: 80
|
│ - Max. Text Size: 80
|
||||||
│ + Max. Text Size: 40
|
│ + Max. Text Size: 38
|
||||||
│
|
│
|
||||||
│ Variable (string) nent2
|
│ Variable (string) nent2
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Text :
|
│ Text :
|
||||||
│ - Max. Text Size: 80
|
│ - Max. Text Size: 80
|
||||||
│ + Max. Text Size: 40
|
│ + Max. Text Size: 38
|
||||||
│
|
│
|
||||||
│ Variable (string) strCommand
|
│ Variable (string) strCommand
|
||||||
│ Attributes
|
│ Attributes
|
||||||
@@ -290,9 +290,9 @@
|
|||||||
│ +
|
│ +
|
||||||
│ + Events
|
│ + Events
|
||||||
│ + Touch Release Event
|
│ + Touch Release Event
|
||||||
│ + nNum5.val=hSlider5.val
|
│ + nNum6.val=hSlider6.val
|
||||||
│ + tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
|
│ + tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
|
||||||
│ + covx nNum5.val,tTmp.txt,0,0
|
│ + covx nNum6.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
|
||||||
@@ -611,7 +611,7 @@
|
|||||||
│ + Events
|
│ + Events
|
||||||
│ + Touch Press Event
|
│ + Touch Press Event
|
||||||
│ + tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
|
│ + tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
|
||||||
│ + covx btOnOff5.val,tTmp.txt,0,0
|
│ + covx btOnOff6.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
|
||||||
@@ -632,7 +632,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│
|
│
|
||||||
│ Events
|
│ Events
|
||||||
│ @@ -1079,14 +1473,82 @@
|
│ @@ -1099,14 +1493,92 @@
|
||||||
│ page popupInSel
|
│ page popupInSel
|
||||||
│ }
|
│ }
|
||||||
│ if(type4.txt=="timer")
|
│ if(type4.txt=="timer")
|
||||||
@@ -658,9 +658,14 @@
|
|||||||
│ + }
|
│ + }
|
||||||
│ + if(type5.txt=="light")
|
│ + if(type5.txt=="light")
|
||||||
│ + {
|
│ + {
|
||||||
│ + //popupLight.tEntity.txt=tEntity5.txt
|
│ + if(featNewSliders==1)
|
||||||
|
│ + {
|
||||||
|
│ + page popupLightNew
|
||||||
|
│ + }else
|
||||||
|
│ + {
|
||||||
│ + page popupLight
|
│ + page popupLight
|
||||||
│ + }
|
│ + }
|
||||||
|
│ + }
|
||||||
│ + if(type5.txt=="fan")
|
│ + if(type5.txt=="fan")
|
||||||
│ + {
|
│ + {
|
||||||
│ + page popupFan
|
│ + page popupFan
|
||||||
@@ -692,9 +697,14 @@
|
|||||||
│ + }
|
│ + }
|
||||||
│ + if(type6.txt=="light")
|
│ + if(type6.txt=="light")
|
||||||
│ + {
|
│ + {
|
||||||
│ + //popupLight.tEntity.txt=tEntity5.txt
|
│ + if(featNewSliders==1)
|
||||||
|
│ + {
|
||||||
|
│ + page popupLightNew
|
||||||
|
│ + }else
|
||||||
|
│ + {
|
||||||
│ + page popupLight
|
│ + page popupLight
|
||||||
│ + }
|
│ + }
|
||||||
|
│ + }
|
||||||
│ + if(type6.txt=="fan")
|
│ + if(type6.txt=="fan")
|
||||||
│ + {
|
│ + {
|
||||||
│ + page popupFan
|
│ + page popupFan
|
||||||
@@ -715,7 +725,7 @@
|
|||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│
|
│
|
||||||
│ Events
|
│ Events
|
||||||
│ @@ -1810,14 +2272,312 @@
|
│ @@ -1830,14 +2302,312 @@
|
||||||
│ covx tTmp.txt,sys0,0,0
|
│ covx tTmp.txt,sys0,0,0
|
||||||
│ hSlider4.minval=sys0
|
│ hSlider4.minval=sys0
|
||||||
│ //third value is max value
|
│ //third value is max value
|
||||||
@@ -1126,34 +1136,46 @@
|
|||||||
│ Send Component ID : disabled
|
│ Send Component ID : disabled
|
||||||
│ Associated Keyboard: none
|
│ Associated Keyboard: none
|
||||||
│ Text :
|
│ Text :
|
||||||
│ @@ -555,14 +578,58 @@
|
│ @@ -631,14 +654,58 @@
|
||||||
│ State : unpressed
|
│ crcputs tSend.txt,0
|
||||||
│ Text : î´
|
│ //send cmd
|
||||||
│ Max. Text Size : 10
|
│ printh 55 bb
|
||||||
|
│ prints sys0,2
|
||||||
|
│ prints tSend.txt,0
|
||||||
|
│ prints crcval,2
|
||||||
│
|
│
|
||||||
│ Events
|
│ +Button bEntity9
|
||||||
│ Touch Press Event
|
│ + Attributes
|
||||||
│ tmLP.en=1
|
│ + Scope : local
|
||||||
│ + tTmp.txt=type2.txt
|
│ + Dragging : 0
|
||||||
│ + pageIcons.tTmp1.txt=tEntity2.txt
|
│ + Send Component ID: disabled
|
||||||
│ + pageIcons.tTmp2.txt=entn2.txt
|
│ + State : unpressed
|
||||||
│ + pageIcons.tTmp3.txt=bEntity2.txt
|
│ + Text : î´
|
||||||
│ + if(type2.txt=="shutter")
|
│ + Max. Text Size : 10
|
||||||
|
│ +
|
||||||
|
│ + Events
|
||||||
|
│ + Touch Press Event
|
||||||
|
│ + tmLP.en=1
|
||||||
|
│ + tTmp.txt=type9.txt
|
||||||
|
│ + pageIcons.tTmp1.txt=tEntity9.txt
|
||||||
|
│ + pageIcons.tTmp2.txt=entn9.txt
|
||||||
|
│ + pageIcons.tTmp3.txt=bEntity9.txt
|
||||||
|
│ + if(type9.txt=="shutter")
|
||||||
│ + {
|
│ + {
|
||||||
│ + page popupShutter
|
│ + page popupShutter
|
||||||
│ + }
|
│ + }
|
||||||
│ + if(type2.txt=="input_sel")
|
│ + if(type9.txt=="input_sel")
|
||||||
│ + {
|
│ + {
|
||||||
│ + page popupInSel
|
│ + page popupInSel
|
||||||
│ + }
|
│ + }
|
||||||
│ + if(type2.txt=="timer")
|
│ + if(type9.txt=="timer")
|
||||||
│ + {
|
│ + {
|
||||||
│ + page popupTimer
|
│ + page popupTimer
|
||||||
│ + }
|
│ + }
|
||||||
│ +
|
│ +
|
||||||
│ + Touch Release Event
|
│ + Touch Release Event
|
||||||
│ + tmLP.en=0
|
│ + tmLP.en=0
|
||||||
│ + tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
│ + tSend.txt="event,buttonPress2,"+entn9.txt+",button"
|
||||||
│ + //send calc crc
|
│ + //send calc crc
|
||||||
│ + btlen tSend.txt,sys0
|
│ + btlen tSend.txt,sys0
|
||||||
│ + crcrest 1,0xffff // reset CRC
|
│ + crcrest 1,0xffff // reset CRC
|
||||||
@@ -1166,43 +1188,14 @@
|
|||||||
│ + prints tSend.txt,0
|
│ + prints tSend.txt,0
|
||||||
│ + prints crcval,2
|
│ + prints crcval,2
|
||||||
│ +
|
│ +
|
||||||
│ +Button bEntity8
|
│ Button bNext
|
||||||
│ + Attributes
|
|
||||||
│ + Scope : local
|
|
||||||
│ + Dragging : 0
|
|
||||||
│ + Send Component ID: disabled
|
|
||||||
│ + State : unpressed
|
|
||||||
│ + Text : î´
|
|
||||||
│ + Max. Text Size : 10
|
|
||||||
│ +
|
|
||||||
│ + Events
|
|
||||||
│ + Touch Press Event
|
|
||||||
│ + tmLP.en=1
|
|
||||||
│ tTmp.txt=type6.txt
|
|
||||||
│ pageIcons.tTmp1.txt=tEntity6.txt
|
|
||||||
│ pageIcons.tTmp2.txt=entn6.txt
|
|
||||||
│ pageIcons.tTmp3.txt=bEntity6.txt
|
|
||||||
│ if(type6.txt=="shutter")
|
|
||||||
│ {
|
|
||||||
│ page popupShutter
|
|
||||||
│ @@ -587,15 +654,15 @@
|
|
||||||
│ crcputs tSend.txt,0
|
|
||||||
│ //send cmd
|
|
||||||
│ printh 55 bb
|
|
||||||
│ prints sys0,2
|
|
||||||
│ prints tSend.txt,0
|
|
||||||
│ prints crcval,2
|
|
||||||
│
|
|
||||||
│ -Button bEntity8
|
|
||||||
│ +Button bEntity9
|
|
||||||
│ Attributes
|
│ Attributes
|
||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Dragging : 0
|
│ Dragging : 0
|
||||||
│ Send Component ID: disabled
|
│ Send Component ID: disabled
|
||||||
│ State : unpressed
|
│ State : unpressed
|
||||||
│ Text : î´
|
│ Text : î³
|
||||||
│ Max. Text Size : 10
|
│ @@ -1093,14 +1160,46 @@
|
||||||
│ @@ -999,14 +1066,35 @@
|
|
||||||
│ spstr strCommand.txt,tTmp.txt,"~",59
|
│ spstr strCommand.txt,tTmp.txt,"~",59
|
||||||
│ covx tTmp.txt,sys0,0,0
|
│ covx tTmp.txt,sys0,0,0
|
||||||
│ bEntity8.pco=sys0
|
│ bEntity8.pco=sys0
|
||||||
@@ -1222,6 +1215,17 @@
|
|||||||
│ + {
|
│ + {
|
||||||
│ + // change icon
|
│ + // change icon
|
||||||
│ + spstr strCommand.txt,bEntity9.txt,"~",64
|
│ + spstr strCommand.txt,bEntity9.txt,"~",64
|
||||||
|
│ + // way to get force font adjustment
|
||||||
|
│ + strlen bEntity9.txt,sys0
|
||||||
|
│ + //check 2nd last char for ¬
|
||||||
|
│ + substr bEntity9.txt,tTmp.txt,sys0-2,1
|
||||||
|
│ + if(tTmp.txt=="¬")
|
||||||
|
│ + {
|
||||||
|
│ + substr bEntity9.txt,tTmp.txt,sys0-1,1
|
||||||
|
│ + covx tTmp.txt,sys1,0,0
|
||||||
|
│ + bEntity9.font=sys1
|
||||||
|
│ + substr bEntity9.txt,bEntity9.txt,0,sys0-2
|
||||||
|
│ + }
|
||||||
│ + vis bEntity9,1
|
│ + vis bEntity9,1
|
||||||
│ + // change icon color
|
│ + // change icon color
|
||||||
│ + spstr strCommand.txt,tTmp.txt,"~",65
|
│ + spstr strCommand.txt,tTmp.txt,"~",65
|
||||||
@@ -1565,6 +1569,23 @@
|
|||||||
│ Scope : local
|
│ Scope : local
|
||||||
│ Period (ms): 50
|
│ Period (ms): 50
|
||||||
│ Enabled : yes
|
│ Enabled : yes
|
||||||
|
│ @@ -962,15 +938,15 @@
|
||||||
|
│ }
|
||||||
|
│ if(tId.txt=="cardChart")
|
||||||
|
│ {
|
||||||
|
│ page cardChart
|
||||||
|
│ }
|
||||||
|
│ if(tId.txt=="cardLChart")
|
||||||
|
│ {
|
||||||
|
│ - page cardLChart
|
||||||
|
│ + page cardChart
|
||||||
|
│ }
|
||||||
|
│ }
|
||||||
|
│ if(tInstruction.txt=="time")
|
||||||
|
│ {
|
||||||
|
│ // get set time to global variable
|
||||||
|
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
|
│ }
|
||||||
│ --- HMI/n2t-out/pageStartup.txt
|
│ --- HMI/n2t-out/pageStartup.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/pageStartup.txt
|
├── +++ HMI/US/portrait/n2t-out/pageStartup.txt
|
||||||
│ @@ -34,20 +34,14 @@
|
│ @@ -34,20 +34,14 @@
|
||||||
@@ -1622,6 +1643,82 @@
|
|||||||
│ crcputs sys0,2
|
│ crcputs sys0,2
|
||||||
│ crcputs tSend.txt,0
|
│ crcputs tSend.txt,0
|
||||||
│ //send cmd
|
│ //send cmd
|
||||||
|
│ @@ -282,15 +276,15 @@
|
||||||
|
│ // get feature flag popup
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
│ if(tTmp.txt!="")
|
||||||
|
│ {
|
||||||
|
│ covx tTmp.txt,featNewSliders,0,0
|
||||||
|
│ }
|
||||||
|
│ }
|
||||||
|
│ - if(tInstruction.txt=="timeout")
|
||||||
|
│ + if(tInstruction.txt=="timeout2")
|
||||||
|
│ {
|
||||||
|
│ //set timeout to global var
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
│ covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
│ }
|
||||||
|
│ if(tInstruction.txt=="pageType")
|
||||||
|
│ {
|
||||||
|
│ --- HMI/n2t-out/popupLight.txt
|
||||||
|
├── +++ HMI/US/portrait/n2t-out/popupLight.txt
|
||||||
|
│ @@ -48,33 +48,33 @@
|
||||||
|
│ vis hTempSlider,0
|
||||||
|
│ //disable color wheel components by default
|
||||||
|
│ vis bColor,0
|
||||||
|
│ vis t0,0
|
||||||
|
│ vis pColorWheel,0
|
||||||
|
│ //vis t0,0
|
||||||
|
│ popupLight.bco=defaultBcoColor
|
||||||
|
│ - for(sys0=0;sys0<27;sys0++)
|
||||||
|
│ + for(sys0=0;sys0<28;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
|
||||||
|
│ }
|
||||||
|
│ }
|
||||||
|
│ if(defaultBcoColor==0)
|
||||||
|
│ {
|
||||||
|
│ - hBrightness.pic=24
|
||||||
|
│ - hBrightness.pic1=25
|
||||||
|
│ + hBrightness.pic=14
|
||||||
|
│ + hBrightness.pic1=13
|
||||||
|
│ hBrightness.pic2=15
|
||||||
|
│ - hTempSlider.pic=16
|
||||||
|
│ + hTempSlider.pic=23
|
||||||
|
│ hTempSlider.pic1=17
|
||||||
|
│ hTempSlider.pic2=15
|
||||||
|
│ }
|
||||||
|
│
|
||||||
|
│ Variable (string) entn
|
||||||
|
│ Attributes
|
||||||
|
│ Scope : local
|
||||||
|
│ --- HMI/n2t-out/popupNotify.txt
|
||||||
|
├── +++ HMI/US/portrait/n2t-out/popupNotify.txt
|
||||||
|
│ @@ -348,15 +348,15 @@
|
||||||
|
│ // get font color
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
│ if(tTmp.txt!="")
|
||||||
|
│ {
|
||||||
|
│ covx tTmp.txt,defaultFontColor,0,0
|
||||||
|
│ }
|
||||||
|
│ }
|
||||||
|
│ - if(tInstruction.txt=="timeout2")
|
||||||
|
│ + if(tInstruction.txt=="timeout")
|
||||||
|
│ {
|
||||||
|
│ //set timeout to global var
|
||||||
|
│ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
│ covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
│ }
|
||||||
|
│ if(tInstruction.txt=="exitPopup")
|
||||||
|
│ {
|
||||||
│ --- HMI/n2t-out/screensaver.txt
|
│ --- HMI/n2t-out/screensaver.txt
|
||||||
├── +++ HMI/US/portrait/n2t-out/screensaver.txt
|
├── +++ HMI/US/portrait/n2t-out/screensaver.txt
|
||||||
│ @@ -28,17 +28,14 @@
|
│ @@ -28,17 +28,14 @@
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
+++ /dev/fd/62 2023-05-20 14:50:34.059646337 +0000
|
+++ /dev/fd/62 2023-09-16 10:55:16.569411880 +0000
|
||||||
+I/n2t-out/Program.s.txt
|
+I/n2t-out/Program.s.txt
|
||||||
++ HMI/US/portrait/n2t-out/Program.s.txt
|
++ HMI/US/portrait/n2t-out/Program.s.txt
|
||||||
+1 +10,11 @@
|
+1 +12,11 @@
|
||||||
|
+eature flags
|
||||||
|
+ featNewSliders=0
|
||||||
+nth 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
+nth 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
+I/n2t-out/cardEntities.txt
|
+I/n2t-out/cardEntities.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardEntities.txt
|
++ HMI/US/portrait/n2t-out/cardEntities.txt
|
||||||
@@ -29,42 +31,42 @@
|
|||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size: 80
|
+ Max. Text Size: 80
|
||||||
+ Max. Text Size: 65
|
+ Max. Text Size: 64
|
||||||
+
|
+
|
||||||
+e (string) entn2
|
+e (string) entn2
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size: 80
|
+ Max. Text Size: 80
|
||||||
+ Max. Text Size: 65
|
+ Max. Text Size: 64
|
||||||
+
|
+
|
||||||
+e (string) entn3
|
+e (string) entn3
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size: 80
|
+ Max. Text Size: 80
|
||||||
+ Max. Text Size: 65
|
+ Max. Text Size: 64
|
||||||
+ Max. Text Size: 65
|
+ Max. Text Size: 64
|
||||||
+ Max. Text Size: 65
|
+ Max. Text Size: 64
|
||||||
+
|
+
|
||||||
+e (string) entn6
|
+e (string) entn6
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size: 65
|
+ Max. Text Size: 64
|
||||||
+
|
+
|
||||||
+e (string) nent1
|
+e (string) nent1
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size: 80
|
+ Max. Text Size: 38
|
||||||
+ Max. Text Size: 40
|
|
||||||
+
|
+
|
||||||
+e (string) nent2
|
+e (string) nent2
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Text :
|
+ Text :
|
||||||
+ Max. Text Size: 40
|
+ Max. Text Size: 80
|
||||||
|
+ Max. Text Size: 38
|
||||||
+14 +185,26 @@
|
+14 +185,26 @@
|
||||||
+e (string) type6
|
+e (string) type6
|
||||||
+ributes
|
+ributes
|
||||||
@@ -174,9 +176,9 @@
|
|||||||
+
|
+
|
||||||
+nts
|
+nts
|
||||||
+ Touch Release Event
|
+ Touch Release Event
|
||||||
+ nNum5.val=hSlider5.val
|
+ nNum6.val=hSlider6.val
|
||||||
+ tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
|
+ tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
|
||||||
+ covx nNum5.val,tTmp.txt,0,0
|
+ covx nNum6.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
|
||||||
@@ -358,7 +360,7 @@
|
|||||||
+nts
|
+nts
|
||||||
+ Touch Press Event
|
+ Touch Press Event
|
||||||
+ tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
|
+ tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
|
||||||
+ covx btOnOff5.val,tTmp.txt,0,0
|
+ covx btOnOff6.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
|
||||||
@@ -376,13 +378,20 @@
|
|||||||
+ Dragging : 0
|
+ Dragging : 0
|
||||||
+ Send Component ID: disabled
|
+ Send Component ID: disabled
|
||||||
+nts
|
+nts
|
||||||
+,14 +1473,82 @@
|
+,14 +1493,92 @@
|
||||||
+ page popupInSel
|
+ page popupInSel
|
||||||
+ if(type4.txt=="timer")
|
+ if(type4.txt=="timer")
|
||||||
+ page popupTimer
|
+ page popupTimer
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Dragging : 0
|
+ Dragging : 0
|
||||||
+ Send Component ID: disabled
|
+ Send Component ID: disabled
|
||||||
|
+ if(featNewSliders==1)
|
||||||
|
+ {
|
||||||
|
+ page popupLightNew
|
||||||
|
+ }else
|
||||||
|
+ {
|
||||||
|
+ page popupLight
|
||||||
|
+ }
|
||||||
+ if(type5.txt=="timer")
|
+ if(type5.txt=="timer")
|
||||||
+ {
|
+ {
|
||||||
+ page popupTimer
|
+ page popupTimer
|
||||||
@@ -406,9 +415,14 @@
|
|||||||
+ }
|
+ }
|
||||||
+ if(type6.txt=="light")
|
+ if(type6.txt=="light")
|
||||||
+ {
|
+ {
|
||||||
+ //popupLight.tEntity.txt=tEntity5.txt
|
+ if(featNewSliders==1)
|
||||||
|
+ {
|
||||||
|
+ page popupLightNew
|
||||||
|
+ }else
|
||||||
|
+ {
|
||||||
+ page popupLight
|
+ page popupLight
|
||||||
+ }
|
+ }
|
||||||
|
+ }
|
||||||
+ if(type6.txt=="fan")
|
+ if(type6.txt=="fan")
|
||||||
+ {
|
+ {
|
||||||
+ page popupFan
|
+ page popupFan
|
||||||
@@ -425,7 +439,7 @@
|
|||||||
+ Dragging : 0
|
+ Dragging : 0
|
||||||
+ Send Component ID: disabled
|
+ Send Component ID: disabled
|
||||||
+nts
|
+nts
|
||||||
+,14 +2272,312 @@
|
+,14 +2302,312 @@
|
||||||
+ spstr strCommand.txt,type5.txt,"~",38
|
+ spstr strCommand.txt,type5.txt,"~",38
|
||||||
+ spstr strCommand.txt,entn5.txt,"~",39
|
+ spstr strCommand.txt,entn5.txt,"~",39
|
||||||
+ spstr strCommand.txt,tIcon5.txt,"~",40
|
+ spstr strCommand.txt,tIcon5.txt,"~",40
|
||||||
@@ -586,13 +600,6 @@
|
|||||||
+ covx tTmp.txt,sys0,0,0
|
+ covx tTmp.txt,sys0,0,0
|
||||||
+ hSlider6.maxval=sys0
|
+ hSlider6.maxval=sys0
|
||||||
+ }
|
+ }
|
||||||
+ }
|
|
||||||
+ if(tInstruction.txt=="pageType")
|
|
||||||
+ {
|
|
||||||
+ sleepValue=0
|
|
||||||
+ //command format pageType,specialPageName
|
|
||||||
+ //write name of speical page to tId
|
|
||||||
+ spstr strCommand.txt,tId.txt,"~",1
|
|
||||||
+I/n2t-out/cardGrid2.txt
|
+I/n2t-out/cardGrid2.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardGrid2.txt
|
++ HMI/US/portrait/n2t-out/cardGrid2.txt
|
||||||
+6 +25,28 @@
|
+6 +25,28 @@
|
||||||
@@ -691,7 +698,19 @@
|
|||||||
+ Send Component ID : disabled
|
+ Send Component ID : disabled
|
||||||
+ Associated Keyboard: none
|
+ Associated Keyboard: none
|
||||||
+ Text :
|
+ Text :
|
||||||
+14 +578,58 @@
|
+14 +654,58 @@
|
||||||
|
+ crcputs tSend.txt,0
|
||||||
|
+ //send cmd
|
||||||
|
+ printh 55 bb
|
||||||
|
+ prints sys0,2
|
||||||
|
+ prints tSend.txt,0
|
||||||
|
+ prints crcval,2
|
||||||
|
+
|
||||||
|
+bEntity9
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+ Dragging : 0
|
||||||
|
+ Send Component ID: disabled
|
||||||
+ State : unpressed
|
+ State : unpressed
|
||||||
+ Text : î´
|
+ Text : î´
|
||||||
+ Max. Text Size : 10
|
+ Max. Text Size : 10
|
||||||
@@ -699,26 +718,26 @@
|
|||||||
+nts
|
+nts
|
||||||
+ Touch Press Event
|
+ Touch Press Event
|
||||||
+ tmLP.en=1
|
+ tmLP.en=1
|
||||||
+ tTmp.txt=type2.txt
|
+ tTmp.txt=type9.txt
|
||||||
+ pageIcons.tTmp1.txt=tEntity2.txt
|
+ pageIcons.tTmp1.txt=tEntity9.txt
|
||||||
+ pageIcons.tTmp2.txt=entn2.txt
|
+ pageIcons.tTmp2.txt=entn9.txt
|
||||||
+ pageIcons.tTmp3.txt=bEntity2.txt
|
+ pageIcons.tTmp3.txt=bEntity9.txt
|
||||||
+ if(type2.txt=="shutter")
|
+ if(type9.txt=="shutter")
|
||||||
+ {
|
+ {
|
||||||
+ page popupShutter
|
+ page popupShutter
|
||||||
+ }
|
+ }
|
||||||
+ if(type2.txt=="input_sel")
|
+ if(type9.txt=="input_sel")
|
||||||
+ {
|
+ {
|
||||||
+ page popupInSel
|
+ page popupInSel
|
||||||
+ }
|
+ }
|
||||||
+ if(type2.txt=="timer")
|
+ if(type9.txt=="timer")
|
||||||
+ {
|
+ {
|
||||||
+ page popupTimer
|
+ page popupTimer
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ Touch Release Event
|
+ Touch Release Event
|
||||||
+ tmLP.en=0
|
+ tmLP.en=0
|
||||||
+ tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
+ tSend.txt="event,buttonPress2,"+entn9.txt+",button"
|
||||||
+ //send calc crc
|
+ //send calc crc
|
||||||
+ btlen tSend.txt,sys0
|
+ btlen tSend.txt,sys0
|
||||||
+ crcrest 1,0xffff // reset CRC
|
+ crcrest 1,0xffff // reset CRC
|
||||||
@@ -731,43 +750,14 @@
|
|||||||
+ prints tSend.txt,0
|
+ prints tSend.txt,0
|
||||||
+ prints crcval,2
|
+ prints crcval,2
|
||||||
+
|
+
|
||||||
+bEntity8
|
+bNext
|
||||||
+ributes
|
+ributes
|
||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Dragging : 0
|
+ Dragging : 0
|
||||||
+ Send Component ID: disabled
|
+ Send Component ID: disabled
|
||||||
+ State : unpressed
|
+ State : unpressed
|
||||||
+ Text : î´
|
+ Text : î³
|
||||||
+ Max. Text Size : 10
|
+,14 +1160,46 @@
|
||||||
+
|
|
||||||
+nts
|
|
||||||
+ Touch Press Event
|
|
||||||
+ tmLP.en=1
|
|
||||||
+ tTmp.txt=type6.txt
|
|
||||||
+ pageIcons.tTmp1.txt=tEntity6.txt
|
|
||||||
+ pageIcons.tTmp2.txt=entn6.txt
|
|
||||||
+ pageIcons.tTmp3.txt=bEntity6.txt
|
|
||||||
+ if(type6.txt=="shutter")
|
|
||||||
+ {
|
|
||||||
+ page popupShutter
|
|
||||||
+15 +654,15 @@
|
|
||||||
+ crcputs tSend.txt,0
|
|
||||||
+ //send cmd
|
|
||||||
+ printh 55 bb
|
|
||||||
+ prints sys0,2
|
|
||||||
+ prints tSend.txt,0
|
|
||||||
+ prints crcval,2
|
|
||||||
+
|
|
||||||
+bEntity8
|
|
||||||
+bEntity9
|
|
||||||
+ributes
|
|
||||||
+ Scope : local
|
|
||||||
+ Dragging : 0
|
|
||||||
+ Send Component ID: disabled
|
|
||||||
+ State : unpressed
|
|
||||||
+ Text : î´
|
|
||||||
+ Max. Text Size : 10
|
|
||||||
+14 +1066,35 @@
|
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",59
|
+ spstr strCommand.txt,tTmp.txt,"~",59
|
||||||
+ covx tTmp.txt,sys0,0,0
|
+ covx tTmp.txt,sys0,0,0
|
||||||
+ bEntity8.pco=sys0
|
+ bEntity8.pco=sys0
|
||||||
@@ -787,6 +777,17 @@
|
|||||||
+ {
|
+ {
|
||||||
+ // change icon
|
+ // change icon
|
||||||
+ spstr strCommand.txt,bEntity9.txt,"~",64
|
+ spstr strCommand.txt,bEntity9.txt,"~",64
|
||||||
|
+ // way to get force font adjustment
|
||||||
|
+ strlen bEntity9.txt,sys0
|
||||||
|
+ //check 2nd last char for ¬
|
||||||
|
+ substr bEntity9.txt,tTmp.txt,sys0-2,1
|
||||||
|
+ if(tTmp.txt=="¬")
|
||||||
|
+ {
|
||||||
|
+ substr bEntity9.txt,tTmp.txt,sys0-1,1
|
||||||
|
+ covx tTmp.txt,sys1,0,0
|
||||||
|
+ bEntity9.font=sys1
|
||||||
|
+ substr bEntity9.txt,bEntity9.txt,0,sys0-2
|
||||||
|
+ }
|
||||||
+ vis bEntity9,1
|
+ vis bEntity9,1
|
||||||
+ // change icon color
|
+ // change icon color
|
||||||
+ spstr strCommand.txt,tTmp.txt,"~",65
|
+ spstr strCommand.txt,tTmp.txt,"~",65
|
||||||
@@ -796,6 +797,13 @@
|
|||||||
+ spstr strCommand.txt,tEntity9.txt,"~",66
|
+ spstr strCommand.txt,tEntity9.txt,"~",66
|
||||||
+ vis tEntity9,1
|
+ vis tEntity9,1
|
||||||
+ }
|
+ }
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="pageType")
|
||||||
|
+ {
|
||||||
|
+ sleepValue=0
|
||||||
|
+ //command format pageType,specialPageName
|
||||||
|
+ //write name of speical page to tId
|
||||||
|
+ spstr strCommand.txt,tId.txt,"~",1
|
||||||
+I/n2t-out/cardPower.txt
|
+I/n2t-out/cardPower.txt
|
||||||
++ HMI/US/portrait/n2t-out/cardPower.txt
|
++ HMI/US/portrait/n2t-out/cardPower.txt
|
||||||
+6 +45,16 @@
|
+6 +45,16 @@
|
||||||
@@ -1123,6 +1131,23 @@
|
|||||||
+ Scope : local
|
+ Scope : local
|
||||||
+ Period (ms): 50
|
+ Period (ms): 50
|
||||||
+ Enabled : yes
|
+ Enabled : yes
|
||||||
|
+15 +938,15 @@
|
||||||
|
+ }
|
||||||
|
+ if(tId.txt=="cardChart")
|
||||||
|
+ {
|
||||||
|
+ page cardChart
|
||||||
|
+ }
|
||||||
|
+ if(tId.txt=="cardLChart")
|
||||||
|
+ {
|
||||||
|
+ page cardLChart
|
||||||
|
+ page cardChart
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="time")
|
||||||
|
+ {
|
||||||
|
+ // get set time to global variable
|
||||||
|
+ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||||
|
+ }
|
||||||
+I/n2t-out/pageStartup.txt
|
+I/n2t-out/pageStartup.txt
|
||||||
++ HMI/US/portrait/n2t-out/pageStartup.txt
|
++ HMI/US/portrait/n2t-out/pageStartup.txt
|
||||||
+0 +34,14 @@
|
+0 +34,14 @@
|
||||||
@@ -1160,6 +1185,82 @@
|
|||||||
+ Send Component ID : disabled
|
+ Send Component ID : disabled
|
||||||
+15 +158,15 @@
|
+15 +158,15 @@
|
||||||
+ Max. Text Size : 10
|
+ Max. Text Size : 10
|
||||||
|
+15 +276,15 @@
|
||||||
|
+ // get feature flag popup
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
+ if(tTmp.txt!="")
|
||||||
|
+ {
|
||||||
|
+ covx tTmp.txt,featNewSliders,0,0
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="timeout")
|
||||||
|
+ if(tInstruction.txt=="timeout2")
|
||||||
|
+ {
|
||||||
|
+ //set timeout to global var
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
+ covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="pageType")
|
||||||
|
+ {
|
||||||
|
+I/n2t-out/popupLight.txt
|
||||||
|
++ HMI/US/portrait/n2t-out/popupLight.txt
|
||||||
|
+3 +48,33 @@
|
||||||
|
+ vis hTempSlider,0
|
||||||
|
+ //disable color wheel components by default
|
||||||
|
+ vis bColor,0
|
||||||
|
+ vis t0,0
|
||||||
|
+ vis pColorWheel,0
|
||||||
|
+ //vis t0,0
|
||||||
|
+ popupLight.bco=defaultBcoColor
|
||||||
|
+ for(sys0=0;sys0<27;sys0++)
|
||||||
|
+ for(sys0=0;sys0<28;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
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ if(defaultBcoColor==0)
|
||||||
|
+ {
|
||||||
|
+ hBrightness.pic=24
|
||||||
|
+ hBrightness.pic1=25
|
||||||
|
+ hBrightness.pic=14
|
||||||
|
+ hBrightness.pic1=13
|
||||||
|
+ hBrightness.pic2=15
|
||||||
|
+ hTempSlider.pic=16
|
||||||
|
+ hTempSlider.pic=23
|
||||||
|
+ hTempSlider.pic1=17
|
||||||
|
+ hTempSlider.pic2=15
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+e (string) entn
|
||||||
|
+ributes
|
||||||
|
+ Scope : local
|
||||||
|
+I/n2t-out/popupNotify.txt
|
||||||
|
++ HMI/US/portrait/n2t-out/popupNotify.txt
|
||||||
|
+15 +348,15 @@
|
||||||
|
+ // get font color
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
+ if(tTmp.txt!="")
|
||||||
|
+ {
|
||||||
|
+ covx tTmp.txt,defaultFontColor,0,0
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="timeout2")
|
||||||
|
+ if(tInstruction.txt=="timeout")
|
||||||
|
+ {
|
||||||
|
+ //set timeout to global var
|
||||||
|
+ spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
+ covx tTmp.txt,sleepTimeout,0,0
|
||||||
|
+ }
|
||||||
|
+ if(tInstruction.txt=="exitPopup")
|
||||||
|
+ {
|
||||||
+I/n2t-out/screensaver.txt
|
+I/n2t-out/screensaver.txt
|
||||||
++ HMI/US/portrait/n2t-out/screensaver.txt
|
++ HMI/US/portrait/n2t-out/screensaver.txt
|
||||||
+7 +28,14 @@
|
+7 +28,14 @@
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ Program.s
|
|||||||
//color vars
|
//color vars
|
||||||
int defaultFontColor=65535
|
int defaultFontColor=65535
|
||||||
int defaultBcoColor=6371
|
int defaultBcoColor=6371
|
||||||
|
//feature flags
|
||||||
|
int featNewSliders=0
|
||||||
// fix touch offset (Removed for US version)
|
// fix touch offset (Removed for US version)
|
||||||
//lcd_dev fffb 0002 0000 0020
|
//lcd_dev fffb 0002 0000 0020
|
||||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
|
|||||||
@@ -118,56 +118,56 @@ Variable (string) entn1
|
|||||||
ID : 48
|
ID : 48
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn2
|
Variable (string) entn2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 49
|
ID : 49
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn3
|
Variable (string) entn3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 50
|
ID : 50
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn4
|
Variable (string) entn4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 51
|
ID : 51
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn5
|
Variable (string) entn5
|
||||||
Attributes
|
Attributes
|
||||||
ID : 61
|
ID : 61
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn6
|
Variable (string) entn6
|
||||||
Attributes
|
Attributes
|
||||||
ID : 88
|
ID : 88
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) nent1
|
Variable (string) nent1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 90
|
ID : 90
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 40
|
Max. Text Size: 38
|
||||||
|
|
||||||
Variable (string) nent2
|
Variable (string) nent2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 89
|
ID : 89
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 40
|
Max. Text Size: 38
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
@@ -1115,9 +1115,9 @@ Slider hSlider6
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
nNum5.val=hSlider5.val
|
nNum6.val=hSlider6.val
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
|
tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
|
||||||
covx nNum5.val,tTmp.txt,0,0
|
covx nNum6.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
|
||||||
@@ -2577,7 +2577,7 @@ Dual-state Button btOnOff6
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
|
tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
|
||||||
covx btOnOff5.val,tTmp.txt,0,0
|
covx btOnOff6.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
|
||||||
@@ -2618,9 +2618,14 @@ Hotspot m0
|
|||||||
}
|
}
|
||||||
if(type1.txt=="light")
|
if(type1.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity1.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type1.txt=="fan")
|
if(type1.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -2661,9 +2666,14 @@ Hotspot m1
|
|||||||
}
|
}
|
||||||
if(type2.txt=="light")
|
if(type2.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity2.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type2.txt=="fan")
|
if(type2.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -2704,9 +2714,14 @@ Hotspot m2
|
|||||||
}
|
}
|
||||||
if(type3.txt=="light")
|
if(type3.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity3.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type3.txt=="fan")
|
if(type3.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -2747,9 +2762,14 @@ Hotspot m3
|
|||||||
}
|
}
|
||||||
if(type4.txt=="light")
|
if(type4.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity4.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type4.txt=="fan")
|
if(type4.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -2790,9 +2810,14 @@ Hotspot m4
|
|||||||
}
|
}
|
||||||
if(type5.txt=="light")
|
if(type5.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity5.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type5.txt=="fan")
|
if(type5.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -2833,9 +2858,14 @@ Hotspot m5
|
|||||||
}
|
}
|
||||||
if(type6.txt=="light")
|
if(type6.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity5.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type6.txt=="fan")
|
if(type6.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
|
|||||||
@@ -1051,9 +1051,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1161,6 +1167,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -1182,6 +1199,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -1203,6 +1231,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -1224,6 +1263,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -1245,6 +1295,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -1266,6 +1327,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -1352,10 +1424,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1036,26 +1036,26 @@ Button bEntity7
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type2.txt
|
tTmp.txt=type7.txt
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity7.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn7.txt
|
||||||
pageIcons.tTmp3.txt=bEntity2.txt
|
pageIcons.tTmp3.txt=bEntity7.txt
|
||||||
if(type2.txt=="shutter")
|
if(type7.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type2.txt=="input_sel")
|
if(type7.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type2.txt=="timer")
|
if(type7.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -1102,26 +1102,26 @@ Button bEntity8
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type8.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity8.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn8.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity8.txt
|
||||||
if(type6.txt=="shutter")
|
if(type8.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type8.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type8.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -1168,26 +1168,26 @@ Button bEntity9
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type9.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity9.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn9.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity9.txt
|
||||||
if(type6.txt=="shutter")
|
if(type9.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type9.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type9.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn9.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -1384,9 +1384,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1494,6 +1500,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -1515,6 +1532,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -1536,6 +1564,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -1557,6 +1596,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -1578,6 +1628,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -1599,6 +1660,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -1620,6 +1692,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity7.txt,"~",52
|
spstr strCommand.txt,bEntity7.txt,"~",52
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity7.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity7.font=sys1
|
||||||
|
substr bEntity7.txt,bEntity7.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity7,1
|
vis bEntity7,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",53
|
spstr strCommand.txt,tTmp.txt,"~",53
|
||||||
@@ -1641,6 +1724,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity8.txt,"~",58
|
spstr strCommand.txt,bEntity8.txt,"~",58
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity8.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity8.font=sys1
|
||||||
|
substr bEntity8.txt,bEntity8.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity8,1
|
vis bEntity8,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",59
|
spstr strCommand.txt,tTmp.txt,"~",59
|
||||||
@@ -1662,6 +1756,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity9.txt,"~",64
|
spstr strCommand.txt,bEntity9.txt,"~",64
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity9.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity9.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity9.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity9.font=sys1
|
||||||
|
substr bEntity9.txt,bEntity9.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity9,1
|
vis bEntity9,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",65
|
spstr strCommand.txt,tTmp.txt,"~",65
|
||||||
|
|||||||
@@ -1485,6 +1485,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",26
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1506,6 +1517,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",32
|
spstr strCommand.txt,tTmp.txt,"~",32
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1527,6 +1549,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",38
|
spstr strCommand.txt,tTmp.txt,"~",38
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1548,6 +1581,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",44
|
spstr strCommand.txt,tTmp.txt,"~",44
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1569,6 +1613,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",50
|
spstr strCommand.txt,tTmp.txt,"~",50
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1590,6 +1645,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",56
|
spstr strCommand.txt,tTmp.txt,"~",56
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1675,10 +1741,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1514,6 +1514,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Program.s
|
Program.s
|
||||||
0 Component(s)
|
0 Component(s)
|
||||||
13 Line(s) of event code
|
14 Line(s) of event code
|
||||||
13 Unique line(s) of event code
|
14 Unique line(s) of event code
|
||||||
pageIcons
|
pageIcons
|
||||||
7 Component(s)
|
7 Component(s)
|
||||||
0 Line(s) of event code
|
0 Line(s) of event code
|
||||||
@@ -14,38 +14,38 @@ popupNotify
|
|||||||
19 Component(s)
|
19 Component(s)
|
||||||
267 Line(s) of event code
|
267 Line(s) of event code
|
||||||
172 Unique line(s) of event code
|
172 Unique line(s) of event code
|
||||||
|
pageStartup
|
||||||
|
19 Component(s)
|
||||||
|
198 Line(s) of event code
|
||||||
|
137 Unique line(s) of event code
|
||||||
popupTimer
|
popupTimer
|
||||||
42 Component(s)
|
42 Component(s)
|
||||||
516 Line(s) of event code
|
516 Line(s) of event code
|
||||||
257 Unique line(s) of event code
|
257 Unique line(s) of event code
|
||||||
cardGrid2
|
popupLight
|
||||||
56 Component(s)
|
28 Component(s)
|
||||||
657 Line(s) of event code
|
412 Line(s) of event code
|
||||||
332 Unique line(s) of event code
|
227 Unique line(s) of event code
|
||||||
popupFan
|
popupFan
|
||||||
27 Component(s)
|
27 Component(s)
|
||||||
355 Line(s) of event code
|
355 Line(s) of event code
|
||||||
206 Unique line(s) of event code
|
206 Unique line(s) of event code
|
||||||
pageStartup
|
popupLightNew
|
||||||
19 Component(s)
|
23 Component(s)
|
||||||
193 Line(s) of event code
|
412 Line(s) of event code
|
||||||
135 Unique line(s) of event code
|
209 Unique line(s) of event code
|
||||||
cardChart
|
cardChart
|
||||||
33 Component(s)
|
33 Component(s)
|
||||||
437 Line(s) of event code
|
437 Line(s) of event code
|
||||||
296 Unique line(s) of event code
|
296 Unique line(s) of event code
|
||||||
cardMedia
|
cardGrid
|
||||||
59 Component(s)
|
44 Component(s)
|
||||||
649 Line(s) of event code
|
579 Line(s) of event code
|
||||||
322 Unique line(s) of event code
|
330 Unique line(s) of event code
|
||||||
cardLChart
|
cardLChart
|
||||||
33 Component(s)
|
33 Component(s)
|
||||||
402 Line(s) of event code
|
402 Line(s) of event code
|
||||||
266 Unique line(s) of event code
|
266 Unique line(s) of event code
|
||||||
popupLight
|
|
||||||
23 Component(s)
|
|
||||||
410 Line(s) of event code
|
|
||||||
209 Unique line(s) of event code
|
|
||||||
popupShutter
|
popupShutter
|
||||||
25 Component(s)
|
25 Component(s)
|
||||||
402 Line(s) of event code
|
402 Line(s) of event code
|
||||||
@@ -62,22 +62,14 @@ popupInSel
|
|||||||
34 Component(s)
|
34 Component(s)
|
||||||
621 Line(s) of event code
|
621 Line(s) of event code
|
||||||
297 Unique line(s) of event code
|
297 Unique line(s) of event code
|
||||||
cardGrid
|
|
||||||
44 Component(s)
|
|
||||||
523 Line(s) of event code
|
|
||||||
295 Unique line(s) of event code
|
|
||||||
cardAlarm
|
cardAlarm
|
||||||
43 Component(s)
|
43 Component(s)
|
||||||
500 Line(s) of event code
|
500 Line(s) of event code
|
||||||
273 Unique line(s) of event code
|
273 Unique line(s) of event code
|
||||||
cardPower
|
cardMedia
|
||||||
54 Component(s)
|
59 Component(s)
|
||||||
521 Line(s) of event code
|
699 Line(s) of event code
|
||||||
341 Unique line(s) of event code
|
354 Unique line(s) of event code
|
||||||
screensaver2
|
|
||||||
58 Component(s)
|
|
||||||
348 Line(s) of event code
|
|
||||||
245 Unique line(s) of event code
|
|
||||||
cardThermo
|
cardThermo
|
||||||
57 Component(s)
|
57 Component(s)
|
||||||
540 Line(s) of event code
|
540 Line(s) of event code
|
||||||
@@ -86,13 +78,25 @@ screensaver
|
|||||||
46 Component(s)
|
46 Component(s)
|
||||||
429 Line(s) of event code
|
429 Line(s) of event code
|
||||||
306 Unique line(s) of event code
|
306 Unique line(s) of event code
|
||||||
|
cardPower
|
||||||
|
54 Component(s)
|
||||||
|
525 Line(s) of event code
|
||||||
|
342 Unique line(s) of event code
|
||||||
|
screensaver2
|
||||||
|
58 Component(s)
|
||||||
|
352 Line(s) of event code
|
||||||
|
247 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
91 Component(s)
|
91 Component(s)
|
||||||
1630 Line(s) of event code
|
1666 Line(s) of event code
|
||||||
705 Unique line(s) of event code
|
711 Unique line(s) of event code
|
||||||
|
cardGrid2
|
||||||
|
56 Component(s)
|
||||||
|
744 Line(s) of event code
|
||||||
|
408 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
22 Page(s)
|
23 Page(s)
|
||||||
862 Component(s)
|
890 Component(s)
|
||||||
10360 Line(s) of event code
|
11017 Line(s) of event code
|
||||||
2492 Unique line(s) of event code
|
2600 Unique line(s) of event code
|
||||||
|
|||||||
@@ -389,7 +389,7 @@ Text tVersion
|
|||||||
Horizontal Alignment: center
|
Horizontal Alignment: center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : 51
|
Text : 53
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
@@ -568,8 +568,14 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
|
// get feature flag popup
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,featNewSliders,0,0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
}
|
||||||
|
if(tInstruction.txt=="timeout2")
|
||||||
{
|
{
|
||||||
//set timeout to global var
|
//set timeout to global var
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
|||||||
@@ -24,12 +24,13 @@ 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 tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
vis tId,0
|
vis tId,0
|
||||||
vis bEffect,0
|
vis bEffect,0
|
||||||
vis hBrightness,0
|
|
||||||
//page open event
|
//page open event
|
||||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
// craft command
|
// craft command
|
||||||
@@ -46,20 +47,20 @@ Page popupLight
|
|||||||
prints tSend.txt,0
|
prints tSend.txt,0
|
||||||
prints crcval,2
|
prints crcval,2
|
||||||
//disable brightness by default
|
//disable brightness by default
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,1
|
vis hBrightness,0
|
||||||
//disable color temp by default
|
//disable color temp by default
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//disable color wheel components by default
|
//disable color wheel components by default
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
//vis t0,0
|
//vis t0,0
|
||||||
popupLight.bco=defaultBcoColor
|
popupLight.bco=defaultBcoColor
|
||||||
for(sys0=0;sys0<27;sys0++)
|
for(sys0=0;sys0<28;sys0++)
|
||||||
{
|
{
|
||||||
if(b[sys0].type==98||b[sys0].type==116)
|
if(b[sys0].type==98||b[sys0].type==116)
|
||||||
{
|
{
|
||||||
@@ -74,83 +75,115 @@ Page popupLight
|
|||||||
}
|
}
|
||||||
if(defaultBcoColor==0)
|
if(defaultBcoColor==0)
|
||||||
{
|
{
|
||||||
hTempSlider.pic=16
|
hBrightness.pic=14
|
||||||
hTempSlider.pic1=16
|
hBrightness.pic1=13
|
||||||
|
hBrightness.pic2=15
|
||||||
|
hTempSlider.pic=23
|
||||||
|
hTempSlider.pic1=17
|
||||||
|
hTempSlider.pic2=15
|
||||||
}
|
}
|
||||||
|
|
||||||
Postinitialize Event
|
|
||||||
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
|
||||||
|
|
||||||
Variable (int32) col
|
|
||||||
Attributes
|
|
||||||
ID : 18
|
|
||||||
Scope: local
|
|
||||||
Value: 65504
|
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Variable (int32) mode
|
Variable (int32) mode
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 22
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 1
|
Value: 1
|
||||||
|
|
||||||
Variable (int32) mode_temp
|
Variable (int32) mode_temp
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 23
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 500
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) tId
|
|
||||||
Attributes
|
|
||||||
ID : 20
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tInstruction
|
|
||||||
Attributes
|
|
||||||
ID : 19
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 200
|
||||||
|
|
||||||
Variable (string) tTmp
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 24
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 80
|
|
||||||
|
|
||||||
Text tEntity
|
|
||||||
Attributes
|
|
||||||
ID : 2
|
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 19
|
x coordinate : 12
|
||||||
y coordinate : 21
|
y coordinate : 57
|
||||||
Width : 224
|
Width : 141
|
||||||
|
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 : Color
|
||||||
|
Max. Text Size : 50
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t1
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 60
|
||||||
|
y coordinate : 374
|
||||||
|
Width : 251
|
||||||
|
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 : Brightness
|
||||||
|
Max. Text Size : 50
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t2
|
||||||
|
Attributes
|
||||||
|
ID : 9
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 10
|
||||||
|
y coordinate : 374
|
||||||
|
Width : 45
|
||||||
Height : 30
|
Height : 30
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
@@ -160,31 +193,250 @@ Text tEntity
|
|||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Font ID : 1
|
Font ID : 1
|
||||||
Back. Color : 6371
|
Back. Color : 6371
|
||||||
Font Color : 65535
|
Font Color : 40147
|
||||||
Horizontal Alignment: center
|
Horizontal Alignment: center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t3
|
||||||
|
Attributes
|
||||||
|
ID : 10
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 10
|
||||||
|
y coordinate : 267
|
||||||
|
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 : 40147
|
||||||
|
Horizontal Alignment: center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t4
|
||||||
|
Attributes
|
||||||
|
ID : 11
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 60
|
||||||
|
y coordinate : 266
|
||||||
|
Width : 250
|
||||||
|
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 : Temperature
|
||||||
|
Max. Text Size : 50
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
ID : 3
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 60
|
||||||
|
y coordinate : 21
|
||||||
|
Width : 200
|
||||||
|
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 : tEntity1
|
Text : tEntity1
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Picture pColorWheel
|
Text tIcon1
|
||||||
|
Attributes
|
||||||
|
ID : 4
|
||||||
|
Scope : local
|
||||||
|
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 tId
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 100
|
||||||
|
y coordinate : 450
|
||||||
|
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 tInstruction
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 0
|
||||||
|
y coordinate : 450
|
||||||
|
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 tTmp
|
||||||
|
Attributes
|
||||||
|
ID : 12
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 282
|
||||||
|
y coordinate : 446
|
||||||
|
Width : 34
|
||||||
|
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
|
||||||
|
|
||||||
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 150
|
x coordinate : 0
|
||||||
y coordinate : 168
|
y coordinate : 1
|
||||||
Width : 160
|
Width : 319
|
||||||
Height : 160
|
Height : 479
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
Picture ID : 3
|
Picture ID : 0
|
||||||
|
|
||||||
|
Picture pColorWheel
|
||||||
|
Attributes
|
||||||
|
ID : 2
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 67
|
||||||
|
y coordinate : 89
|
||||||
|
Width : 245
|
||||||
|
Height : 245
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Picture ID : 20
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -216,44 +468,30 @@ Picture pColorWheel
|
|||||||
|
|
||||||
Slider hBrightness
|
Slider hBrightness
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 25
|
x coordinate : 12
|
||||||
y coordinate : 127
|
y coordinate : 409
|
||||||
Width : 100
|
Width : 300
|
||||||
Height : 250
|
Height : 44
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
Direction : vertical
|
Direction : horizontal
|
||||||
Fill : image
|
Fill : image
|
||||||
Cursor width : auto
|
Cursor width : auto
|
||||||
Cursor height : 1
|
Cursor height : 255
|
||||||
Back. Picture ID : 65535
|
Back. Picture ID : 5
|
||||||
Slided Back. Picture ID: 65535
|
Slided Back. Picture ID: 4
|
||||||
Position : 50
|
Position : 50
|
||||||
Upper range limit : 100
|
Upper range limit : 100
|
||||||
Lower range limit : 0
|
Lower range limit : 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmCooldown.en=1
|
tmCooldown.en=1
|
||||||
tmCooldown.tim=2500
|
tmCooldown.tim=2500
|
||||||
//craft command
|
//craft command
|
||||||
@@ -274,24 +512,24 @@ Slider hBrightness
|
|||||||
|
|
||||||
Slider hTempSlider
|
Slider hTempSlider
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 187
|
x coordinate : 12
|
||||||
y coordinate : 127
|
y coordinate : 304
|
||||||
Width : 100
|
Width : 300
|
||||||
Height : 250
|
Height : 44
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
Direction : vertical
|
Direction : horizontal
|
||||||
Fill : image
|
Fill : image
|
||||||
Cursor width : auto
|
Cursor width : auto
|
||||||
Cursor height : 255
|
Cursor height : 255
|
||||||
Back. Picture ID : 7
|
Back. Picture ID : 21
|
||||||
Slided Back. Picture ID: 7
|
Slided Back. Picture ID: 22
|
||||||
Position : 50
|
Position : 50
|
||||||
Upper range limit : 100
|
Upper range limit : 100
|
||||||
Lower range limit : 0
|
Lower range limit : 0
|
||||||
@@ -318,13 +556,13 @@ Slider hTempSlider
|
|||||||
|
|
||||||
Button b0
|
Button b0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 256
|
x coordinate : 266
|
||||||
y coordinate : 12
|
y coordinate : 14
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -364,13 +602,13 @@ Button b0
|
|||||||
|
|
||||||
Button bColor
|
Button bColor
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 134
|
x coordinate : 12
|
||||||
y coordinate : 407
|
y coordinate : 89
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -401,8 +639,8 @@ Button bColor
|
|||||||
//enable color wheel
|
//enable color wheel
|
||||||
vis pColorWheel,1
|
vis pColorWheel,1
|
||||||
//disable color temp
|
//disable color temp
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
@@ -412,21 +650,21 @@ Button bColor
|
|||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
//enable color temp
|
//enable color temp
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button bEffect
|
Button bEffect
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 60
|
x coordinate : 12
|
||||||
y coordinate : 407
|
y coordinate : 195
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -453,17 +691,18 @@ Button bEffect
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity.txt
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
pageIcons.tTmp2.txt=entn.txt
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
page popupInSel
|
page popupInSel
|
||||||
|
|
||||||
Dual-state Button btOnOff1
|
Dual-state Button btOnOff1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 208
|
x coordinate : 12
|
||||||
y coordinate : 407
|
y coordinate : 142
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -502,43 +741,18 @@ Dual-state Button btOnOff1
|
|||||||
|
|
||||||
Timer tmCooldown
|
Timer tmCooldown
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 300
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
tmCooldown.en=0
|
tmCooldown.en=0
|
||||||
|
|
||||||
Timer tmDrawCooldown
|
|
||||||
Attributes
|
|
||||||
ID : 22
|
|
||||||
Scope : local
|
|
||||||
Period (ms): 500
|
|
||||||
Enabled : no
|
|
||||||
|
|
||||||
Events
|
|
||||||
Timer Event
|
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmDrawCooldown.en=0
|
|
||||||
|
|
||||||
Timer tmSerial
|
Timer tmSerial
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
@@ -593,12 +807,11 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// 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
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
col.val=sys0
|
tIcon1.pco=sys0
|
||||||
//tEntity.pco=sys0
|
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -607,26 +820,27 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,0
|
vis hBrightness,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t1,1
|
vis t1,1
|
||||||
//vis t2,1
|
vis t2,1
|
||||||
vis hBrightness,1
|
vis hBrightness,1
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
hBrightness.val=sys0
|
hBrightness.val=sys0
|
||||||
tmDrawCooldown.en=1
|
}
|
||||||
tmDrawCooldown.tim=500
|
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
mode_temp.val=0
|
mode_temp.val=0
|
||||||
// mode == 1 is temp controls currently shown
|
// mode == 1 is temp controls currently shown
|
||||||
if(mode.val==1)
|
if(mode.val==1)
|
||||||
@@ -649,8 +863,8 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
mode_temp.val=1
|
mode_temp.val=1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
if(tmCooldown.en==0)
|
if(tmCooldown.en==0)
|
||||||
{
|
{
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -669,12 +883,12 @@ Timer tmSerial
|
|||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t0,1
|
vis t0,1
|
||||||
//only enable bColor button if color temp is also supported
|
//only enable bColor button if color temp is also supported
|
||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
@@ -686,11 +900,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
//spstr strCommand.txt,t0.txt,"~",8
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
//spstr strCommand.txt,t4.txt,"~",9
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
//spstr strCommand.txt,t1.txt,"~",10
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
// activate effect button
|
// activate effect button
|
||||||
spstr strCommand.txt,tTmp.txt,"~",11
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
if(tTmp.txt=="enable")
|
if(tTmp.txt=="enable")
|
||||||
@@ -825,7 +1039,7 @@ Timer tmSerial
|
|||||||
|
|
||||||
Timer tmSleep
|
Timer tmSleep
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 1000
|
Period (ms): 1000
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
@@ -845,7 +1059,7 @@ Timer tmSleep
|
|||||||
|
|
||||||
TouchCap tc0
|
TouchCap tc0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 13
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
|
|||||||
855
HMI/US/portrait/n2t-out-visual/popupLightNew.txt
Normal file
855
HMI/US/portrait/n2t-out-visual/popupLightNew.txt
Normal file
@@ -0,0 +1,855 @@
|
|||||||
|
Page popupLightNew
|
||||||
|
Attributes
|
||||||
|
ID : 0
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
Width : 320
|
||||||
|
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
|
||||||
|
vis tSend,0
|
||||||
|
vis tTmp,0
|
||||||
|
vis tInstruction,0
|
||||||
|
vis tId,0
|
||||||
|
vis bEffect,0
|
||||||
|
vis hBrightness,0
|
||||||
|
//page open event
|
||||||
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
|
// craft command
|
||||||
|
tSend.txt="event,pageOpenDetail,popupLight,"+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
|
||||||
|
//disable brightness by default
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,1
|
||||||
|
//disable color temp by default
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
//disable color wheel components by default
|
||||||
|
vis bColor,0
|
||||||
|
//vis t0,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
//vis t0,0
|
||||||
|
popupLightNew.bco=defaultBcoColor
|
||||||
|
for(sys0=0;sys0<27;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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(defaultBcoColor==0)
|
||||||
|
{
|
||||||
|
hTempSlider.pic=16
|
||||||
|
hTempSlider.pic1=16
|
||||||
|
}
|
||||||
|
|
||||||
|
Postinitialize Event
|
||||||
|
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
||||||
|
|
||||||
|
Variable (int32) col
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope: local
|
||||||
|
Value: 65504
|
||||||
|
|
||||||
|
Variable (string) entn
|
||||||
|
Attributes
|
||||||
|
ID : 11
|
||||||
|
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 (string) strCommand
|
||||||
|
Attributes
|
||||||
|
ID : 9
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 500
|
||||||
|
|
||||||
|
Variable (string) tId
|
||||||
|
Attributes
|
||||||
|
ID : 20
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tInstruction
|
||||||
|
Attributes
|
||||||
|
ID : 19
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tSend
|
||||||
|
Attributes
|
||||||
|
ID : 16
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 200
|
||||||
|
|
||||||
|
Variable (string) tTmp
|
||||||
|
Attributes
|
||||||
|
ID : 21
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
ID : 2
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 19
|
||||||
|
y coordinate : 21
|
||||||
|
Width : 224
|
||||||
|
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 : 65535
|
||||||
|
Horizontal Alignment: center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text : tEntity1
|
||||||
|
Max. Text Size : 25
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Picture pColorWheel
|
||||||
|
Attributes
|
||||||
|
ID : 1
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 150
|
||||||
|
y coordinate : 168
|
||||||
|
Width : 160
|
||||||
|
Height : 160
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Picture ID : 3
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
||||||
|
sys0=tch0
|
||||||
|
sys0=sys0-pColorWheel.x
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
sys0=tch1
|
||||||
|
sys0=sys0-pColorWheel.y
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
covx pColorWheel.h,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hBrightness
|
||||||
|
Attributes
|
||||||
|
ID : 4
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 25
|
||||||
|
y coordinate : 127
|
||||||
|
Width : 100
|
||||||
|
Height : 250
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Direction : vertical
|
||||||
|
Fill : image
|
||||||
|
Cursor width : auto
|
||||||
|
Cursor height : 1
|
||||||
|
Back. Picture ID : 65535
|
||||||
|
Slided Back. Picture ID: 65535
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
|
||||||
|
covx hBrightness.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hTempSlider
|
||||||
|
Attributes
|
||||||
|
ID : 10
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 187
|
||||||
|
y coordinate : 127
|
||||||
|
Width : 100
|
||||||
|
Height : 250
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Direction : vertical
|
||||||
|
Fill : image
|
||||||
|
Cursor width : auto
|
||||||
|
Cursor height : 255
|
||||||
|
Back. Picture ID : 7
|
||||||
|
Slided Back. Picture ID: 7
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
||||||
|
covx hTempSlider.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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 b0
|
||||||
|
Attributes
|
||||||
|
ID : 3
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 256
|
||||||
|
y coordinate : 12
|
||||||
|
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 bColor
|
||||||
|
Attributes
|
||||||
|
ID : 12
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 134
|
||||||
|
y coordinate : 407
|
||||||
|
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
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
mode.val=0
|
||||||
|
//enable color wheel
|
||||||
|
vis pColorWheel,1
|
||||||
|
//disable color temp
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode.val=1
|
||||||
|
//disable color wheel
|
||||||
|
vis pColorWheel,0
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
//enable color temp
|
||||||
|
//vis t4,1
|
||||||
|
//vis t3,1
|
||||||
|
vis hTempSlider,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button bEffect
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 60
|
||||||
|
y coordinate : 407
|
||||||
|
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
|
||||||
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
page popupInSel
|
||||||
|
|
||||||
|
Dual-state Button btOnOff1
|
||||||
|
Attributes
|
||||||
|
ID : 5
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 208
|
||||||
|
y coordinate : 407
|
||||||
|
Width : 50
|
||||||
|
Height : 50
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : image
|
||||||
|
Font ID : 0
|
||||||
|
Background Picture ID (Unpressed): 1
|
||||||
|
Back. Picture ID (Pressed) : 2
|
||||||
|
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
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
||||||
|
covx btOnOff1.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Timer tmCooldown
|
||||||
|
Attributes
|
||||||
|
ID : 15
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 300
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
tmCooldown.en=0
|
||||||
|
|
||||||
|
Timer tmDrawCooldown
|
||||||
|
Attributes
|
||||||
|
ID : 22
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 500
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmDrawCooldown.en=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
|
||||||
|
col.val=sys0
|
||||||
|
//tEntity.pco=sys0
|
||||||
|
// get Button State
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
btOnOff1.val=sys0
|
||||||
|
// get Brightness value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t1,1
|
||||||
|
//vis t2,1
|
||||||
|
vis hBrightness,1
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hBrightness.val=sys0
|
||||||
|
tmDrawCooldown.en=1
|
||||||
|
tmDrawCooldown.tim=500
|
||||||
|
}
|
||||||
|
// get ColorTemp value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
vis hTempSlider,0
|
||||||
|
//vis t3,0
|
||||||
|
//vis t4,0
|
||||||
|
mode_temp.val=0
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
vis hTempSlider,1
|
||||||
|
//vis t3,1
|
||||||
|
//vis t4,1
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hTempSlider.val=sys0
|
||||||
|
}
|
||||||
|
// mode == 0 is rgb controls currently shown
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// get Color value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
|
// disable -> isn't supported
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t0,0
|
||||||
|
vis bColor,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t0,1
|
||||||
|
//only enable bColor button if color temp is also supported
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
vis bColor,1
|
||||||
|
}
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
vis pColorWheel,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// set t0 Color (Localization)
|
||||||
|
//spstr strCommand.txt,t0.txt,"~",8
|
||||||
|
// set t4 Temperature (Localization)
|
||||||
|
//spstr strCommand.txt,t4.txt,"~",9
|
||||||
|
// set t1 Brightness (Localization)
|
||||||
|
//spstr strCommand.txt,t1.txt,"~",10
|
||||||
|
// activate effect button
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
vis bEffect,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis bEffect,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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=="cardGrid2")
|
||||||
|
{
|
||||||
|
page cardGrid2
|
||||||
|
}
|
||||||
|
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(tId.txt=="cardChart")
|
||||||
|
{
|
||||||
|
page cardChart
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// end of user code
|
||||||
|
udelete payloadLength-1
|
||||||
|
bufferPos=0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// next character
|
||||||
|
bufferPos++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TouchCap tc0
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
sleepValue=0
|
||||||
|
|
||||||
@@ -1617,6 +1617,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ Program.s
|
|||||||
//color vars
|
//color vars
|
||||||
int defaultFontColor=65535
|
int defaultFontColor=65535
|
||||||
int defaultBcoColor=6371
|
int defaultBcoColor=6371
|
||||||
|
//feature flags
|
||||||
|
int featNewSliders=0
|
||||||
// fix touch offset (Removed for US version)
|
// fix touch offset (Removed for US version)
|
||||||
//lcd_dev fffb 0002 0000 0020
|
//lcd_dev fffb 0002 0000 0020
|
||||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
|
|||||||
@@ -109,49 +109,49 @@ Variable (string) entn1
|
|||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn2
|
Variable (string) entn2
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn3
|
Variable (string) entn3
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn4
|
Variable (string) entn4
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn5
|
Variable (string) entn5
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) entn6
|
Variable (string) entn6
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 65
|
Max. Text Size: 64
|
||||||
|
|
||||||
Variable (string) nent1
|
Variable (string) nent1
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 40
|
Max. Text Size: 38
|
||||||
|
|
||||||
Variable (string) nent2
|
Variable (string) nent2
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 40
|
Max. Text Size: 38
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
@@ -545,9 +545,9 @@ Slider hSlider6
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
nNum5.val=hSlider5.val
|
nNum6.val=hSlider6.val
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
|
tSend.txt="event,buttonPress2,"+entn6.txt+",number-set,"
|
||||||
covx nNum5.val,tTmp.txt,0,0
|
covx nNum6.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
|
||||||
@@ -1327,7 +1327,7 @@ Dual-state Button btOnOff6
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
|
tSend.txt="event,buttonPress2,"+entn6.txt+",OnOff,"
|
||||||
covx btOnOff5.val,tTmp.txt,0,0
|
covx btOnOff6.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
|
||||||
@@ -1359,9 +1359,14 @@ Hotspot m0
|
|||||||
}
|
}
|
||||||
if(type1.txt=="light")
|
if(type1.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity1.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type1.txt=="fan")
|
if(type1.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1393,9 +1398,14 @@ Hotspot m1
|
|||||||
}
|
}
|
||||||
if(type2.txt=="light")
|
if(type2.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity2.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type2.txt=="fan")
|
if(type2.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1427,9 +1437,14 @@ Hotspot m2
|
|||||||
}
|
}
|
||||||
if(type3.txt=="light")
|
if(type3.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity3.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type3.txt=="fan")
|
if(type3.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1461,9 +1476,14 @@ Hotspot m3
|
|||||||
}
|
}
|
||||||
if(type4.txt=="light")
|
if(type4.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity4.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type4.txt=="fan")
|
if(type4.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1495,9 +1515,14 @@ Hotspot m4
|
|||||||
}
|
}
|
||||||
if(type5.txt=="light")
|
if(type5.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity5.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type5.txt=="fan")
|
if(type5.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1529,9 +1554,14 @@ Hotspot m5
|
|||||||
}
|
}
|
||||||
if(type6.txt=="light")
|
if(type6.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity5.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type6.txt=="fan")
|
if(type6.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
|
|||||||
@@ -604,9 +604,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -713,6 +719,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -734,6 +751,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -755,6 +783,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -776,6 +815,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -797,6 +847,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -818,6 +879,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -904,10 +976,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -582,26 +582,26 @@ Button bEntity7
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type2.txt
|
tTmp.txt=type7.txt
|
||||||
pageIcons.tTmp1.txt=tEntity2.txt
|
pageIcons.tTmp1.txt=tEntity7.txt
|
||||||
pageIcons.tTmp2.txt=entn2.txt
|
pageIcons.tTmp2.txt=entn7.txt
|
||||||
pageIcons.tTmp3.txt=bEntity2.txt
|
pageIcons.tTmp3.txt=bEntity7.txt
|
||||||
if(type2.txt=="shutter")
|
if(type7.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type2.txt=="input_sel")
|
if(type7.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type2.txt=="timer")
|
if(type7.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -626,26 +626,26 @@ Button bEntity8
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type8.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity8.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn8.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity8.txt
|
||||||
if(type6.txt=="shutter")
|
if(type8.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type8.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type8.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -670,26 +670,26 @@ Button bEntity9
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type9.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity9.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn9.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity9.txt
|
||||||
if(type6.txt=="shutter")
|
if(type9.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type9.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type9.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn9.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -805,9 +805,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -914,6 +920,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -935,6 +952,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -956,6 +984,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -977,6 +1016,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -998,6 +1048,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -1019,6 +1080,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -1040,6 +1112,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity7.txt,"~",52
|
spstr strCommand.txt,bEntity7.txt,"~",52
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity7.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity7.font=sys1
|
||||||
|
substr bEntity7.txt,bEntity7.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity7,1
|
vis bEntity7,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",53
|
spstr strCommand.txt,tTmp.txt,"~",53
|
||||||
@@ -1061,6 +1144,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity8.txt,"~",58
|
spstr strCommand.txt,bEntity8.txt,"~",58
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity8.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity8.font=sys1
|
||||||
|
substr bEntity8.txt,bEntity8.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity8,1
|
vis bEntity8,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",59
|
spstr strCommand.txt,tTmp.txt,"~",59
|
||||||
@@ -1082,6 +1176,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity9.txt,"~",64
|
spstr strCommand.txt,bEntity9.txt,"~",64
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity9.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity9.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity9.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity9.font=sys1
|
||||||
|
substr bEntity9.txt,bEntity9.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity9,1
|
vis bEntity9,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",65
|
spstr strCommand.txt,tTmp.txt,"~",65
|
||||||
|
|||||||
@@ -997,6 +997,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",26
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1018,6 +1029,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",32
|
spstr strCommand.txt,tTmp.txt,"~",32
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1039,6 +1061,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",38
|
spstr strCommand.txt,tTmp.txt,"~",38
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1060,6 +1093,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",44
|
spstr strCommand.txt,tTmp.txt,"~",44
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1081,6 +1125,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",50
|
spstr strCommand.txt,tTmp.txt,"~",50
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1102,6 +1157,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",56
|
spstr strCommand.txt,tTmp.txt,"~",56
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1187,10 +1253,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -940,6 +940,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ Text tVersion
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : 51
|
Text : 53
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
@@ -273,8 +273,14 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
|
// get feature flag popup
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,featNewSliders,0,0
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
}
|
||||||
|
if(tInstruction.txt=="timeout2")
|
||||||
{
|
{
|
||||||
//set timeout to global var
|
//set timeout to global var
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
|||||||
@@ -16,12 +16,13 @@ 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 tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
vis tId,0
|
vis tId,0
|
||||||
vis bEffect,0
|
vis bEffect,0
|
||||||
vis hBrightness,0
|
|
||||||
//page open event
|
//page open event
|
||||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
// craft command
|
// craft command
|
||||||
@@ -38,20 +39,20 @@ Page popupLight
|
|||||||
prints tSend.txt,0
|
prints tSend.txt,0
|
||||||
prints crcval,2
|
prints crcval,2
|
||||||
//disable brightness by default
|
//disable brightness by default
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,1
|
vis hBrightness,0
|
||||||
//disable color temp by default
|
//disable color temp by default
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//disable color wheel components by default
|
//disable color wheel components by default
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
//vis t0,0
|
//vis t0,0
|
||||||
popupLight.bco=defaultBcoColor
|
popupLight.bco=defaultBcoColor
|
||||||
for(sys0=0;sys0<27;sys0++)
|
for(sys0=0;sys0<28;sys0++)
|
||||||
{
|
{
|
||||||
if(b[sys0].type==98||b[sys0].type==116)
|
if(b[sys0].type==98||b[sys0].type==116)
|
||||||
{
|
{
|
||||||
@@ -66,18 +67,14 @@ Page popupLight
|
|||||||
}
|
}
|
||||||
if(defaultBcoColor==0)
|
if(defaultBcoColor==0)
|
||||||
{
|
{
|
||||||
hTempSlider.pic=16
|
hBrightness.pic=14
|
||||||
hTempSlider.pic1=16
|
hBrightness.pic1=13
|
||||||
|
hBrightness.pic2=15
|
||||||
|
hTempSlider.pic=23
|
||||||
|
hTempSlider.pic1=17
|
||||||
|
hTempSlider.pic2=15
|
||||||
}
|
}
|
||||||
|
|
||||||
Postinitialize Event
|
|
||||||
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
|
||||||
|
|
||||||
Variable (int32) col
|
|
||||||
Attributes
|
|
||||||
Scope: local
|
|
||||||
Value: 65504
|
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -100,29 +97,56 @@ Variable (string) strCommand
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size: 500
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) tId
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tInstruction
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 200
|
||||||
|
|
||||||
Variable (string) tTmp
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Dragging : 0
|
||||||
Max. Text Size: 80
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : Color
|
||||||
|
Max. Text Size : 50
|
||||||
|
|
||||||
|
Text t1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : Brightness
|
||||||
|
Max. Text Size : 50
|
||||||
|
|
||||||
|
Text t2
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Text t3
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Text t4
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : Temperature
|
||||||
|
Max. Text Size : 50
|
||||||
|
|
||||||
Text tEntity
|
Text tEntity
|
||||||
Attributes
|
Attributes
|
||||||
@@ -133,6 +157,48 @@ Text tEntity
|
|||||||
Text : tEntity1
|
Text : tEntity1
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
|
Text tIcon1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : î´
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Text tId
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text tInstruction
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text tTmp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 80
|
||||||
|
|
||||||
|
Picture p0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
|
||||||
Picture pColorWheel
|
Picture pColorWheel
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -178,20 +244,6 @@ Slider hBrightness
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmCooldown.en=1
|
tmCooldown.en=1
|
||||||
tmCooldown.tim=2500
|
tmCooldown.tim=2500
|
||||||
//craft command
|
//craft command
|
||||||
@@ -280,8 +332,8 @@ Button bColor
|
|||||||
//enable color wheel
|
//enable color wheel
|
||||||
vis pColorWheel,1
|
vis pColorWheel,1
|
||||||
//disable color temp
|
//disable color temp
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
@@ -291,8 +343,8 @@ Button bColor
|
|||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
//enable color temp
|
//enable color temp
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -310,6 +362,7 @@ Button bEffect
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity.txt
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
pageIcons.tTmp2.txt=entn.txt
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
page popupInSel
|
page popupInSel
|
||||||
|
|
||||||
Dual-state Button btOnOff1
|
Dual-state Button btOnOff1
|
||||||
@@ -342,37 +395,13 @@ Dual-state Button btOnOff1
|
|||||||
Timer tmCooldown
|
Timer tmCooldown
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 300
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
tmCooldown.en=0
|
tmCooldown.en=0
|
||||||
|
|
||||||
Timer tmDrawCooldown
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Period (ms): 500
|
|
||||||
Enabled : no
|
|
||||||
|
|
||||||
Events
|
|
||||||
Timer Event
|
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmDrawCooldown.en=0
|
|
||||||
|
|
||||||
Timer tmSerial
|
Timer tmSerial
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -429,12 +458,11 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// 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
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
col.val=sys0
|
tIcon1.pco=sys0
|
||||||
//tEntity.pco=sys0
|
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -443,26 +471,27 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,0
|
vis hBrightness,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t1,1
|
vis t1,1
|
||||||
//vis t2,1
|
vis t2,1
|
||||||
vis hBrightness,1
|
vis hBrightness,1
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
hBrightness.val=sys0
|
hBrightness.val=sys0
|
||||||
tmDrawCooldown.en=1
|
}
|
||||||
tmDrawCooldown.tim=500
|
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
mode_temp.val=0
|
mode_temp.val=0
|
||||||
// mode == 1 is temp controls currently shown
|
// mode == 1 is temp controls currently shown
|
||||||
if(mode.val==1)
|
if(mode.val==1)
|
||||||
@@ -485,8 +514,8 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
mode_temp.val=1
|
mode_temp.val=1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
if(tmCooldown.en==0)
|
if(tmCooldown.en==0)
|
||||||
{
|
{
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -505,12 +534,12 @@ Timer tmSerial
|
|||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t0,1
|
vis t0,1
|
||||||
//only enable bColor button if color temp is also supported
|
//only enable bColor button if color temp is also supported
|
||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
@@ -522,11 +551,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
//spstr strCommand.txt,t0.txt,"~",8
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
//spstr strCommand.txt,t4.txt,"~",9
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
//spstr strCommand.txt,t1.txt,"~",10
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
// activate effect button
|
// activate effect button
|
||||||
spstr strCommand.txt,tTmp.txt,"~",11
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
if(tTmp.txt=="enable")
|
if(tTmp.txt=="enable")
|
||||||
|
|||||||
689
HMI/US/portrait/n2t-out/popupLightNew.txt
Normal file
689
HMI/US/portrait/n2t-out/popupLightNew.txt
Normal file
@@ -0,0 +1,689 @@
|
|||||||
|
Page popupLightNew
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
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
|
||||||
|
//get entitiy name
|
||||||
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
|
//get entity id
|
||||||
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
vis tSend,0
|
||||||
|
vis tTmp,0
|
||||||
|
vis tInstruction,0
|
||||||
|
vis tId,0
|
||||||
|
vis bEffect,0
|
||||||
|
vis hBrightness,0
|
||||||
|
//page open event
|
||||||
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
|
// craft command
|
||||||
|
tSend.txt="event,pageOpenDetail,popupLight,"+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
|
||||||
|
//disable brightness by default
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,1
|
||||||
|
//disable color temp by default
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
//disable color wheel components by default
|
||||||
|
vis bColor,0
|
||||||
|
//vis t0,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
//vis t0,0
|
||||||
|
popupLightNew.bco=defaultBcoColor
|
||||||
|
for(sys0=0;sys0<27;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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(defaultBcoColor==0)
|
||||||
|
{
|
||||||
|
hTempSlider.pic=16
|
||||||
|
hTempSlider.pic1=16
|
||||||
|
}
|
||||||
|
|
||||||
|
Postinitialize Event
|
||||||
|
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
||||||
|
|
||||||
|
Variable (int32) col
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 65504
|
||||||
|
|
||||||
|
Variable (string) entn
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Variable (int32) mode
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 1
|
||||||
|
|
||||||
|
Variable (int32) mode_temp
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (string) strCommand
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 500
|
||||||
|
|
||||||
|
Variable (string) tId
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tInstruction
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tSend
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 200
|
||||||
|
|
||||||
|
Variable (string) tTmp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : tEntity1
|
||||||
|
Max. Text Size : 25
|
||||||
|
|
||||||
|
Picture pColorWheel
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
||||||
|
sys0=tch0
|
||||||
|
sys0=sys0-pColorWheel.x
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
sys0=tch1
|
||||||
|
sys0=sys0-pColorWheel.y
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
covx pColorWheel.h,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hBrightness
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit: 100
|
||||||
|
Lower range limit: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
|
||||||
|
covx hBrightness.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hTempSlider
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit: 100
|
||||||
|
Lower range limit: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
||||||
|
covx hTempSlider.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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 b0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
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 bColor
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
mode.val=0
|
||||||
|
//enable color wheel
|
||||||
|
vis pColorWheel,1
|
||||||
|
//disable color temp
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode.val=1
|
||||||
|
//disable color wheel
|
||||||
|
vis pColorWheel,0
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
//enable color temp
|
||||||
|
//vis t4,1
|
||||||
|
//vis t3,1
|
||||||
|
vis hTempSlider,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button bEffect
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : 
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
page popupInSel
|
||||||
|
|
||||||
|
Dual-state Button btOnOff1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
||||||
|
covx btOnOff1.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Timer tmCooldown
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 300
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
tmCooldown.en=0
|
||||||
|
|
||||||
|
Timer tmDrawCooldown
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 500
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmDrawCooldown.en=0
|
||||||
|
|
||||||
|
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
|
||||||
|
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
|
||||||
|
col.val=sys0
|
||||||
|
//tEntity.pco=sys0
|
||||||
|
// get Button State
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
btOnOff1.val=sys0
|
||||||
|
// get Brightness value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t1,1
|
||||||
|
//vis t2,1
|
||||||
|
vis hBrightness,1
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hBrightness.val=sys0
|
||||||
|
tmDrawCooldown.en=1
|
||||||
|
tmDrawCooldown.tim=500
|
||||||
|
}
|
||||||
|
// get ColorTemp value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
vis hTempSlider,0
|
||||||
|
//vis t3,0
|
||||||
|
//vis t4,0
|
||||||
|
mode_temp.val=0
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
vis hTempSlider,1
|
||||||
|
//vis t3,1
|
||||||
|
//vis t4,1
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hTempSlider.val=sys0
|
||||||
|
}
|
||||||
|
// mode == 0 is rgb controls currently shown
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// get Color value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
|
// disable -> isn't supported
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t0,0
|
||||||
|
vis bColor,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t0,1
|
||||||
|
//only enable bColor button if color temp is also supported
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
vis bColor,1
|
||||||
|
}
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
vis pColorWheel,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// set t0 Color (Localization)
|
||||||
|
//spstr strCommand.txt,t0.txt,"~",8
|
||||||
|
// set t4 Temperature (Localization)
|
||||||
|
//spstr strCommand.txt,t4.txt,"~",9
|
||||||
|
// set t1 Brightness (Localization)
|
||||||
|
//spstr strCommand.txt,t1.txt,"~",10
|
||||||
|
// activate effect button
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
vis bEffect,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis bEffect,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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=="cardGrid2")
|
||||||
|
{
|
||||||
|
page cardGrid2
|
||||||
|
}
|
||||||
|
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(tId.txt=="cardChart")
|
||||||
|
{
|
||||||
|
page cardChart
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 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)
|
||||||
|
{
|
||||||
|
sleepValue+=1
|
||||||
|
if(sleepTimeout<=sleepValue)
|
||||||
|
{
|
||||||
|
sleepValue=0
|
||||||
|
click b0,1
|
||||||
|
click b0,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TouchCap tc0
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
sleepValue=0
|
||||||
|
|
||||||
@@ -804,6 +804,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@ head = sharedhead + """
|
|||||||
""" + navigation
|
""" + navigation
|
||||||
print(head)
|
print(head)
|
||||||
start = 14
|
start = 14
|
||||||
for i in range(1,7):
|
for i in range(1,9):
|
||||||
idxstart = start + (i-1)*6
|
idxstart = start + (i-1)*6
|
||||||
item = f"""
|
item = f"""
|
||||||
// get Type
|
// get Type
|
||||||
@@ -22,6 +22,19 @@ for i in range(1,7):
|
|||||||
{{
|
{{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
|
spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
|
||||||
|
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity{i}.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity{i}.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{{
|
||||||
|
substr bEntity{i}.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity{i}.font=sys1
|
||||||
|
substr bEntity{i}.txt,bEntity{i}.txt,0,sys0-2
|
||||||
|
}}
|
||||||
|
|
||||||
vis bEntity{i},1
|
vis bEntity{i},1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||||
|
|||||||
@@ -71,6 +71,19 @@ for i in range(1,7):
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
|
spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
|
||||||
vis bEntity{i},1
|
vis bEntity{i},1
|
||||||
|
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity{i}.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity{i}.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{{
|
||||||
|
substr bEntity{i}.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity{i}.font=sys1
|
||||||
|
substr bEntity{i}.txt,bEntity{i}.txt,0,sys0-2
|
||||||
|
}}
|
||||||
|
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -79,6 +92,7 @@ for i in range(1,7):
|
|||||||
spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4}
|
spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4}
|
||||||
vis tEntity{i},1
|
vis tEntity{i},1
|
||||||
}}
|
}}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
print(item)
|
print(item)
|
||||||
foot = """
|
foot = """
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ Program.s
|
|||||||
//color vars
|
//color vars
|
||||||
int defaultFontColor=65535
|
int defaultFontColor=65535
|
||||||
int defaultBcoColor=6371
|
int defaultBcoColor=6371
|
||||||
|
//feature flags
|
||||||
|
int featNewSliders=0
|
||||||
// fix touch offset
|
// fix touch offset
|
||||||
lcd_dev fffb 0002 0000 0020
|
lcd_dev fffb 0002 0000 0020
|
||||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
|
|||||||
@@ -1856,9 +1856,14 @@ Hotspot m0
|
|||||||
}
|
}
|
||||||
if(type1.txt=="light")
|
if(type1.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity1.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type1.txt=="fan")
|
if(type1.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1899,9 +1904,14 @@ Hotspot m1
|
|||||||
}
|
}
|
||||||
if(type2.txt=="light")
|
if(type2.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity2.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type2.txt=="fan")
|
if(type2.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1942,9 +1952,14 @@ Hotspot m2
|
|||||||
}
|
}
|
||||||
if(type3.txt=="light")
|
if(type3.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity3.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type3.txt=="fan")
|
if(type3.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1985,9 +2000,14 @@ Hotspot m3
|
|||||||
}
|
}
|
||||||
if(type4.txt=="light")
|
if(type4.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity4.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type4.txt=="fan")
|
if(type4.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
|
|||||||
@@ -1051,9 +1051,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1161,6 +1167,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -1182,6 +1199,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -1203,6 +1231,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -1224,6 +1263,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -1245,6 +1295,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -1266,6 +1327,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -1352,10 +1424,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -991,26 +991,26 @@ Button bEntity7
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type7.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity7.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn7.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity7.txt
|
||||||
if(type6.txt=="shutter")
|
if(type7.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type7.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type7.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -1057,26 +1057,26 @@ Button bEntity8
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type8.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity8.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn8.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity8.txt
|
||||||
if(type6.txt=="shutter")
|
if(type8.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type8.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type8.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -1273,9 +1273,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1383,6 +1389,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -1404,6 +1421,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -1425,6 +1453,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -1446,6 +1485,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -1467,6 +1517,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -1488,6 +1549,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -1509,6 +1581,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity7.txt,"~",52
|
spstr strCommand.txt,bEntity7.txt,"~",52
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity7.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity7.font=sys1
|
||||||
|
substr bEntity7.txt,bEntity7.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity7,1
|
vis bEntity7,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",53
|
spstr strCommand.txt,tTmp.txt,"~",53
|
||||||
@@ -1530,6 +1613,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity8.txt,"~",58
|
spstr strCommand.txt,bEntity8.txt,"~",58
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity8.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity8.font=sys1
|
||||||
|
substr bEntity8.txt,bEntity8.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity8,1
|
vis bEntity8,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",59
|
spstr strCommand.txt,tTmp.txt,"~",59
|
||||||
|
|||||||
@@ -1485,6 +1485,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",26
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1506,6 +1517,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",32
|
spstr strCommand.txt,tTmp.txt,"~",32
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1527,6 +1549,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",38
|
spstr strCommand.txt,tTmp.txt,"~",38
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1548,6 +1581,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",44
|
spstr strCommand.txt,tTmp.txt,"~",44
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1569,6 +1613,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",50
|
spstr strCommand.txt,tTmp.txt,"~",50
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1590,6 +1645,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",56
|
spstr strCommand.txt,tTmp.txt,"~",56
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1675,10 +1741,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1652,6 +1652,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Program.s
|
Program.s
|
||||||
0 Component(s)
|
0 Component(s)
|
||||||
14 Line(s) of event code
|
15 Line(s) of event code
|
||||||
14 Unique line(s) of event code
|
15 Unique line(s) of event code
|
||||||
pageIcons
|
pageIcons
|
||||||
7 Component(s)
|
7 Component(s)
|
||||||
0 Line(s) of event code
|
0 Line(s) of event code
|
||||||
@@ -18,30 +18,26 @@ popupFan
|
|||||||
27 Component(s)
|
27 Component(s)
|
||||||
355 Line(s) of event code
|
355 Line(s) of event code
|
||||||
206 Unique line(s) of event code
|
206 Unique line(s) of event code
|
||||||
popupLight
|
pageStartup
|
||||||
23 Component(s)
|
20 Component(s)
|
||||||
410 Line(s) of event code
|
198 Line(s) of event code
|
||||||
209 Unique line(s) of event code
|
137 Unique line(s) of event code
|
||||||
popupShutter
|
popupShutter
|
||||||
25 Component(s)
|
25 Component(s)
|
||||||
402 Line(s) of event code
|
402 Line(s) of event code
|
||||||
220 Unique line(s) of event code
|
220 Unique line(s) of event code
|
||||||
cardGrid
|
popupLightNew
|
||||||
44 Component(s)
|
23 Component(s)
|
||||||
523 Line(s) of event code
|
412 Line(s) of event code
|
||||||
295 Unique line(s) of event code
|
209 Unique line(s) of event code
|
||||||
popupNotify
|
popupNotify
|
||||||
19 Component(s)
|
19 Component(s)
|
||||||
267 Line(s) of event code
|
267 Line(s) of event code
|
||||||
172 Unique line(s) of event code
|
172 Unique line(s) of event code
|
||||||
cardPower
|
cardGrid
|
||||||
54 Component(s)
|
44 Component(s)
|
||||||
527 Line(s) of event code
|
579 Line(s) of event code
|
||||||
347 Unique line(s) of event code
|
330 Unique line(s) of event code
|
||||||
pageStartup
|
|
||||||
20 Component(s)
|
|
||||||
193 Line(s) of event code
|
|
||||||
135 Unique line(s) of event code
|
|
||||||
cardQR
|
cardQR
|
||||||
34 Component(s)
|
34 Component(s)
|
||||||
410 Line(s) of event code
|
410 Line(s) of event code
|
||||||
@@ -50,34 +46,42 @@ cardChart
|
|||||||
33 Component(s)
|
33 Component(s)
|
||||||
437 Line(s) of event code
|
437 Line(s) of event code
|
||||||
296 Unique line(s) of event code
|
296 Unique line(s) of event code
|
||||||
|
screensaver2
|
||||||
|
59 Component(s)
|
||||||
|
362 Line(s) of event code
|
||||||
|
255 Unique line(s) of event code
|
||||||
cardAlarm
|
cardAlarm
|
||||||
43 Component(s)
|
43 Component(s)
|
||||||
500 Line(s) of event code
|
500 Line(s) of event code
|
||||||
273 Unique line(s) of event code
|
273 Unique line(s) of event code
|
||||||
screensaver
|
popupLight
|
||||||
47 Component(s)
|
28 Component(s)
|
||||||
444 Line(s) of event code
|
412 Line(s) of event code
|
||||||
316 Unique line(s) of event code
|
227 Unique line(s) of event code
|
||||||
cardThermo
|
cardThermo
|
||||||
57 Component(s)
|
57 Component(s)
|
||||||
540 Line(s) of event code
|
540 Line(s) of event code
|
||||||
319 Unique line(s) of event code
|
319 Unique line(s) of event code
|
||||||
screensaver2
|
cardGrid2
|
||||||
59 Component(s)
|
52 Component(s)
|
||||||
358 Line(s) of event code
|
689 Line(s) of event code
|
||||||
253 Unique line(s) of event code
|
382 Unique line(s) of event code
|
||||||
cardMedia
|
cardMedia
|
||||||
59 Component(s)
|
59 Component(s)
|
||||||
649 Line(s) of event code
|
699 Line(s) of event code
|
||||||
322 Unique line(s) of event code
|
354 Unique line(s) of event code
|
||||||
popupInSel
|
popupInSel
|
||||||
34 Component(s)
|
34 Component(s)
|
||||||
621 Line(s) of event code
|
621 Line(s) of event code
|
||||||
297 Unique line(s) of event code
|
297 Unique line(s) of event code
|
||||||
cardGrid2
|
cardPower
|
||||||
52 Component(s)
|
54 Component(s)
|
||||||
611 Line(s) of event code
|
531 Line(s) of event code
|
||||||
319 Unique line(s) of event code
|
349 Unique line(s) of event code
|
||||||
|
screensaver
|
||||||
|
47 Component(s)
|
||||||
|
444 Line(s) of event code
|
||||||
|
316 Unique line(s) of event code
|
||||||
popupTimer
|
popupTimer
|
||||||
42 Component(s)
|
42 Component(s)
|
||||||
516 Line(s) of event code
|
516 Line(s) of event code
|
||||||
@@ -88,11 +92,11 @@ popupThermo
|
|||||||
276 Unique line(s) of event code
|
276 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
67 Component(s)
|
67 Component(s)
|
||||||
1170 Line(s) of event code
|
1194 Line(s) of event code
|
||||||
532 Unique line(s) of event code
|
535 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
22 Page(s)
|
23 Page(s)
|
||||||
850 Component(s)
|
878 Component(s)
|
||||||
9940 Line(s) of event code
|
10576 Line(s) of event code
|
||||||
2369 Unique line(s) of event code
|
2459 Unique line(s) of event code
|
||||||
|
|||||||
@@ -396,7 +396,7 @@ Text tVersion
|
|||||||
Horizontal Alignment: center
|
Horizontal Alignment: center
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : 51
|
Text : 53
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
Word wrap : disabled
|
Word wrap : disabled
|
||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
@@ -575,6 +575,12 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
|
// get feature flag popup
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,featNewSliders,0,0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,12 +24,13 @@ 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 tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
vis tId,0
|
vis tId,0
|
||||||
vis bEffect,0
|
vis bEffect,0
|
||||||
vis hBrightness,0
|
|
||||||
//page open event
|
//page open event
|
||||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
// craft command
|
// craft command
|
||||||
@@ -46,16 +47,16 @@ Page popupLight
|
|||||||
prints tSend.txt,0
|
prints tSend.txt,0
|
||||||
prints crcval,2
|
prints crcval,2
|
||||||
//disable brightness by default
|
//disable brightness by default
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,1
|
vis hBrightness,0
|
||||||
//disable color temp by default
|
//disable color temp by default
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//disable color wheel components by default
|
//disable color wheel components by default
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
//vis t0,0
|
//vis t0,0
|
||||||
popupLight.bco=defaultBcoColor
|
popupLight.bco=defaultBcoColor
|
||||||
@@ -74,76 +75,195 @@ Page popupLight
|
|||||||
}
|
}
|
||||||
if(defaultBcoColor==0)
|
if(defaultBcoColor==0)
|
||||||
{
|
{
|
||||||
|
hBrightness.pic=24
|
||||||
|
hBrightness.pic1=25
|
||||||
|
hBrightness.pic2=15
|
||||||
hTempSlider.pic=16
|
hTempSlider.pic=16
|
||||||
hTempSlider.pic1=16
|
hTempSlider.pic1=17
|
||||||
|
hTempSlider.pic2=15
|
||||||
}
|
}
|
||||||
|
|
||||||
Postinitialize Event
|
|
||||||
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
|
||||||
|
|
||||||
Variable (int32) col
|
|
||||||
Attributes
|
|
||||||
ID : 18
|
|
||||||
Scope: local
|
|
||||||
Value: 65504
|
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 80
|
Max. Text Size: 80
|
||||||
|
|
||||||
Variable (int32) mode
|
Variable (int32) mode
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 22
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 1
|
Value: 1
|
||||||
|
|
||||||
Variable (int32) mode_temp
|
Variable (int32) mode_temp
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 23
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (string) strCommand
|
Variable (string) strCommand
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 500
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) tId
|
|
||||||
Attributes
|
|
||||||
ID : 20
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tInstruction
|
|
||||||
Attributes
|
|
||||||
ID : 19
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 200
|
||||||
|
|
||||||
Variable (string) tTmp
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Dragging : 0
|
||||||
Max. Text Size: 80
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 9
|
||||||
|
y coordinate : 80
|
||||||
|
Width : 64
|
||||||
|
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 : Color
|
||||||
|
Max. Text Size : 50
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t1
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 10
|
||||||
|
y coordinate : 226
|
||||||
|
Width : 211
|
||||||
|
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 : Brightness
|
||||||
|
Max. Text Size : 50
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t2
|
||||||
|
Attributes
|
||||||
|
ID : 9
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 10
|
||||||
|
y coordinate : 267
|
||||||
|
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 : 40147
|
||||||
|
Horizontal Alignment: center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t3
|
||||||
|
Attributes
|
||||||
|
ID : 10
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 10
|
||||||
|
y coordinate : 181
|
||||||
|
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 : 40147
|
||||||
|
Horizontal Alignment: center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Text t4
|
||||||
|
Attributes
|
||||||
|
ID : 11
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 9
|
||||||
|
y coordinate : 143
|
||||||
|
Width : 242
|
||||||
|
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 : Temperature
|
||||||
|
Max. Text Size : 50
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Text tEntity
|
Text tEntity
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
@@ -158,10 +278,10 @@ Text tEntity
|
|||||||
Fill : solid color
|
Fill : solid color
|
||||||
Style : flat
|
Style : flat
|
||||||
Associated Keyboard : none
|
Associated Keyboard : none
|
||||||
Font ID : 2
|
Font ID : 0
|
||||||
Back. Color : 6371
|
Back. Color : 6371
|
||||||
Font Color : 65535
|
Font Color : 65535
|
||||||
Horizontal Alignment: center
|
Horizontal Alignment: left
|
||||||
Vertical Alignment : center
|
Vertical Alignment : center
|
||||||
Input Type : character
|
Input Type : character
|
||||||
Text : tEntity1
|
Text : tEntity1
|
||||||
@@ -170,15 +290,147 @@ Text tEntity
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
Picture pColorWheel
|
Text tIcon1
|
||||||
|
Attributes
|
||||||
|
ID : 4
|
||||||
|
Scope : local
|
||||||
|
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 tId
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope : local
|
||||||
|
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
|
||||||
|
|
||||||
|
Text tInstruction
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
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 tTmp
|
||||||
|
Attributes
|
||||||
|
ID : 12
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 406
|
||||||
|
y coordinate : 277
|
||||||
|
Width : 34
|
||||||
|
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
|
||||||
|
|
||||||
|
Picture p0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 233
|
x coordinate : 0
|
||||||
y coordinate : 105
|
y coordinate : 0
|
||||||
|
Width : 480
|
||||||
|
Height : 320
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Picture ID : 0
|
||||||
|
|
||||||
|
Picture pColorWheel
|
||||||
|
Attributes
|
||||||
|
ID : 2
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 167
|
||||||
|
y coordinate : 69
|
||||||
Width : 160
|
Width : 160
|
||||||
Height : 160
|
Height : 160
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -216,44 +468,30 @@ Picture pColorWheel
|
|||||||
|
|
||||||
Slider hBrightness
|
Slider hBrightness
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 89
|
x coordinate : 61
|
||||||
y coordinate : 64
|
y coordinate : 261
|
||||||
Width : 100
|
Width : 335
|
||||||
Height : 250
|
Height : 43
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
Direction : vertical
|
Direction : horizontal
|
||||||
Fill : image
|
Fill : image
|
||||||
Cursor width : auto
|
Cursor width : auto
|
||||||
Cursor height : 1
|
Cursor height : 255
|
||||||
Back. Picture ID : 65535
|
Back. Picture ID : 5
|
||||||
Slided Back. Picture ID: 65535
|
Slided Back. Picture ID: 4
|
||||||
Position : 50
|
Position : 50
|
||||||
Upper range limit : 100
|
Upper range limit : 100
|
||||||
Lower range limit : 0
|
Lower range limit : 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmCooldown.en=1
|
tmCooldown.en=1
|
||||||
tmCooldown.tim=2500
|
tmCooldown.tim=2500
|
||||||
//craft command
|
//craft command
|
||||||
@@ -274,24 +512,24 @@ Slider hBrightness
|
|||||||
|
|
||||||
Slider hTempSlider
|
Slider hTempSlider
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 263
|
x coordinate : 61
|
||||||
y coordinate : 64
|
y coordinate : 178
|
||||||
Width : 100
|
Width : 335
|
||||||
Height : 250
|
Height : 44
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
Direction : vertical
|
Direction : horizontal
|
||||||
Fill : image
|
Fill : image
|
||||||
Cursor width : auto
|
Cursor width : auto
|
||||||
Cursor height : 255
|
Cursor height : 255
|
||||||
Back. Picture ID : 7
|
Back. Picture ID : 22
|
||||||
Slided Back. Picture ID: 7
|
Slided Back. Picture ID: 23
|
||||||
Position : 50
|
Position : 50
|
||||||
Upper range limit : 100
|
Upper range limit : 100
|
||||||
Lower range limit : 0
|
Lower range limit : 0
|
||||||
@@ -318,7 +556,7 @@ Slider hTempSlider
|
|||||||
|
|
||||||
Button b0
|
Button b0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
@@ -364,13 +602,13 @@ Button b0
|
|||||||
|
|
||||||
Button bColor
|
Button bColor
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 14
|
x coordinate : 93
|
||||||
y coordinate : 146
|
y coordinate : 68
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -401,8 +639,8 @@ Button bColor
|
|||||||
//enable color wheel
|
//enable color wheel
|
||||||
vis pColorWheel,1
|
vis pColorWheel,1
|
||||||
//disable color temp
|
//disable color temp
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
@@ -412,21 +650,21 @@ Button bColor
|
|||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
//enable color temp
|
//enable color temp
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button bEffect
|
Button bEffect
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 14
|
x coordinate : 396
|
||||||
y coordinate : 213
|
y coordinate : 95
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -453,17 +691,18 @@ Button bEffect
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity.txt
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
pageIcons.tTmp2.txt=entn.txt
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
page popupInSel
|
page popupInSel
|
||||||
|
|
||||||
Dual-state Button btOnOff1
|
Dual-state Button btOnOff1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 14
|
x coordinate : 341
|
||||||
y coordinate : 77
|
y coordinate : 95
|
||||||
Width : 50
|
Width : 50
|
||||||
Height : 50
|
Height : 50
|
||||||
Effect : load
|
Effect : load
|
||||||
@@ -502,43 +741,18 @@ Dual-state Button btOnOff1
|
|||||||
|
|
||||||
Timer tmCooldown
|
Timer tmCooldown
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 300
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
tmCooldown.en=0
|
tmCooldown.en=0
|
||||||
|
|
||||||
Timer tmDrawCooldown
|
|
||||||
Attributes
|
|
||||||
ID : 22
|
|
||||||
Scope : local
|
|
||||||
Period (ms): 500
|
|
||||||
Enabled : no
|
|
||||||
|
|
||||||
Events
|
|
||||||
Timer Event
|
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmDrawCooldown.en=0
|
|
||||||
|
|
||||||
Timer tmSerial
|
Timer tmSerial
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
@@ -593,12 +807,11 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// 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
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
col.val=sys0
|
tIcon1.pco=sys0
|
||||||
//tEntity.pco=sys0
|
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -607,26 +820,27 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,0
|
vis hBrightness,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t1,1
|
vis t1,1
|
||||||
//vis t2,1
|
vis t2,1
|
||||||
vis hBrightness,1
|
vis hBrightness,1
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
hBrightness.val=sys0
|
hBrightness.val=sys0
|
||||||
tmDrawCooldown.en=1
|
}
|
||||||
tmDrawCooldown.tim=500
|
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
mode_temp.val=0
|
mode_temp.val=0
|
||||||
// mode == 1 is temp controls currently shown
|
// mode == 1 is temp controls currently shown
|
||||||
if(mode.val==1)
|
if(mode.val==1)
|
||||||
@@ -649,8 +863,8 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
mode_temp.val=1
|
mode_temp.val=1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
if(tmCooldown.en==0)
|
if(tmCooldown.en==0)
|
||||||
{
|
{
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -669,12 +883,12 @@ Timer tmSerial
|
|||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t0,1
|
vis t0,1
|
||||||
//only enable bColor button if color temp is also supported
|
//only enable bColor button if color temp is also supported
|
||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
@@ -686,11 +900,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
//spstr strCommand.txt,t0.txt,"~",8
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
//spstr strCommand.txt,t4.txt,"~",9
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
//spstr strCommand.txt,t1.txt,"~",10
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
// activate effect button
|
// activate effect button
|
||||||
spstr strCommand.txt,tTmp.txt,"~",11
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
if(tTmp.txt=="enable")
|
if(tTmp.txt=="enable")
|
||||||
@@ -825,7 +1039,7 @@ Timer tmSerial
|
|||||||
|
|
||||||
Timer tmSleep
|
Timer tmSleep
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 1000
|
Period (ms): 1000
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
@@ -845,7 +1059,7 @@ Timer tmSleep
|
|||||||
|
|
||||||
TouchCap tc0
|
TouchCap tc0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 13
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
|
|||||||
855
HMI/n2t-out-visual/popupLightNew.txt
Normal file
855
HMI/n2t-out-visual/popupLightNew.txt
Normal file
@@ -0,0 +1,855 @@
|
|||||||
|
Page popupLightNew
|
||||||
|
Attributes
|
||||||
|
ID : 0
|
||||||
|
Scope : local
|
||||||
|
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
|
||||||
|
vis tSend,0
|
||||||
|
vis tTmp,0
|
||||||
|
vis tInstruction,0
|
||||||
|
vis tId,0
|
||||||
|
vis bEffect,0
|
||||||
|
vis hBrightness,0
|
||||||
|
//page open event
|
||||||
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
|
// craft command
|
||||||
|
tSend.txt="event,pageOpenDetail,popupLight,"+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
|
||||||
|
//disable brightness by default
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,1
|
||||||
|
//disable color temp by default
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
//disable color wheel components by default
|
||||||
|
vis bColor,0
|
||||||
|
//vis t0,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
//vis t0,0
|
||||||
|
popupLightNew.bco=defaultBcoColor
|
||||||
|
for(sys0=0;sys0<27;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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(defaultBcoColor==0)
|
||||||
|
{
|
||||||
|
hTempSlider.pic=16
|
||||||
|
hTempSlider.pic1=16
|
||||||
|
}
|
||||||
|
|
||||||
|
Postinitialize Event
|
||||||
|
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
||||||
|
|
||||||
|
Variable (int32) col
|
||||||
|
Attributes
|
||||||
|
ID : 18
|
||||||
|
Scope: local
|
||||||
|
Value: 65504
|
||||||
|
|
||||||
|
Variable (string) entn
|
||||||
|
Attributes
|
||||||
|
ID : 11
|
||||||
|
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 (string) strCommand
|
||||||
|
Attributes
|
||||||
|
ID : 9
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 500
|
||||||
|
|
||||||
|
Variable (string) tId
|
||||||
|
Attributes
|
||||||
|
ID : 20
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tInstruction
|
||||||
|
Attributes
|
||||||
|
ID : 19
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tSend
|
||||||
|
Attributes
|
||||||
|
ID : 16
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 200
|
||||||
|
|
||||||
|
Variable (string) tTmp
|
||||||
|
Attributes
|
||||||
|
ID : 21
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
ID : 2
|
||||||
|
Scope : local
|
||||||
|
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 : 2
|
||||||
|
Back. Color : 6371
|
||||||
|
Font Color : 65535
|
||||||
|
Horizontal Alignment: center
|
||||||
|
Vertical Alignment : center
|
||||||
|
Input Type : character
|
||||||
|
Text : tEntity1
|
||||||
|
Max. Text Size : 25
|
||||||
|
Word wrap : disabled
|
||||||
|
Horizontal Spacing : 0
|
||||||
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Picture pColorWheel
|
||||||
|
Attributes
|
||||||
|
ID : 1
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 233
|
||||||
|
y coordinate : 105
|
||||||
|
Width : 160
|
||||||
|
Height : 160
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Picture ID : 3
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
||||||
|
sys0=tch0
|
||||||
|
sys0=sys0-pColorWheel.x
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
sys0=tch1
|
||||||
|
sys0=sys0-pColorWheel.y
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
covx pColorWheel.h,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hBrightness
|
||||||
|
Attributes
|
||||||
|
ID : 4
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 89
|
||||||
|
y coordinate : 64
|
||||||
|
Width : 100
|
||||||
|
Height : 250
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Direction : vertical
|
||||||
|
Fill : image
|
||||||
|
Cursor width : auto
|
||||||
|
Cursor height : 1
|
||||||
|
Back. Picture ID : 65535
|
||||||
|
Slided Back. Picture ID: 65535
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
|
||||||
|
covx hBrightness.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hTempSlider
|
||||||
|
Attributes
|
||||||
|
ID : 10
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 263
|
||||||
|
y coordinate : 64
|
||||||
|
Width : 100
|
||||||
|
Height : 250
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Direction : vertical
|
||||||
|
Fill : image
|
||||||
|
Cursor width : auto
|
||||||
|
Cursor height : 255
|
||||||
|
Back. Picture ID : 7
|
||||||
|
Slided Back. Picture ID: 7
|
||||||
|
Position : 50
|
||||||
|
Upper range limit : 100
|
||||||
|
Lower range limit : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
||||||
|
covx hTempSlider.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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 b0
|
||||||
|
Attributes
|
||||||
|
ID : 3
|
||||||
|
Scope : local
|
||||||
|
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 bColor
|
||||||
|
Attributes
|
||||||
|
ID : 12
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 14
|
||||||
|
y coordinate : 146
|
||||||
|
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
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
mode.val=0
|
||||||
|
//enable color wheel
|
||||||
|
vis pColorWheel,1
|
||||||
|
//disable color temp
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode.val=1
|
||||||
|
//disable color wheel
|
||||||
|
vis pColorWheel,0
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
//enable color temp
|
||||||
|
//vis t4,1
|
||||||
|
//vis t3,1
|
||||||
|
vis hTempSlider,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button bEffect
|
||||||
|
Attributes
|
||||||
|
ID : 17
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 14
|
||||||
|
y coordinate : 213
|
||||||
|
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
|
||||||
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
page popupInSel
|
||||||
|
|
||||||
|
Dual-state Button btOnOff1
|
||||||
|
Attributes
|
||||||
|
ID : 5
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Opacity : 127
|
||||||
|
x coordinate : 14
|
||||||
|
y coordinate : 77
|
||||||
|
Width : 50
|
||||||
|
Height : 50
|
||||||
|
Effect : load
|
||||||
|
Effect Priority : 0
|
||||||
|
Effect Time : 300
|
||||||
|
Fill : image
|
||||||
|
Font ID : 0
|
||||||
|
Background Picture ID (Unpressed): 1
|
||||||
|
Back. Picture ID (Pressed) : 2
|
||||||
|
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
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
||||||
|
covx btOnOff1.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Timer tmCooldown
|
||||||
|
Attributes
|
||||||
|
ID : 15
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 300
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
tmCooldown.en=0
|
||||||
|
|
||||||
|
Timer tmDrawCooldown
|
||||||
|
Attributes
|
||||||
|
ID : 22
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 500
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmDrawCooldown.en=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
|
||||||
|
col.val=sys0
|
||||||
|
//tEntity.pco=sys0
|
||||||
|
// get Button State
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
btOnOff1.val=sys0
|
||||||
|
// get Brightness value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t1,1
|
||||||
|
//vis t2,1
|
||||||
|
vis hBrightness,1
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hBrightness.val=sys0
|
||||||
|
tmDrawCooldown.en=1
|
||||||
|
tmDrawCooldown.tim=500
|
||||||
|
}
|
||||||
|
// get ColorTemp value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
vis hTempSlider,0
|
||||||
|
//vis t3,0
|
||||||
|
//vis t4,0
|
||||||
|
mode_temp.val=0
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
vis hTempSlider,1
|
||||||
|
//vis t3,1
|
||||||
|
//vis t4,1
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hTempSlider.val=sys0
|
||||||
|
}
|
||||||
|
// mode == 0 is rgb controls currently shown
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// get Color value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
|
// disable -> isn't supported
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t0,0
|
||||||
|
vis bColor,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t0,1
|
||||||
|
//only enable bColor button if color temp is also supported
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
vis bColor,1
|
||||||
|
}
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
vis pColorWheel,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// set t0 Color (Localization)
|
||||||
|
//spstr strCommand.txt,t0.txt,"~",8
|
||||||
|
// set t4 Temperature (Localization)
|
||||||
|
//spstr strCommand.txt,t4.txt,"~",9
|
||||||
|
// set t1 Brightness (Localization)
|
||||||
|
//spstr strCommand.txt,t1.txt,"~",10
|
||||||
|
// activate effect button
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
vis bEffect,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis bEffect,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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=="cardGrid2")
|
||||||
|
{
|
||||||
|
page cardGrid2
|
||||||
|
}
|
||||||
|
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(tId.txt=="cardChart")
|
||||||
|
{
|
||||||
|
page cardChart
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// end of user code
|
||||||
|
udelete payloadLength-1
|
||||||
|
bufferPos=0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// next character
|
||||||
|
bufferPos++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TouchCap tc0
|
||||||
|
Attributes
|
||||||
|
ID : 6
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
sleepValue=0
|
||||||
|
|
||||||
@@ -581,7 +581,7 @@ Timer tmSerial
|
|||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout2")
|
||||||
{
|
{
|
||||||
//set timeout to global var
|
//set timeout to global var
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
|||||||
@@ -1661,6 +1661,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ Program.s
|
|||||||
//color vars
|
//color vars
|
||||||
int defaultFontColor=65535
|
int defaultFontColor=65535
|
||||||
int defaultBcoColor=6371
|
int defaultBcoColor=6371
|
||||||
|
//feature flags
|
||||||
|
int featNewSliders=0
|
||||||
// fix touch offset
|
// fix touch offset
|
||||||
lcd_dev fffb 0002 0000 0020
|
lcd_dev fffb 0002 0000 0020
|
||||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
|
|||||||
@@ -965,9 +965,14 @@ Hotspot m0
|
|||||||
}
|
}
|
||||||
if(type1.txt=="light")
|
if(type1.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity1.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type1.txt=="fan")
|
if(type1.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -999,9 +1004,14 @@ Hotspot m1
|
|||||||
}
|
}
|
||||||
if(type2.txt=="light")
|
if(type2.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity2.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type2.txt=="fan")
|
if(type2.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1033,9 +1043,14 @@ Hotspot m2
|
|||||||
}
|
}
|
||||||
if(type3.txt=="light")
|
if(type3.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity3.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type3.txt=="fan")
|
if(type3.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -1067,9 +1082,14 @@ Hotspot m3
|
|||||||
}
|
}
|
||||||
if(type4.txt=="light")
|
if(type4.txt=="light")
|
||||||
{
|
{
|
||||||
//popupLight.tEntity.txt=tEntity4.txt
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(type4.txt=="fan")
|
if(type4.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
|
|||||||
@@ -604,9 +604,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -713,6 +719,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -734,6 +751,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -755,6 +783,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -776,6 +815,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -797,6 +847,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -818,6 +879,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -904,10 +976,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -559,26 +559,26 @@ Button bEntity7
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type7.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity7.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn7.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity7.txt
|
||||||
if(type6.txt=="shutter")
|
if(type7.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type7.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type7.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -603,26 +603,26 @@ Button bEntity8
|
|||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
tmLP.en=1
|
tmLP.en=1
|
||||||
tTmp.txt=type6.txt
|
tTmp.txt=type8.txt
|
||||||
pageIcons.tTmp1.txt=tEntity6.txt
|
pageIcons.tTmp1.txt=tEntity8.txt
|
||||||
pageIcons.tTmp2.txt=entn6.txt
|
pageIcons.tTmp2.txt=entn8.txt
|
||||||
pageIcons.tTmp3.txt=bEntity6.txt
|
pageIcons.tTmp3.txt=bEntity8.txt
|
||||||
if(type6.txt=="shutter")
|
if(type8.txt=="shutter")
|
||||||
{
|
{
|
||||||
page popupShutter
|
page popupShutter
|
||||||
}
|
}
|
||||||
if(type6.txt=="input_sel")
|
if(type8.txt=="input_sel")
|
||||||
{
|
{
|
||||||
page popupInSel
|
page popupInSel
|
||||||
}
|
}
|
||||||
if(type6.txt=="timer")
|
if(type8.txt=="timer")
|
||||||
{
|
{
|
||||||
page popupTimer
|
page popupTimer
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
tmLP.en=0
|
tmLP.en=0
|
||||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||||
//send calc crc
|
//send calc crc
|
||||||
btlen tSend.txt,sys0
|
btlen tSend.txt,sys0
|
||||||
crcrest 1,0xffff // reset CRC
|
crcrest 1,0xffff // reset CRC
|
||||||
@@ -738,9 +738,15 @@ Timer tmLP
|
|||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(tTmp.txt=="light")
|
if(tTmp.txt=="light")
|
||||||
|
{
|
||||||
|
if(featNewSliders==1)
|
||||||
|
{
|
||||||
|
page popupLightNew
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
page popupLight
|
page popupLight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(tTmp.txt=="fan")
|
if(tTmp.txt=="fan")
|
||||||
{
|
{
|
||||||
page popupFan
|
page popupFan
|
||||||
@@ -847,6 +853,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",16
|
spstr strCommand.txt,bEntity1.txt,"~",16
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",17
|
spstr strCommand.txt,tTmp.txt,"~",17
|
||||||
@@ -868,6 +885,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",22
|
spstr strCommand.txt,bEntity2.txt,"~",22
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",23
|
spstr strCommand.txt,tTmp.txt,"~",23
|
||||||
@@ -889,6 +917,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",28
|
spstr strCommand.txt,bEntity3.txt,"~",28
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",29
|
spstr strCommand.txt,tTmp.txt,"~",29
|
||||||
@@ -910,6 +949,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",34
|
spstr strCommand.txt,bEntity4.txt,"~",34
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",35
|
spstr strCommand.txt,tTmp.txt,"~",35
|
||||||
@@ -931,6 +981,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",40
|
spstr strCommand.txt,bEntity5.txt,"~",40
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",41
|
spstr strCommand.txt,tTmp.txt,"~",41
|
||||||
@@ -952,6 +1013,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",46
|
spstr strCommand.txt,bEntity6.txt,"~",46
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",47
|
spstr strCommand.txt,tTmp.txt,"~",47
|
||||||
@@ -973,6 +1045,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity7.txt,"~",52
|
spstr strCommand.txt,bEntity7.txt,"~",52
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity7.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity7.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity7.font=sys1
|
||||||
|
substr bEntity7.txt,bEntity7.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity7,1
|
vis bEntity7,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",53
|
spstr strCommand.txt,tTmp.txt,"~",53
|
||||||
@@ -994,6 +1077,17 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity8.txt,"~",58
|
spstr strCommand.txt,bEntity8.txt,"~",58
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity8.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity8.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity8.font=sys1
|
||||||
|
substr bEntity8.txt,bEntity8.txt,0,sys0-2
|
||||||
|
}
|
||||||
vis bEntity8,1
|
vis bEntity8,1
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",59
|
spstr strCommand.txt,tTmp.txt,"~",59
|
||||||
|
|||||||
@@ -997,6 +997,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||||
vis bEntity1,1
|
vis bEntity1,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity1.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity1.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity1.font=sys1
|
||||||
|
substr bEntity1.txt,bEntity1.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",26
|
spstr strCommand.txt,tTmp.txt,"~",26
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1018,6 +1029,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||||
vis bEntity2,1
|
vis bEntity2,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity2.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity2.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity2.font=sys1
|
||||||
|
substr bEntity2.txt,bEntity2.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",32
|
spstr strCommand.txt,tTmp.txt,"~",32
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1039,6 +1061,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||||
vis bEntity3,1
|
vis bEntity3,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity3.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity3.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity3.font=sys1
|
||||||
|
substr bEntity3.txt,bEntity3.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",38
|
spstr strCommand.txt,tTmp.txt,"~",38
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1060,6 +1093,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||||
vis bEntity4,1
|
vis bEntity4,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity4.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity4.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity4.font=sys1
|
||||||
|
substr bEntity4.txt,bEntity4.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",44
|
spstr strCommand.txt,tTmp.txt,"~",44
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1081,6 +1125,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||||
vis bEntity5,1
|
vis bEntity5,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity5.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity5.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity5.font=sys1
|
||||||
|
substr bEntity5.txt,bEntity5.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",50
|
spstr strCommand.txt,tTmp.txt,"~",50
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1102,6 +1157,17 @@ Timer tmSerial
|
|||||||
// change icon
|
// change icon
|
||||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||||
vis bEntity6,1
|
vis bEntity6,1
|
||||||
|
// way to get force font adjustment
|
||||||
|
strlen bEntity6.txt,sys0
|
||||||
|
//check 2nd last char for ¬
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-2,1
|
||||||
|
if(tTmp.txt=="¬")
|
||||||
|
{
|
||||||
|
substr bEntity6.txt,tTmp.txt,sys0-1,1
|
||||||
|
covx tTmp.txt,sys1,0,0
|
||||||
|
bEntity6.font=sys1
|
||||||
|
substr bEntity6.txt,bEntity6.txt,0,sys0-2
|
||||||
|
}
|
||||||
// change icon color
|
// change icon color
|
||||||
spstr strCommand.txt,tTmp.txt,"~",56
|
spstr strCommand.txt,tTmp.txt,"~",56
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -1187,10 +1253,6 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
if(tId.txt=="cardLChart")
|
|
||||||
{
|
|
||||||
page cardLChart
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -964,6 +964,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="time")
|
if(tInstruction.txt=="time")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ Text tVersion
|
|||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : 51
|
Text : 53
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Picture p0
|
Picture p0
|
||||||
@@ -279,6 +279,12 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
|
// get feature flag popup
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt!="")
|
||||||
|
{
|
||||||
|
covx tTmp.txt,featNewSliders,0,0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,12 +16,13 @@ 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 tSend,0
|
vis tSend,0
|
||||||
vis tTmp,0
|
vis tTmp,0
|
||||||
vis tInstruction,0
|
vis tInstruction,0
|
||||||
vis tId,0
|
vis tId,0
|
||||||
vis bEffect,0
|
vis bEffect,0
|
||||||
vis hBrightness,0
|
|
||||||
//page open event
|
//page open event
|
||||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
// craft command
|
// craft command
|
||||||
@@ -38,16 +39,16 @@ Page popupLight
|
|||||||
prints tSend.txt,0
|
prints tSend.txt,0
|
||||||
prints crcval,2
|
prints crcval,2
|
||||||
//disable brightness by default
|
//disable brightness by default
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,1
|
vis hBrightness,0
|
||||||
//disable color temp by default
|
//disable color temp by default
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//disable color wheel components by default
|
//disable color wheel components by default
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
//vis t0,0
|
//vis t0,0
|
||||||
popupLight.bco=defaultBcoColor
|
popupLight.bco=defaultBcoColor
|
||||||
@@ -66,18 +67,14 @@ Page popupLight
|
|||||||
}
|
}
|
||||||
if(defaultBcoColor==0)
|
if(defaultBcoColor==0)
|
||||||
{
|
{
|
||||||
|
hBrightness.pic=24
|
||||||
|
hBrightness.pic1=25
|
||||||
|
hBrightness.pic2=15
|
||||||
hTempSlider.pic=16
|
hTempSlider.pic=16
|
||||||
hTempSlider.pic1=16
|
hTempSlider.pic1=17
|
||||||
|
hTempSlider.pic2=15
|
||||||
}
|
}
|
||||||
|
|
||||||
Postinitialize Event
|
|
||||||
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
|
||||||
|
|
||||||
Variable (int32) col
|
|
||||||
Attributes
|
|
||||||
Scope: local
|
|
||||||
Value: 65504
|
|
||||||
|
|
||||||
Variable (string) entn
|
Variable (string) entn
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -100,29 +97,56 @@ Variable (string) strCommand
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size: 500
|
Max. Text Size: 500
|
||||||
|
|
||||||
Variable (string) tId
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tInstruction
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 20
|
|
||||||
|
|
||||||
Variable (string) tSend
|
Variable (string) tSend
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 200
|
Max. Text Size: 200
|
||||||
|
|
||||||
Variable (string) tTmp
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Dragging : 0
|
||||||
Max. Text Size: 80
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : Color
|
||||||
|
Max. Text Size : 50
|
||||||
|
|
||||||
|
Text t1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : Brightness
|
||||||
|
Max. Text Size : 50
|
||||||
|
|
||||||
|
Text t2
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Text t3
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Text t4
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : Temperature
|
||||||
|
Max. Text Size : 50
|
||||||
|
|
||||||
Text tEntity
|
Text tEntity
|
||||||
Attributes
|
Attributes
|
||||||
@@ -133,6 +157,48 @@ Text tEntity
|
|||||||
Text : tEntity1
|
Text : tEntity1
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
|
Text tIcon1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : î´
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Text tId
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text tInstruction
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 20
|
||||||
|
|
||||||
|
Text tTmp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 80
|
||||||
|
|
||||||
|
Picture p0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
|
||||||
Picture pColorWheel
|
Picture pColorWheel
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -178,20 +244,6 @@ Slider hBrightness
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmCooldown.en=1
|
tmCooldown.en=1
|
||||||
tmCooldown.tim=2500
|
tmCooldown.tim=2500
|
||||||
//craft command
|
//craft command
|
||||||
@@ -280,8 +332,8 @@ Button bColor
|
|||||||
//enable color wheel
|
//enable color wheel
|
||||||
vis pColorWheel,1
|
vis pColorWheel,1
|
||||||
//disable color temp
|
//disable color temp
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
@@ -291,8 +343,8 @@ Button bColor
|
|||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
//enable color temp
|
//enable color temp
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -310,6 +362,7 @@ Button bEffect
|
|||||||
Touch Press Event
|
Touch Press Event
|
||||||
pageIcons.tTmp1.txt=tEntity.txt
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
pageIcons.tTmp2.txt=entn.txt
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
pageIcons.tTmp3.txt=tIcon1.txt
|
||||||
page popupInSel
|
page popupInSel
|
||||||
|
|
||||||
Dual-state Button btOnOff1
|
Dual-state Button btOnOff1
|
||||||
@@ -342,37 +395,13 @@ Dual-state Button btOnOff1
|
|||||||
Timer tmCooldown
|
Timer tmCooldown
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 300
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
tmCooldown.en=0
|
tmCooldown.en=0
|
||||||
|
|
||||||
Timer tmDrawCooldown
|
|
||||||
Attributes
|
|
||||||
Scope : local
|
|
||||||
Period (ms): 500
|
|
||||||
Enabled : no
|
|
||||||
|
|
||||||
Events
|
|
||||||
Timer Event
|
|
||||||
//draw black background
|
|
||||||
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
|
||||||
//draw draw colored bar at the position of the current brightness value
|
|
||||||
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
|
||||||
if(hBrightness.val>7)
|
|
||||||
{
|
|
||||||
//draw cursor
|
|
||||||
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
|
||||||
//paint corner
|
|
||||||
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
|
||||||
}
|
|
||||||
//paint corners
|
|
||||||
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
|
||||||
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
|
||||||
tmDrawCooldown.en=0
|
|
||||||
|
|
||||||
Timer tmSerial
|
Timer tmSerial
|
||||||
Attributes
|
Attributes
|
||||||
Scope : local
|
Scope : local
|
||||||
@@ -429,12 +458,11 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
// 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
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
col.val=sys0
|
tIcon1.pco=sys0
|
||||||
//tEntity.pco=sys0
|
|
||||||
// get Button State
|
// get Button State
|
||||||
spstr strCommand.txt,tTmp.txt,"~",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -443,26 +471,27 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,"~",5
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t1,0
|
vis t1,0
|
||||||
//vis t2,0
|
vis t2,0
|
||||||
vis hBrightness,0
|
vis hBrightness,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t1,1
|
vis t1,1
|
||||||
//vis t2,1
|
vis t2,1
|
||||||
vis hBrightness,1
|
vis hBrightness,1
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
hBrightness.val=sys0
|
hBrightness.val=sys0
|
||||||
tmDrawCooldown.en=1
|
}
|
||||||
tmDrawCooldown.tim=500
|
|
||||||
}
|
}
|
||||||
// get ColorTemp value
|
// get ColorTemp value
|
||||||
spstr strCommand.txt,tTmp.txt,"~",6
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
vis hTempSlider,0
|
vis hTempSlider,0
|
||||||
//vis t3,0
|
vis t3,0
|
||||||
//vis t4,0
|
vis t4,0
|
||||||
mode_temp.val=0
|
mode_temp.val=0
|
||||||
// mode == 1 is temp controls currently shown
|
// mode == 1 is temp controls currently shown
|
||||||
if(mode.val==1)
|
if(mode.val==1)
|
||||||
@@ -485,8 +514,8 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
mode_temp.val=1
|
mode_temp.val=1
|
||||||
vis hTempSlider,1
|
vis hTempSlider,1
|
||||||
//vis t3,1
|
vis t3,1
|
||||||
//vis t4,1
|
vis t4,1
|
||||||
if(tmCooldown.en==0)
|
if(tmCooldown.en==0)
|
||||||
{
|
{
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
@@ -505,12 +534,12 @@ Timer tmSerial
|
|||||||
// disable -> isn't supported
|
// disable -> isn't supported
|
||||||
if(tTmp.txt=="disable")
|
if(tTmp.txt=="disable")
|
||||||
{
|
{
|
||||||
//vis t0,0
|
vis t0,0
|
||||||
vis bColor,0
|
vis bColor,0
|
||||||
vis pColorWheel,0
|
vis pColorWheel,0
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//vis t0,1
|
vis t0,1
|
||||||
//only enable bColor button if color temp is also supported
|
//only enable bColor button if color temp is also supported
|
||||||
if(mode_temp.val==1)
|
if(mode_temp.val==1)
|
||||||
{
|
{
|
||||||
@@ -522,11 +551,11 @@ Timer tmSerial
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set t0 Color (Localization)
|
// set t0 Color (Localization)
|
||||||
//spstr strCommand.txt,t0.txt,"~",8
|
spstr strCommand.txt,t0.txt,"~",8
|
||||||
// set t4 Temperature (Localization)
|
// set t4 Temperature (Localization)
|
||||||
//spstr strCommand.txt,t4.txt,"~",9
|
spstr strCommand.txt,t4.txt,"~",9
|
||||||
// set t1 Brightness (Localization)
|
// set t1 Brightness (Localization)
|
||||||
//spstr strCommand.txt,t1.txt,"~",10
|
spstr strCommand.txt,t1.txt,"~",10
|
||||||
// activate effect button
|
// activate effect button
|
||||||
spstr strCommand.txt,tTmp.txt,"~",11
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
if(tTmp.txt=="enable")
|
if(tTmp.txt=="enable")
|
||||||
|
|||||||
689
HMI/n2t-out/popupLightNew.txt
Normal file
689
HMI/n2t-out/popupLightNew.txt
Normal file
@@ -0,0 +1,689 @@
|
|||||||
|
Page popupLightNew
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
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
|
||||||
|
//get entitiy name
|
||||||
|
tEntity.txt=pageIcons.tTmp1.txt
|
||||||
|
//get entity id
|
||||||
|
entn.txt=pageIcons.tTmp2.txt
|
||||||
|
vis tSend,0
|
||||||
|
vis tTmp,0
|
||||||
|
vis tInstruction,0
|
||||||
|
vis tId,0
|
||||||
|
vis bEffect,0
|
||||||
|
vis hBrightness,0
|
||||||
|
//page open event
|
||||||
|
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||||
|
// craft command
|
||||||
|
tSend.txt="event,pageOpenDetail,popupLight,"+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
|
||||||
|
//disable brightness by default
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,1
|
||||||
|
//disable color temp by default
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
//disable color wheel components by default
|
||||||
|
vis bColor,0
|
||||||
|
//vis t0,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
//vis t0,0
|
||||||
|
popupLightNew.bco=defaultBcoColor
|
||||||
|
for(sys0=0;sys0<27;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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(defaultBcoColor==0)
|
||||||
|
{
|
||||||
|
hTempSlider.pic=16
|
||||||
|
hTempSlider.pic1=16
|
||||||
|
}
|
||||||
|
|
||||||
|
Postinitialize Event
|
||||||
|
fill hBrightness.x,hBrightness.y,100,250,defaultBcoColor
|
||||||
|
|
||||||
|
Variable (int32) col
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 65504
|
||||||
|
|
||||||
|
Variable (string) entn
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Variable (int32) mode
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 1
|
||||||
|
|
||||||
|
Variable (int32) mode_temp
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Variable (string) strCommand
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 500
|
||||||
|
|
||||||
|
Variable (string) tId
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tInstruction
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 20
|
||||||
|
|
||||||
|
Variable (string) tSend
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 200
|
||||||
|
|
||||||
|
Variable (string) tTmp
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Text :
|
||||||
|
Max. Text Size: 80
|
||||||
|
|
||||||
|
Text tEntity
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID : disabled
|
||||||
|
Associated Keyboard: none
|
||||||
|
Text : tEntity1
|
||||||
|
Max. Text Size : 25
|
||||||
|
|
||||||
|
Picture pColorWheel
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorWheel,"
|
||||||
|
sys0=tch0
|
||||||
|
sys0=sys0-pColorWheel.x
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
sys0=tch1
|
||||||
|
sys0=sys0-pColorWheel.y
|
||||||
|
covx sys0,tTmp.txt,0,0
|
||||||
|
tSend.txt+=tTmp.txt
|
||||||
|
tSend.txt+="|"
|
||||||
|
covx pColorWheel.h,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hBrightness
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit: 100
|
||||||
|
Lower range limit: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
|
||||||
|
covx hBrightness.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Slider hTempSlider
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
Position : 50
|
||||||
|
Upper range limit: 100
|
||||||
|
Lower range limit: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Release Event
|
||||||
|
tmCooldown.en=1
|
||||||
|
tmCooldown.tim=2500
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
|
||||||
|
covx hTempSlider.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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 b0
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
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 bColor
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : î
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
mode.val=0
|
||||||
|
//enable color wheel
|
||||||
|
vis pColorWheel,1
|
||||||
|
//disable color temp
|
||||||
|
//vis t4,0
|
||||||
|
//vis t3,0
|
||||||
|
vis hTempSlider,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode.val=1
|
||||||
|
//disable color wheel
|
||||||
|
vis pColorWheel,0
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
//enable color temp
|
||||||
|
//vis t4,1
|
||||||
|
//vis t3,1
|
||||||
|
vis hTempSlider,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button bEffect
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text : 
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tEntity.txt
|
||||||
|
pageIcons.tTmp2.txt=entn.txt
|
||||||
|
page popupInSel
|
||||||
|
|
||||||
|
Dual-state Button btOnOff1
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Dragging : 0
|
||||||
|
Send Component ID: disabled
|
||||||
|
State : unpressed
|
||||||
|
Text :
|
||||||
|
Max. Text Size : 10
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
//craft command
|
||||||
|
tSend.txt="event,buttonPress2,"+entn.txt+","+"OnOff,"
|
||||||
|
covx btOnOff1.val,tTmp.txt,0,0
|
||||||
|
tSend.txt+=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
|
||||||
|
|
||||||
|
Timer tmCooldown
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 300
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
tmCooldown.en=0
|
||||||
|
|
||||||
|
Timer tmDrawCooldown
|
||||||
|
Attributes
|
||||||
|
Scope : local
|
||||||
|
Period (ms): 500
|
||||||
|
Enabled : no
|
||||||
|
|
||||||
|
Events
|
||||||
|
Timer Event
|
||||||
|
//draw black background
|
||||||
|
fill hBrightness.x,hBrightness.y,100,hBrightness.val*-25/10+250,8484
|
||||||
|
//draw draw colored bar at the position of the current brightness value
|
||||||
|
fill hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.val*25/10,col.val
|
||||||
|
if(hBrightness.val>7)
|
||||||
|
{
|
||||||
|
//draw cursor
|
||||||
|
fill hBrightness.x+25,hBrightness.val*-25/10+322,50,4,WHITE
|
||||||
|
//paint corner
|
||||||
|
xstr hBrightness.x,hBrightness.val*-25/10+314,100,hBrightness.h,7,8484,0,0,0,3,"a"
|
||||||
|
}
|
||||||
|
//paint corners
|
||||||
|
xstr hBrightness.x,hBrightness.y,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"a"
|
||||||
|
xstr hBrightness.x,hBrightness.y+hBrightness.h-15,100,hBrightness.h,7,defaultBcoColor,0,0,0,3,"b"
|
||||||
|
tmDrawCooldown.en=0
|
||||||
|
|
||||||
|
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
|
||||||
|
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
|
||||||
|
col.val=sys0
|
||||||
|
//tEntity.pco=sys0
|
||||||
|
// get Button State
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
btOnOff1.val=sys0
|
||||||
|
// get Brightness value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",5
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t1,0
|
||||||
|
//vis t2,0
|
||||||
|
vis hBrightness,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t1,1
|
||||||
|
//vis t2,1
|
||||||
|
vis hBrightness,1
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hBrightness.val=sys0
|
||||||
|
tmDrawCooldown.en=1
|
||||||
|
tmDrawCooldown.tim=500
|
||||||
|
}
|
||||||
|
// get ColorTemp value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",6
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
vis hTempSlider,0
|
||||||
|
//vis t3,0
|
||||||
|
//vis t4,0
|
||||||
|
mode_temp.val=0
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else if(tTmp.txt=="unknown") // temp supported, but not in color mode
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
// mode == 1 is temp controls currently shown
|
||||||
|
if(mode.val==1)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
mode_temp.val=1
|
||||||
|
vis hTempSlider,1
|
||||||
|
//vis t3,1
|
||||||
|
//vis t4,1
|
||||||
|
if(tmCooldown.en==0)
|
||||||
|
{
|
||||||
|
covx tTmp.txt,sys0,0,0
|
||||||
|
hTempSlider.val=sys0
|
||||||
|
}
|
||||||
|
// mode == 0 is rgb controls currently shown
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
// switch mode
|
||||||
|
click bColor,1
|
||||||
|
click bColor,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// get Color value
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
|
// disable -> isn't supported
|
||||||
|
if(tTmp.txt=="disable")
|
||||||
|
{
|
||||||
|
//vis t0,0
|
||||||
|
vis bColor,0
|
||||||
|
vis pColorWheel,0
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//vis t0,1
|
||||||
|
//only enable bColor button if color temp is also supported
|
||||||
|
if(mode_temp.val==1)
|
||||||
|
{
|
||||||
|
vis bColor,1
|
||||||
|
}
|
||||||
|
if(mode.val==0)
|
||||||
|
{
|
||||||
|
vis pColorWheel,1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// set t0 Color (Localization)
|
||||||
|
//spstr strCommand.txt,t0.txt,"~",8
|
||||||
|
// set t4 Temperature (Localization)
|
||||||
|
//spstr strCommand.txt,t4.txt,"~",9
|
||||||
|
// set t1 Brightness (Localization)
|
||||||
|
//spstr strCommand.txt,t1.txt,"~",10
|
||||||
|
// activate effect button
|
||||||
|
spstr strCommand.txt,tTmp.txt,"~",11
|
||||||
|
if(tTmp.txt=="enable")
|
||||||
|
{
|
||||||
|
vis bEffect,1
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
vis bEffect,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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=="cardGrid2")
|
||||||
|
{
|
||||||
|
page cardGrid2
|
||||||
|
}
|
||||||
|
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(tId.txt=="cardChart")
|
||||||
|
{
|
||||||
|
page cardChart
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 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)
|
||||||
|
{
|
||||||
|
sleepValue+=1
|
||||||
|
if(sleepTimeout<=sleepValue)
|
||||||
|
{
|
||||||
|
sleepValue=0
|
||||||
|
click b0,1
|
||||||
|
click b0,0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TouchCap tc0
|
||||||
|
Attributes
|
||||||
|
Scope: local
|
||||||
|
Value: 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
sleepValue=0
|
||||||
|
|
||||||
@@ -352,7 +352,7 @@ Timer tmSerial
|
|||||||
covx tTmp.txt,defaultFontColor,0,0
|
covx tTmp.txt,defaultFontColor,0,0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout2")
|
||||||
{
|
{
|
||||||
//set timeout to global var
|
//set timeout to global var
|
||||||
spstr strCommand.txt,tTmp.txt,"~",1
|
spstr strCommand.txt,tTmp.txt,"~",1
|
||||||
|
|||||||
@@ -828,6 +828,10 @@ Timer tmSerial
|
|||||||
{
|
{
|
||||||
page cardChart
|
page cardChart
|
||||||
}
|
}
|
||||||
|
if(tId.txt=="cardLChart")
|
||||||
|
{
|
||||||
|
page cardLChart
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(tInstruction.txt=="timeout")
|
if(tInstruction.txt=="timeout")
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
@@ -26,8 +26,8 @@ NsPanel needs to be flashed with Tasmota (or through a 3rd-party Component with
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Entities Page with support for cover, switch, input_boolean, binary_sensor, sensor, button, number, scenes, script, input_button and light, input_text (read-only), lock, fan and automation
|
- Entities Page with support for cover, switch, input_boolean, binary_sensor, sensor, button, number, scenes, script, input_button and light, input_text (read-only), lock, fan, timer and automation
|
||||||
- Grid Page with support for cover, switch, input_boolean, button, scenes, light, lock and automation
|
- Grid Page with support for cover, switch, input_boolean, button, scenes, light, lock, timer and automation
|
||||||
- Detail Pages for Lights (Brightness, Temperature and Color of the Light) and Covers (Position)
|
- Detail Pages for Lights (Brightness, Temperature and Color of the Light) and Covers (Position)
|
||||||
- Thermostat Page
|
- Thermostat Page
|
||||||
- Media Player Card
|
- Media Player Card
|
||||||
@@ -42,11 +42,11 @@ To control the panel and update it with content from HomeAssistant, there is an
|
|||||||
|
|
||||||
See the following picture to get an idea of the look of this firmware for NSPanel.
|
See the following picture to get an idea of the look of this firmware for NSPanel.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Some (not all) screenshots from the US Portrait Version:
|
Some (not all) screenshots from the US Portrait Version:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ class Entity(object):
|
|||||||
self.assumedState = entity_input_config.get("assumed_state", False)
|
self.assumedState = entity_input_config.get("assumed_state", False)
|
||||||
self.stype = entity_input_config.get("type")
|
self.stype = entity_input_config.get("type")
|
||||||
self.value = entity_input_config.get("value")
|
self.value = entity_input_config.get("value")
|
||||||
|
self.font = entity_input_config.get("font")
|
||||||
self.data = entity_input_config.get("data", {})
|
self.data = entity_input_config.get("data", {})
|
||||||
self.entity_input_config = entity_input_config
|
self.entity_input_config = entity_input_config
|
||||||
|
|
||||||
@@ -126,6 +127,7 @@ class LuiBackendConfig(object):
|
|||||||
'sleepBrightness': 20,
|
'sleepBrightness': 20,
|
||||||
'screenBrightness': 100,
|
'screenBrightness': 100,
|
||||||
'defaultBackgroundColor': "ha-dark",
|
'defaultBackgroundColor': "ha-dark",
|
||||||
|
'featureExperimentalSliders': False,
|
||||||
'sleepTracking': None,
|
'sleepTracking': None,
|
||||||
'sleepTrackingZones': ["not_home", "off"],
|
'sleepTrackingZones': ["not_home", "off"],
|
||||||
'sleepOverride': None,
|
'sleepOverride': None,
|
||||||
|
|||||||
@@ -85,7 +85,11 @@ class LuiController(object):
|
|||||||
elif type(defaultBackgroundColor) is list:
|
elif type(defaultBackgroundColor) is list:
|
||||||
dbc = rgb_dec565(defaultBackgroundColor)
|
dbc = rgb_dec565(defaultBackgroundColor)
|
||||||
|
|
||||||
self._send_mqtt_msg(f"dimmode~{sleepBrightness}~{brightness}~{dbc}")
|
featureExperimentalSliders=0
|
||||||
|
if self._config.get("featureExperimentalSliders"):
|
||||||
|
featureExperimentalSliders=1
|
||||||
|
|
||||||
|
self._send_mqtt_msg(f"dimmode~{sleepBrightness}~{brightness}~{dbc}~~{featureExperimentalSliders}")
|
||||||
|
|
||||||
def calc_current_brightness(self, sleep_brightness_config):
|
def calc_current_brightness(self, sleep_brightness_config):
|
||||||
current_screensaver_brightness = 20
|
current_screensaver_brightness = 20
|
||||||
@@ -145,8 +149,8 @@ class LuiController(object):
|
|||||||
|
|
||||||
items = self._config.get_all_entity_names()
|
items = self._config.get_all_entity_names()
|
||||||
apis.ha_api.log(f"gtest123: {items}")
|
apis.ha_api.log(f"gtest123: {items}")
|
||||||
prefixes = ("navigate.")
|
prefixes = ("navigate.", "delete", "iText")
|
||||||
items = [x for x in items if not x.startswith(prefixes)]
|
items = [x for x in items if not (x is None or x.startswith(prefixes))]
|
||||||
apis.ha_api.log(f"Registering callbacks for the following items: {items}")
|
apis.ha_api.log(f"Registering callbacks for the following items: {items}")
|
||||||
for item in items:
|
for item in items:
|
||||||
if apis.ha_api.entity_exists(item):
|
if apis.ha_api.entity_exists(item):
|
||||||
@@ -160,21 +164,22 @@ class LuiController(object):
|
|||||||
res_uuid = "uuid.notfound"
|
res_uuid = "uuid.notfound"
|
||||||
if entity in sum(entities_on_card.values(), []):
|
if entity in sum(entities_on_card.values(), []):
|
||||||
for uuid, names in entities_on_card.items():
|
for uuid, names in entities_on_card.items():
|
||||||
apis.ha_api.log(f"test124 items: {entities_on_card.items()} names: {names}")
|
#apis.ha_api.log(f"test124 items: {entities_on_card.items()} names: {names}")
|
||||||
|
#apis.ha_api.log(f"State change callback matched for entity on current page: {names}")
|
||||||
if entity in names:
|
if entity in names:
|
||||||
res_uuid = uuid
|
res_uuid = uuid
|
||||||
|
|
||||||
#apis.ha_api.log(f"Callback Entity is on current page: {entity}")
|
#apis.ha_api.log(f"Callback Entity is on current page: {entity}")
|
||||||
self._pages_gen.render_card(self._current_card, send_page_type=False)
|
self._pages_gen.render_card(self._current_card, send_page_type=False)
|
||||||
# send detail page update, just in case
|
# send detail page update, just in case
|
||||||
if self._current_card.cardType in ["cardGrid", "cardEntities", "cardMedia"]:
|
if self._current_card.cardType in ["cardGrid", "cardGrid2", "cardEntities", "cardMedia"]:
|
||||||
if entity.startswith("light"):
|
if entity.startswith("light"):
|
||||||
self._pages_gen.generate_light_detail_page(res_uuid)
|
self._pages_gen.generate_light_detail_page(res_uuid)
|
||||||
if entity.startswith("cover"):
|
if entity.startswith("cover"):
|
||||||
self._pages_gen.generate_shutter_detail_page(entity)
|
self._pages_gen.generate_shutter_detail_page(entity)
|
||||||
if entity.startswith("fan"):
|
if entity.startswith("fan"):
|
||||||
self._pages_gen.generate_fan_detail_page(entity)
|
self._pages_gen.generate_fan_detail_page(entity)
|
||||||
if entity.startswith("input_select"):
|
if entity.startswith("input_select") or entity.startswith("select"):
|
||||||
self._pages_gen.generate_input_select_detail_page(entity)
|
self._pages_gen.generate_input_select_detail_page(entity)
|
||||||
if entity.startswith("media_player"):
|
if entity.startswith("media_player"):
|
||||||
self._pages_gen.generate_input_select_detail_page(entity)
|
self._pages_gen.generate_input_select_detail_page(entity)
|
||||||
@@ -274,7 +279,7 @@ class LuiController(object):
|
|||||||
apis.ha_api.get_entity(entity_id).call_service("close_cover_tilt")
|
apis.ha_api.get_entity(entity_id).call_service("close_cover_tilt")
|
||||||
if button_type == "tiltSlider":
|
if button_type == "tiltSlider":
|
||||||
pos = int(value)
|
pos = int(value)
|
||||||
apis.ha_api.get_entity(entity_id).call_service("set_cover_tilt_position", position=pos)
|
apis.ha_api.get_entity(entity_id).call_service("set_cover_tilt_position", tilt_position=pos)
|
||||||
|
|
||||||
|
|
||||||
if button_type == "button":
|
if button_type == "button":
|
||||||
|
|||||||
@@ -178,7 +178,10 @@ class LuiPagesGen(object):
|
|||||||
name = apis.ha_api.render_template(item.nameOverride)
|
name = apis.ha_api.render_template(item.nameOverride)
|
||||||
|
|
||||||
# type of the item is the string before the "." in the entityId
|
# type of the item is the string before the "." in the entityId
|
||||||
|
if entityId is not None:
|
||||||
entityType = entityId.split(".")[0]
|
entityType = entityId.split(".")[0]
|
||||||
|
else:
|
||||||
|
entityType = "delete"
|
||||||
|
|
||||||
apis.ha_api.log(f"Generating item for {entityId} with type {entityType}", level="DEBUG")
|
apis.ha_api.log(f"Generating item for {entityId} with type {entityType}", level="DEBUG")
|
||||||
|
|
||||||
@@ -209,7 +212,7 @@ class LuiPagesGen(object):
|
|||||||
if status_entity:
|
if status_entity:
|
||||||
icon_res = get_icon_ha(item.status, overwrite=icon)
|
icon_res = get_icon_ha(item.status, overwrite=icon)
|
||||||
icon_color = self.get_entity_color(status_entity, ha_type=item.status.split(".")[0], overwrite=colorOverride)
|
icon_color = self.get_entity_color(status_entity, ha_type=item.status.split(".")[0], overwrite=colorOverride)
|
||||||
if item.status.startswith("sensor") and cardType == "cardGrid" and item.iconOverride is None:
|
if item.status.startswith("sensor") and (cardType == "cardGrid" or cardType == "cardGrid2") and item.iconOverride is None:
|
||||||
icon_res = status_entity.state[:4]
|
icon_res = status_entity.state[:4]
|
||||||
if icon_res[-1] == ".":
|
if icon_res[-1] == ".":
|
||||||
icon_res = icon_res[:-1]
|
icon_res = icon_res[:-1]
|
||||||
@@ -233,7 +236,7 @@ class LuiPagesGen(object):
|
|||||||
if status_entity:
|
if status_entity:
|
||||||
icon_id = get_icon_ha(item.status, overwrite=icon)
|
icon_id = get_icon_ha(item.status, overwrite=icon)
|
||||||
icon_color = self.get_entity_color(status_entity, ha_type=item.status.split(".")[0], overwrite=colorOverride)
|
icon_color = self.get_entity_color(status_entity, ha_type=item.status.split(".")[0], overwrite=colorOverride)
|
||||||
if item.status.startswith("sensor") and cardType == "cardGrid" and item.iconOverride is None:
|
if item.status.startswith("sensor") and (cardType == "cardGrid" or cardType == "cardGrid2") and item.iconOverride is None:
|
||||||
icon_id = status_entity.state[:4]
|
icon_id = status_entity.state[:4]
|
||||||
if icon_id[-1] == ".":
|
if icon_id[-1] == ".":
|
||||||
icon_id = icon_id[:-1]
|
icon_id = icon_id[:-1]
|
||||||
@@ -296,7 +299,7 @@ class LuiPagesGen(object):
|
|||||||
value = entity.state
|
value = entity.state
|
||||||
|
|
||||||
# limit value to 4 chars on us-p
|
# limit value to 4 chars on us-p
|
||||||
if self._config.get("model") == "us-p":
|
if self._config.get("model") == "us-p" and cardType == "cardEntities":
|
||||||
value = entity.state[:4]
|
value = entity.state[:4]
|
||||||
if value[-1] == ".":
|
if value[-1] == ".":
|
||||||
value = value[:-1]
|
value = value[:-1]
|
||||||
@@ -306,7 +309,7 @@ class LuiPagesGen(object):
|
|||||||
value = value + unit_of_measurement
|
value = value + unit_of_measurement
|
||||||
if entityType == "binary_sensor":
|
if entityType == "binary_sensor":
|
||||||
value = get_translation(self._locale, f"backend.component.binary_sensor.state.{device_class}.{entity.state}")
|
value = get_translation(self._locale, f"backend.component.binary_sensor.state.{device_class}.{entity.state}")
|
||||||
if cardType == "cardGrid" and entityType == "sensor" and icon is None:
|
if (cardType == "cardGrid" or cardType == "cardGrid2") and entityType == "sensor" and icon is None:
|
||||||
icon_id = entity.state[:4]
|
icon_id = entity.state[:4]
|
||||||
if icon_id[-1] == ".":
|
if icon_id[-1] == ".":
|
||||||
icon_id = icon_id[:-1]
|
icon_id = icon_id[:-1]
|
||||||
@@ -373,10 +376,10 @@ class LuiPagesGen(object):
|
|||||||
global babel_spec
|
global babel_spec
|
||||||
if babel_spec is not None:
|
if babel_spec is not None:
|
||||||
dateformat = "E" if item.nameOverride is None else item.nameOverride
|
dateformat = "E" if item.nameOverride is None else item.nameOverride
|
||||||
name = babel.dates.format_datetime(fdate, dateformat, locale=self._locale)
|
name = babel.dates.format_datetime(fdate.astimezone(), dateformat, locale=self._locale)
|
||||||
else:
|
else:
|
||||||
dateformat = "%a" if item.nameOverride is None else item.nameOverride
|
dateformat = "%a" if item.nameOverride is None else item.nameOverride
|
||||||
name = fdate.strftime(dateformat)
|
name = fdate.astimezone().strftime(dateformat)
|
||||||
icon_id = get_icon_ha(entityId, stateOverwrite=entity.attributes.forecast[item.stype]['condition'])
|
icon_id = get_icon_ha(entityId, stateOverwrite=entity.attributes.forecast[item.stype]['condition'])
|
||||||
value = f'{entity.attributes.forecast[item.stype].get("temperature", "")}{unit}'
|
value = f'{entity.attributes.forecast[item.stype].get("temperature", "")}{unit}'
|
||||||
color = self.get_entity_color(entity, ha_type=entityType, stateOverwrite=entity.attributes.forecast[item.stype]['condition'], overwrite=colorOverride)
|
color = self.get_entity_color(entity, ha_type=entityType, stateOverwrite=entity.attributes.forecast[item.stype]['condition'], overwrite=colorOverride)
|
||||||
@@ -387,7 +390,10 @@ class LuiPagesGen(object):
|
|||||||
# Overwrite for value
|
# Overwrite for value
|
||||||
ovalue = item.value
|
ovalue = item.value
|
||||||
if ovalue is not None:
|
if ovalue is not None:
|
||||||
value = apis.ha_api.render_template(ovalue)
|
splitted_string = ovalue.rpartition('}')
|
||||||
|
template_string = f"{splitted_string[0]}{splitted_string[1]}"
|
||||||
|
templates_result = apis.ha_api.render_template(template_string)
|
||||||
|
value = f"{templates_result}{splitted_string[2]}"
|
||||||
if self._locale == "he_IL" and any("\u0590" <= c <= "\u05EA" for c in name):
|
if self._locale == "he_IL" and any("\u0590" <= c <= "\u05EA" for c in name):
|
||||||
name = name[::-1]
|
name = name[::-1]
|
||||||
# use uuid instead for some types and probably expand on this in future
|
# use uuid instead for some types and probably expand on this in future
|
||||||
@@ -399,6 +405,20 @@ class LuiPagesGen(object):
|
|||||||
entityTypePanel = ""
|
entityTypePanel = ""
|
||||||
if "entityId" in mask:
|
if "entityId" in mask:
|
||||||
entityId = ""
|
entityId = ""
|
||||||
|
# change font on cardgrid
|
||||||
|
if item.font:
|
||||||
|
font = 0
|
||||||
|
if item.font == "small":
|
||||||
|
font = 0
|
||||||
|
elif item.font == "medium-icon":
|
||||||
|
font = 1
|
||||||
|
elif item.font == "medium":
|
||||||
|
font = 2
|
||||||
|
elif item.font == "large":
|
||||||
|
font = 3
|
||||||
|
elif isinstance(item.font, int):
|
||||||
|
font = item.font
|
||||||
|
icon_id += f'{icon_id}¬{font}'
|
||||||
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"
|
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"
|
||||||
|
|
||||||
def generate_entities_page(self, navigation, heading, items, cardType, tempUnit):
|
def generate_entities_page(self, navigation, heading, items, cardType, tempUnit):
|
||||||
|
|||||||
@@ -516,6 +516,9 @@
|
|||||||
"last_triggered": "Naposledy spustené",
|
"last_triggered": "Naposledy spustené",
|
||||||
"trigger": "Spustiť akcie"
|
"trigger": "Spustiť akcie"
|
||||||
},
|
},
|
||||||
|
"button": {
|
||||||
|
"press": "stlač"
|
||||||
|
},
|
||||||
"camera": {
|
"camera": {
|
||||||
"not_available": "Obrázok nie je k dispozícii"
|
"not_available": "Obrázok nie je k dispozícii"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -27,14 +27,14 @@ class NsPanelLovelaceUIManager(hass.Hass):
|
|||||||
controller = LuiController(cfg, mqttsend.send_mqtt_msg)
|
controller = LuiController(cfg, mqttsend.send_mqtt_msg)
|
||||||
|
|
||||||
desired_tasmota_driver_version = 8
|
desired_tasmota_driver_version = 8
|
||||||
desired_display_firmware_version = 51
|
desired_display_firmware_version = 52
|
||||||
version = "v4.1.1"
|
version = "v4.2.0"
|
||||||
|
|
||||||
model = cfg.get("model")
|
model = cfg.get("model")
|
||||||
if model == "us-l":
|
if model == "us-l":
|
||||||
desired_display_firmware_url = cfg._config.get("displayURL-US-L", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-us-l-{version}.tft")
|
desired_display_firmware_url = cfg._config.get("displayURL-US-L", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-us-l-{version}.tft")
|
||||||
elif model == "us-p":
|
elif model == "us-p":
|
||||||
desired_display_firmware_url = cfg._config.get("displayURL-US-L", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-us-p-{version}.tft")
|
desired_display_firmware_url = cfg._config.get("displayURL-US-P", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-us-p-{version}.tft")
|
||||||
else:
|
else:
|
||||||
desired_display_firmware_url = cfg._config.get("displayURL-EU", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-{version}.tft")
|
desired_display_firmware_url = cfg._config.get("displayURL-EU", f"http://nspanel.pky.eu/lovelace-ui/github/nspanel-{version}.tft")
|
||||||
desired_tasmota_driver_url = cfg._config.get("berryURL", "https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be")
|
desired_tasmota_driver_url = cfg._config.get("berryURL", "https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be")
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ key | optional | type | default | description
|
|||||||
`status` | True | string | `None` | Only valid for navigate and service items, adds a entity to track state for the icon
|
`status` | True | string | `None` | Only valid for navigate and service items, adds a entity to track state for the icon
|
||||||
`assumed_state` | True | string | `None` | Only for cover items, up, down and stop buttons are always shown
|
`assumed_state` | True | string | `None` | Only for cover items, up, down and stop buttons are always shown
|
||||||
`action_name` | True | string | `None` | Only valid for script; Button label
|
`action_name` | True | string | `None` | Only valid for script; Button label
|
||||||
|
`font` | True | string | `None` | Used to change the font for cardGrid Icons; valid values are (`small`, `medium-icon` and `medium`). Currently only supported for homeassistant entities and not for internal ones.
|
||||||
`effectList` | True | string | `None` | Only valid for light; for example `[Android, Aurora` (fav list for effects)
|
`effectList` | True | string | `None` | Only valid for light; for example `[Android, Aurora` (fav list for effects)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
docs/img/popupLight.gif
Normal file
BIN
docs/img/popupLight.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 340 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 328 KiB After Width: | Height: | Size: 346 KiB |
2
info.md
2
info.md
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
Checkout [README](https://github.com/joBr99/nspanel-lovelace-ui/blob/main/README.md) for detailed Instructions.
|
Checkout [README](https://github.com/joBr99/nspanel-lovelace-ui/blob/main/README.md) for detailed Instructions.
|
||||||
|
|
||||||

|

|
||||||
73
ioBroker/Blockly/Index-Jumpmenue_inSelpopup.xml
Normal file
73
ioBroker/Blockly/Index-Jumpmenue_inSelpopup.xml
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||||
|
<variables>
|
||||||
|
<variable id="8.MeiSf}G,~KvGdz(Y[*">VAR_JSON</variable>
|
||||||
|
</variables>
|
||||||
|
<block type="on" id="HKT1p7BI4woOVmm17T8m" x="-613" y="-87">
|
||||||
|
<field name="OID">0_userdata.0.NSPanelOwn.Index_Panel_0</field>
|
||||||
|
<field name="CONDITION">any</field>
|
||||||
|
<field name="ACK_CONDITION"></field>
|
||||||
|
<statement name="STATEMENT">
|
||||||
|
<block type="variables_set" id="r1+[uN0%M;-wa|l`%v6G">
|
||||||
|
<field name="VAR" id="8.MeiSf}G,~KvGdz(Y[*">VAR_JSON</field>
|
||||||
|
<value name="VALUE">
|
||||||
|
<block type="text" id="ju}XvP0?t2=24ucjUz7m">
|
||||||
|
<field name="TEXT"></field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
<next>
|
||||||
|
<block type="text_append" id="Q}NVo%Ty,+r`UfRxS={%" inline="false">
|
||||||
|
<field name="VAR" id="8.MeiSf}G,~KvGdz(Y[*">VAR_JSON</field>
|
||||||
|
<value name="TEXT">
|
||||||
|
<shadow type="text" id="fX~KkbKvyq8jGR8z2i-g">
|
||||||
|
<field name="TEXT"></field>
|
||||||
|
</shadow>
|
||||||
|
<block type="text_join" id="SCPmp{Y5SLU-hG{0R#-v">
|
||||||
|
<mutation items="3"></mutation>
|
||||||
|
<value name="ADD0">
|
||||||
|
<block type="text" id="AH4evE[%N4=aL,#[Jv*2">
|
||||||
|
<field name="TEXT">{"pagetype": "page", "pageId": </field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
<value name="ADD1">
|
||||||
|
<block type="on_source" id=",hw],YkR(T-J4%ID7zT^">
|
||||||
|
<field name="ATTR">state.val</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
<value name="ADD2">
|
||||||
|
<block type="text" id="FHXU)xy3L$KsU0:_SnTT">
|
||||||
|
<field name="TEXT">}</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
<next>
|
||||||
|
<block type="control" id="FqLcGX!aLp~ZPS;al0Eq">
|
||||||
|
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
|
||||||
|
<field name="OID">0_userdata.0.NSPanel.1.PageNavi</field>
|
||||||
|
<field name="WITH_DELAY">FALSE</field>
|
||||||
|
<value name="VALUE">
|
||||||
|
<block type="variables_get" id="jA(/eL:E0n!XK6LF(s+i">
|
||||||
|
<field name="VAR" id="8.MeiSf}G,~KvGdz(Y[*">VAR_JSON</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
<next>
|
||||||
|
<block type="debug" id="VrBlp!NGe/!s#*A=[+;e">
|
||||||
|
<field name="Severity">log</field>
|
||||||
|
<value name="TEXT">
|
||||||
|
<shadow type="text" id="FdI3^B=0$R!A-U}A95_u">
|
||||||
|
<field name="TEXT">test</field>
|
||||||
|
</shadow>
|
||||||
|
<block type="variables_get" id="#Wi?__q?}F5PyH=^Wg8N">
|
||||||
|
<field name="VAR" id="8.MeiSf}G,~KvGdz(Y[*">VAR_JSON</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
</block>
|
||||||
|
</next>
|
||||||
|
</block>
|
||||||
|
</next>
|
||||||
|
</block>
|
||||||
|
</next>
|
||||||
|
</block>
|
||||||
|
</statement>
|
||||||
|
</block>
|
||||||
|
</xml>
|
||||||
80
ioBroker/Blockly/ShellyDuo_inkl_InSel.xml
Normal file
80
ioBroker/Blockly/ShellyDuo_inkl_InSel.xml
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||||
|
<block type="on_ext" id="9wNX|e1Wa60!I31/|Aof" x="913" y="63">
|
||||||
|
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
|
||||||
|
<field name="CONDITION">ne</field>
|
||||||
|
<field name="ACK_CONDITION"></field>
|
||||||
|
<value name="OID0">
|
||||||
|
<shadow type="field_oid" id="~B8g0Vza1w3gwwUhg-XE">
|
||||||
|
<field name="oid">0_userdata.0.NSPanelOwn.ShellyDuo01</field>
|
||||||
|
</shadow>
|
||||||
|
</value>
|
||||||
|
<statement name="STATEMENT">
|
||||||
|
<block type="controls_if" id="2y2I?U.?._?Rs8VVTg8s">
|
||||||
|
<mutation else="1"></mutation>
|
||||||
|
<value name="IF0">
|
||||||
|
<block type="logic_compare" id="wd}~gZNYgMWH;Vpyt.Z!">
|
||||||
|
<field name="OP">EQ</field>
|
||||||
|
<value name="A">
|
||||||
|
<block type="on_source" id="I5I|Z_(%zsp.Tt/^{MXJ">
|
||||||
|
<field name="ATTR">state.val</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
<value name="B">
|
||||||
|
<block type="math_number" id="_}(Q_GkaH$I2Ed4Hh$cS">
|
||||||
|
<field name="NUM">0</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
<statement name="DO0">
|
||||||
|
<block type="control" id="!vF}Wk3uRk!VIa@alREh">
|
||||||
|
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
|
||||||
|
<field name="OID">shelly.0.SHCB-1#3494546E9445#1.Sys.deviceMode</field>
|
||||||
|
<field name="WITH_DELAY">FALSE</field>
|
||||||
|
<value name="VALUE">
|
||||||
|
<block type="text" id="1S}JM+$=zl|.zMfSo15r">
|
||||||
|
<field name="TEXT">color</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
</block>
|
||||||
|
</statement>
|
||||||
|
<statement name="ELSE">
|
||||||
|
<block type="control" id="g=*}TwhDS]r^Zh(2{K/.">
|
||||||
|
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
|
||||||
|
<field name="OID">shelly.0.SHCB-1#3494546E9445#1.Sys.deviceMode</field>
|
||||||
|
<field name="WITH_DELAY">FALSE</field>
|
||||||
|
<value name="VALUE">
|
||||||
|
<block type="text" id="=8fpx/Lj~EFU=mD!y3rp">
|
||||||
|
<field name="TEXT">white</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
</block>
|
||||||
|
</statement>
|
||||||
|
</block>
|
||||||
|
</statement>
|
||||||
|
<next>
|
||||||
|
<block type="on_ext" id="lBx%I5ZiCY@{8lAQrv|t">
|
||||||
|
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
|
||||||
|
<field name="CONDITION">ne</field>
|
||||||
|
<field name="ACK_CONDITION"></field>
|
||||||
|
<value name="OID0">
|
||||||
|
<shadow type="field_oid" id="/{L5e|w2A:u!Co672?8w">
|
||||||
|
<field name="oid">shelly.0.SHCB-1#3494546E9445#1.lights.brightness</field>
|
||||||
|
</shadow>
|
||||||
|
</value>
|
||||||
|
<statement name="STATEMENT">
|
||||||
|
<block type="control" id="~%_(9UX1b5y]D6wSHo6L">
|
||||||
|
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
|
||||||
|
<field name="OID">shelly.0.SHCB-1#3494546E9445#1.lights.gain</field>
|
||||||
|
<field name="WITH_DELAY">FALSE</field>
|
||||||
|
<value name="VALUE">
|
||||||
|
<block type="on_source" id="E?2yJP9CJB0]:9a!GAt6">
|
||||||
|
<field name="ATTR">state.val</field>
|
||||||
|
</block>
|
||||||
|
</value>
|
||||||
|
</block>
|
||||||
|
</statement>
|
||||||
|
</block>
|
||||||
|
</next>
|
||||||
|
</block>
|
||||||
|
</xml>
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user