mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 06:27:01 +01:00
Compare commits
919 Commits
v4.1.2
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
081d0c5a3b | ||
|
|
98f70b20f0 | ||
|
|
4c02b5bc26 | ||
|
|
fb841abf45 | ||
|
|
bff89f0364 | ||
|
|
27ccc0cfe7 | ||
|
|
22a54c88c8 | ||
|
|
87c58cc62d | ||
|
|
1ee19213bd | ||
|
|
0c3d173f40 | ||
|
|
cc201fb7fe | ||
|
|
44d2c6fbfc | ||
|
|
9cd2f6a464 | ||
|
|
7473d13762 | ||
|
|
f57b3fe8e4 | ||
|
|
9b1558c9a6 | ||
|
|
6181dec958 | ||
|
|
a94cf0cef3 | ||
|
|
d01ccede57 | ||
|
|
65be5ffeb0 | ||
|
|
d53afb0b20 | ||
|
|
9822870fc9 | ||
|
|
8a54d1422c | ||
|
|
3f573557f0 | ||
|
|
c2ca3b26d1 | ||
|
|
476a252a92 | ||
|
|
0af779973b | ||
|
|
8e0609a781 | ||
|
|
5dab816259 | ||
|
|
5f8409f5f1 | ||
|
|
3d85e86a95 | ||
|
|
85de880cda | ||
|
|
98269b19aa | ||
|
|
d77382ee88 | ||
|
|
e925d133d2 | ||
|
|
5ef3e8132b | ||
|
|
662b79a389 | ||
|
|
c984ff53a3 | ||
|
|
f8b748a418 | ||
|
|
bc31670760 | ||
|
|
cbf6abf4dd | ||
|
|
5c85e4a6e1 | ||
|
|
cbede2412e | ||
|
|
82d22743cc | ||
|
|
640d0dfa14 | ||
|
|
ccc62d1e6a | ||
|
|
6cec0245a3 | ||
|
|
f3c98adf06 | ||
|
|
f4487e4285 | ||
|
|
8e2780b2cb | ||
|
|
0372221973 | ||
|
|
947ef2d592 | ||
|
|
a1f39236c4 | ||
|
|
4cdd1ed586 | ||
|
|
1836d29931 | ||
|
|
fca29cfbd8 | ||
|
|
b27910c1af | ||
|
|
f046ae6031 | ||
|
|
4475ab1277 | ||
|
|
9afdb71a7c | ||
|
|
c84d78551f | ||
|
|
5e2a4b17ae | ||
|
|
acdba468b3 | ||
|
|
5803a489f5 | ||
|
|
54c8d302a8 | ||
|
|
8059905579 | ||
|
|
4dc39c1b79 | ||
|
|
16909f7e7f | ||
|
|
397932a6bc | ||
|
|
04ac10b453 | ||
|
|
ff103927e8 | ||
|
|
c6e94f80de | ||
|
|
5d4ae6247d | ||
|
|
8b63322e50 | ||
|
|
7fd5b3967a | ||
|
|
1d719446c0 | ||
|
|
3913b86228 | ||
|
|
3fddbfe451 | ||
|
|
c7b492c276 | ||
|
|
2e0cff80c1 | ||
|
|
3943dee733 | ||
|
|
41e7f3c3e2 | ||
|
|
5e373ad856 | ||
|
|
0d3d40cca2 | ||
|
|
221063a5a6 | ||
|
|
8e9b8ab476 | ||
|
|
1c6be4681e | ||
|
|
7b4f4cd863 | ||
|
|
9b285efe2d | ||
|
|
22e96f2b3a | ||
|
|
23da51f662 | ||
|
|
b395a08b6e | ||
|
|
ac07dbb185 | ||
|
|
86ab806b6e | ||
|
|
89d08ea507 | ||
|
|
deacd17fc9 | ||
|
|
4372e4193e | ||
|
|
d4cb8b548d | ||
|
|
faa2880e8d | ||
|
|
eeeccc786d | ||
|
|
3bcf2372b0 | ||
|
|
9612f882a5 | ||
|
|
aa29552a90 | ||
|
|
a38393338a | ||
|
|
d2e953410c | ||
|
|
0ac345328b | ||
|
|
11bf450e4c | ||
|
|
e54faea639 | ||
|
|
25062483c9 | ||
|
|
f58be676bf | ||
|
|
cc147d29ab | ||
|
|
78d20f81d2 | ||
|
|
29a3c8123c | ||
|
|
7807651223 | ||
|
|
deb7f6788e | ||
|
|
9ca7a4e829 | ||
|
|
855ab2b28c | ||
|
|
b1b042a25f | ||
|
|
3a82af67b1 | ||
|
|
84e2105361 | ||
|
|
bae90b2b55 | ||
|
|
f6b605443d | ||
|
|
14d337891a | ||
|
|
a3df442a6a | ||
|
|
53af81f84d | ||
|
|
02332cc094 | ||
|
|
19964f4ea6 | ||
|
|
3e777246a0 | ||
|
|
737bb80af0 | ||
|
|
07155018ef | ||
|
|
b8c0939382 | ||
|
|
985d395ba3 | ||
|
|
9f8e899af7 | ||
|
|
5359ed5e4b | ||
|
|
081d176f24 | ||
|
|
0bfe72eec9 | ||
|
|
d417aa2fb9 | ||
|
|
d647fb3b4f | ||
|
|
ebf6300b06 | ||
|
|
3977f9aa53 | ||
|
|
8478194bb0 | ||
|
|
417c99cdb9 | ||
|
|
0e8849a382 | ||
|
|
dd9ccaf076 | ||
|
|
ff461d821c | ||
|
|
6d68165fb6 | ||
|
|
489fd23edb | ||
|
|
4b39d5b438 | ||
|
|
b5a5aa41c6 | ||
|
|
e878e08675 | ||
|
|
246a7f1922 | ||
|
|
c83921ca71 | ||
|
|
c9deae3d5c | ||
|
|
8184c10e93 | ||
|
|
98746cc8d1 | ||
|
|
79fe05eb9c | ||
|
|
b2dd46411a | ||
|
|
2c7dd23220 | ||
|
|
a873e3e29e | ||
|
|
6a3b984c6c | ||
|
|
ebbcf7c21e | ||
|
|
0526b26b4a | ||
|
|
c20dab43a6 | ||
|
|
918a859a74 | ||
|
|
b3d3902399 | ||
|
|
69e02b0886 | ||
|
|
74a602c34d | ||
|
|
710bb2d884 | ||
|
|
7396806fab | ||
|
|
a87044a2b9 | ||
|
|
0c54f747b9 | ||
|
|
d6955eaad7 | ||
|
|
5638720336 | ||
|
|
e33875e9f5 | ||
|
|
9532ca2442 | ||
|
|
47f59e1b63 | ||
|
|
b9195101da | ||
|
|
34a9424c29 | ||
|
|
54ce2a1c10 | ||
|
|
5166fb1f58 | ||
|
|
5e9434b7eb | ||
|
|
a7398e54e3 | ||
|
|
ac54e042ea | ||
|
|
4f17085a81 | ||
|
|
c864eb6e73 | ||
|
|
828aa8fd21 | ||
|
|
84615fad05 | ||
|
|
b90b50395c | ||
|
|
c27a23e5fe | ||
|
|
1b33ddb207 | ||
|
|
d68de45c3b | ||
|
|
5b46b39dac | ||
|
|
2d0201759d | ||
|
|
104788e2a4 | ||
|
|
4f1139a531 | ||
|
|
f673aad38e | ||
|
|
c8a8e1351c | ||
|
|
5d84b59bbd | ||
|
|
2a807702f4 | ||
|
|
448b9cb30c | ||
|
|
248dc3a1c9 | ||
|
|
cd76c0528e | ||
|
|
58e2febf64 | ||
|
|
0372b034f6 | ||
|
|
1d730a0ce5 | ||
|
|
1a629ee8d5 | ||
|
|
cd563ad1ce | ||
|
|
ec18b6349b | ||
|
|
4d7d87d62a | ||
|
|
15a021a58f | ||
|
|
63c85e6b96 | ||
|
|
6a94795a67 | ||
|
|
d302567369 | ||
|
|
f8d6a1543d | ||
|
|
6df5a68682 | ||
|
|
7e1cc36805 | ||
|
|
491ed21f98 | ||
|
|
e53cf5dab0 | ||
|
|
e853889247 | ||
|
|
19b0fe4052 | ||
|
|
d94d937d77 | ||
|
|
e5c1f0588a | ||
|
|
dd88ebe5da | ||
|
|
5536335ac9 | ||
|
|
df4fff6911 | ||
|
|
3dd83fde66 | ||
|
|
f50b1ececa | ||
|
|
ebee7b379e | ||
|
|
255db25f58 | ||
|
|
19050079d4 | ||
|
|
8d97f98a29 | ||
|
|
137ca5855e | ||
|
|
7707b48622 | ||
|
|
193546d1ed | ||
|
|
6703bca1d0 | ||
|
|
5739947586 | ||
|
|
5e1a7f2102 | ||
|
|
a0e574391b | ||
|
|
bd107d930a | ||
|
|
66f83732bb | ||
|
|
e796891d8e | ||
|
|
ba46bc9189 | ||
|
|
64ff369a90 | ||
|
|
92616429ba | ||
|
|
377383d672 | ||
|
|
52d405a6d6 | ||
|
|
2e1492c4fa | ||
|
|
16673df8cf | ||
|
|
cb4c26acfd | ||
|
|
fda7ca4574 | ||
|
|
8e2e8d1e82 | ||
|
|
4e36f47774 | ||
|
|
858dac73d0 | ||
|
|
3cccefb715 | ||
|
|
44640f33d2 | ||
|
|
2ae3b9bd8e | ||
|
|
2db991a371 | ||
|
|
2e52abd76c | ||
|
|
03c3acd214 | ||
|
|
c26b277c56 | ||
|
|
3f7fd40d17 | ||
|
|
0b01c0d236 | ||
|
|
3107b73430 | ||
|
|
5d421ae525 | ||
|
|
56a8495787 | ||
|
|
a12bc03dd7 | ||
|
|
6b1a65f8f4 | ||
|
|
9d94155480 | ||
|
|
3b46759134 | ||
|
|
8d21c653ae | ||
|
|
d983c44db7 | ||
|
|
467a1d92bb | ||
|
|
157d3e3e66 | ||
|
|
51bb320dce | ||
|
|
12c99c6857 | ||
|
|
62e905f336 | ||
|
|
9b5964a758 | ||
|
|
9c49a9c67d | ||
|
|
0a2461f4a5 | ||
|
|
49577ddbb6 | ||
|
|
6172b0c35f | ||
|
|
e7cc10692b | ||
|
|
221d2c717d | ||
|
|
2b54f742c5 | ||
|
|
f02eddcebe | ||
|
|
c25a5cef67 | ||
|
|
0f69ee951c | ||
|
|
fd6650db50 | ||
|
|
f2ad80665a | ||
|
|
cff9c94c27 | ||
|
|
b6fdc12820 | ||
|
|
01265faef9 | ||
|
|
a2feae891e | ||
|
|
bd24d4bcd1 | ||
|
|
0efbd9e23c | ||
|
|
4aab72fb10 | ||
|
|
aa266da5ac | ||
|
|
49987d55ce | ||
|
|
c6939efd70 | ||
|
|
f7f853f05e | ||
|
|
1faa540a70 | ||
|
|
1746c876bd | ||
|
|
cd0c015fea | ||
|
|
760b25b7a2 | ||
|
|
eccfad5615 | ||
|
|
27034e4bae | ||
|
|
99376c8fc2 | ||
|
|
17e7ba1ef2 | ||
|
|
38526890cc | ||
|
|
ae9b33d5f0 | ||
|
|
ff96812d26 | ||
|
|
0359a4b3dc | ||
|
|
f75dd3a800 | ||
|
|
a992dc56c5 | ||
|
|
576176e1cc | ||
|
|
1d3914ce86 | ||
|
|
b2f338cad8 | ||
|
|
74a329ca29 | ||
|
|
29ae1b4034 | ||
|
|
ae5cab9830 | ||
|
|
a986e588b5 | ||
|
|
8c84c1050f | ||
|
|
c3ded4d817 | ||
|
|
db32de68e3 | ||
|
|
f76f2ca393 | ||
|
|
8449257628 | ||
|
|
2bd3d0d290 | ||
|
|
117798a3f5 | ||
|
|
01392bcbf8 | ||
|
|
5a3478d916 | ||
|
|
f3b545fd90 | ||
|
|
e7a6a05a1b | ||
|
|
f65ff57a95 | ||
|
|
9a8f53e890 | ||
|
|
e94c711f12 | ||
|
|
4cc8455fff | ||
|
|
943bb93398 | ||
|
|
0a1eb8c2e5 | ||
|
|
b7fd06413d | ||
|
|
a2b805f4e1 | ||
|
|
bc69af7b6b | ||
|
|
c36202878f | ||
|
|
60f31595d4 | ||
|
|
7194d7f613 | ||
|
|
af02a70600 | ||
|
|
77d8e0607d | ||
|
|
d6d12bc93c | ||
|
|
ead1def4bb | ||
|
|
14e944885f | ||
|
|
a075e0cba8 | ||
|
|
dd14e66f10 | ||
|
|
ce0892b986 | ||
|
|
71b84cc8d3 | ||
|
|
fd3ce243a6 | ||
|
|
aa3e90ef98 | ||
|
|
2621b22ffd | ||
|
|
6460f5f4ff | ||
|
|
e45560c27f | ||
|
|
0c6cd158dd | ||
|
|
f11de05eb3 | ||
|
|
ef47efb9aa | ||
|
|
54422eccaa | ||
|
|
02004f4b6d | ||
|
|
58278c5388 | ||
|
|
ff7d2020f7 | ||
|
|
160420fe82 | ||
|
|
56703ec458 | ||
|
|
9947664ae8 | ||
|
|
4d3f54439e | ||
|
|
6254f369f4 | ||
|
|
9b98cac4c8 | ||
|
|
71f3b75ab2 | ||
|
|
1a5cf8a2f7 | ||
|
|
33712b198d | ||
|
|
1fd5784a54 | ||
|
|
3904ca2343 | ||
|
|
8ebd0f5193 | ||
|
|
8c9bca3f25 | ||
|
|
6908744669 | ||
|
|
d0e463de98 | ||
|
|
f4c7287dfd | ||
|
|
a33df14761 | ||
|
|
3afc41269c | ||
|
|
11add2bfcc | ||
|
|
dd84fa16e5 | ||
|
|
e823c0f1ec | ||
|
|
56c104a5bc | ||
|
|
bfb2c2eaab | ||
|
|
7d57205ac2 | ||
|
|
4b81b1794d | ||
|
|
f5019b494f | ||
|
|
5102b8b955 | ||
|
|
089e553944 | ||
|
|
dfc07a6d76 | ||
|
|
b7687e006c | ||
|
|
10cf15bebd | ||
|
|
fc3d4adc72 | ||
|
|
bc330d5aaf | ||
|
|
c8a8feace2 | ||
|
|
9afdaa4cbc | ||
|
|
18c7f2eb9c | ||
|
|
de237171ef | ||
|
|
a4b90944e8 | ||
|
|
cb44fcc8c9 | ||
|
|
03bae9e9bd | ||
|
|
1ec463f6c7 | ||
|
|
5420abcfaa | ||
|
|
e2530cdf62 | ||
|
|
b14687cb30 | ||
|
|
360fb881f1 | ||
|
|
90d35a8574 | ||
|
|
73a0ba468e | ||
|
|
4e7119768b | ||
|
|
8bfa6deb76 | ||
|
|
e87febc54a | ||
|
|
43df10e823 | ||
|
|
e2acb70a1c | ||
|
|
f8774af675 | ||
|
|
9ddb6c7834 | ||
|
|
330e5fecdf | ||
|
|
6cc41bf510 | ||
|
|
956bd23a56 | ||
|
|
f1ce806ded | ||
|
|
7748c22292 | ||
|
|
131aa491b9 | ||
|
|
dbc5ff7ccd | ||
|
|
5c3f366e53 | ||
|
|
b1b679701e | ||
|
|
c489f07c0a | ||
|
|
14bc7dedec | ||
|
|
d4067c5ddb | ||
|
|
50209418d7 | ||
|
|
8f3c74165d | ||
|
|
b7b8f389eb | ||
|
|
9082ed20f3 | ||
|
|
f807406a97 | ||
|
|
93aafe259b | ||
|
|
b96fc6e6bd | ||
|
|
1996b29c60 | ||
|
|
c8eb476ca8 | ||
|
|
aeaa995a0a | ||
|
|
b35122868f | ||
|
|
1cb974494f | ||
|
|
723ecde4cd | ||
|
|
f29e5c4978 | ||
|
|
46ffff7eea | ||
|
|
774c920591 | ||
|
|
f27eb07827 | ||
|
|
da8362d81d | ||
|
|
6e38d4f38d | ||
|
|
2344c9a9ed | ||
|
|
5180f0f869 | ||
|
|
b4f2789834 | ||
|
|
78c6029200 | ||
|
|
dca112e42b | ||
|
|
5ad16dd735 | ||
|
|
723be0735e | ||
|
|
a5bfb9388f | ||
|
|
9c6f24f984 | ||
|
|
59843ffea5 | ||
|
|
4de9c4a12f | ||
|
|
3eb05e5a84 | ||
|
|
5d7a7ed1a4 | ||
|
|
7124a22c38 | ||
|
|
fa4d65a383 | ||
|
|
d26306f892 | ||
|
|
9c0bb037fb | ||
|
|
4b73e20b9b | ||
|
|
3940a0c2e9 | ||
|
|
8f57d4a642 | ||
|
|
3979fdf6a0 | ||
|
|
4cd47126eb | ||
|
|
eb0dd79c80 | ||
|
|
3a39a8ca0e | ||
|
|
b5c4a2128b | ||
|
|
41f43fe5d0 | ||
|
|
f3f93b7136 | ||
|
|
2fb1855842 | ||
|
|
9a3627427f | ||
|
|
94fbf0a5f7 | ||
|
|
caddec1190 | ||
|
|
03367ea27d | ||
|
|
8e792ae8fc | ||
|
|
0a03f736ce | ||
|
|
8d7f6ffea5 | ||
|
|
93a6a7a88a | ||
|
|
3913b17596 | ||
|
|
d08e8eb40c | ||
|
|
c2d281658e | ||
|
|
108582cbfb | ||
|
|
b17db265f4 | ||
|
|
206739dcc5 | ||
|
|
adcb618a11 | ||
|
|
dfba3b6e84 | ||
|
|
2726859135 | ||
|
|
c0e20e6f25 | ||
|
|
148c2fc5a2 | ||
|
|
526f5e8946 | ||
|
|
8cd17b9d9a | ||
|
|
70ff46ab4b | ||
|
|
770348b07b | ||
|
|
4795cc23ad | ||
|
|
bae64dcee5 | ||
|
|
953a8d7110 | ||
|
|
3b5eaac976 | ||
|
|
6e28237ec5 | ||
|
|
b8c47948c3 | ||
|
|
0e8f9ad220 | ||
|
|
79e43e2740 | ||
|
|
c32d2958a6 | ||
|
|
3b7c934972 | ||
|
|
40f29d09c1 | ||
|
|
b601f2d860 | ||
|
|
5953d7c8dd | ||
|
|
e9859c0d32 | ||
|
|
4ad997515f | ||
|
|
ba637cf11e | ||
|
|
a4abcd1734 | ||
|
|
86bbd36813 | ||
|
|
c9dffc431c | ||
|
|
04ffd6257e | ||
|
|
4102f56cee | ||
|
|
6a62a6206a | ||
|
|
0bddceccfa | ||
|
|
09156fbc89 | ||
|
|
76d0075c7d | ||
|
|
6eab35ddd0 | ||
|
|
495e63dacc | ||
|
|
d965e7c7df | ||
|
|
060f2bd8de | ||
|
|
17585f3c75 | ||
|
|
79303ade8b | ||
|
|
d7e417eaf7 | ||
|
|
9622c65eb5 | ||
|
|
16ee1fb1c2 | ||
|
|
fd7d4bca24 | ||
|
|
a4627e8589 | ||
|
|
51dd978c8c | ||
|
|
1521a45dc1 | ||
|
|
03ac046feb | ||
|
|
ff9dc6c71e | ||
|
|
f8c6b80438 | ||
|
|
56c8b07e2e | ||
|
|
cd628038b4 | ||
|
|
efeebe6a86 | ||
|
|
ce6717292a | ||
|
|
c5b5002d27 | ||
|
|
4daa6dbb78 | ||
|
|
7ffe37117b | ||
|
|
112fe16f29 | ||
|
|
361a125118 | ||
|
|
6bd9b34f96 | ||
|
|
4938b5794a | ||
|
|
0e2e11655c | ||
|
|
4c591ca8e1 | ||
|
|
7b811ca0f8 | ||
|
|
46e18d0954 | ||
|
|
9df7afbf01 | ||
|
|
6d6ebb5ccc | ||
|
|
41fe5ebd82 | ||
|
|
1e2f4f4ca2 | ||
|
|
9a084c58bb | ||
|
|
0d66a1f4f2 | ||
|
|
ad891115a9 | ||
|
|
b38189d63e | ||
|
|
900e1aef46 | ||
|
|
2a43a96f9a | ||
|
|
11827bf68b | ||
|
|
bc3d58d406 | ||
|
|
4aed6f672e | ||
|
|
f40235bb2e | ||
|
|
67d323da42 | ||
|
|
2801509215 | ||
|
|
bb38dda0cb | ||
|
|
69830d82f7 | ||
|
|
b6c3444a55 | ||
|
|
172f8d8ad4 | ||
|
|
5ab207504d | ||
|
|
ec0ffc3584 | ||
|
|
2303446958 | ||
|
|
36f2c85ffe | ||
|
|
655edc071f | ||
|
|
2c3bd3a88e | ||
|
|
2944044a4a | ||
|
|
e846ac4923 | ||
|
|
2f2bc406f2 | ||
|
|
9a4a42f7ac | ||
|
|
99ebaa0364 | ||
|
|
4b651db8dc | ||
|
|
27f214c633 | ||
|
|
c59107a137 | ||
|
|
46a3c4b612 | ||
|
|
658348b4fd | ||
|
|
896ffe1282 | ||
|
|
d82ffc3617 | ||
|
|
8d83d727f3 | ||
|
|
c6e49bbf80 | ||
|
|
349db170a6 | ||
|
|
3f2dac39a0 | ||
|
|
439eb9309a | ||
|
|
c49f214bec | ||
|
|
7fb347063c | ||
|
|
da91c282b7 | ||
|
|
ff5a9d2274 | ||
|
|
fce9265b5d | ||
|
|
7b39a5e2b1 | ||
|
|
7b513f901c | ||
|
|
6e6b70c89f | ||
|
|
e0294195b9 | ||
|
|
7ecad206dc | ||
|
|
254aa2d043 | ||
|
|
1b4c435fab | ||
|
|
55688549fa | ||
|
|
fb69d05f06 | ||
|
|
cde1aeda0e | ||
|
|
2816fa88e4 | ||
|
|
9cc31b6e5b | ||
|
|
8f34fbf7a7 | ||
|
|
32df87d8bd | ||
|
|
50302c1fd4 | ||
|
|
7f4bb973b1 | ||
|
|
a542ba39aa | ||
|
|
7f8b013381 | ||
|
|
e455d50738 | ||
|
|
50533dd2a6 | ||
|
|
f432e14f3e | ||
|
|
7cc1c6ec77 | ||
|
|
3a8293d266 | ||
|
|
b5bc19443a | ||
|
|
d58bf81600 | ||
|
|
8398684cc6 | ||
|
|
53deb3ab85 | ||
|
|
d86057ef76 | ||
|
|
66a3dab237 | ||
|
|
6e9bab3502 | ||
|
|
ebdb9bc2c1 | ||
|
|
694b231983 | ||
|
|
3e56cf7d8c | ||
|
|
c1e8f7df04 | ||
|
|
c0ebe4a397 | ||
|
|
3dcb91b276 | ||
|
|
6a7606b3e0 | ||
|
|
6af48209e6 | ||
|
|
deefe6b33a | ||
|
|
8a1b583794 | ||
|
|
b55d2b9c06 | ||
|
|
891230144a | ||
|
|
58ea667430 | ||
|
|
8ba8bb6488 | ||
|
|
4062b31b7d | ||
|
|
59cc0fc887 | ||
|
|
521cbabee8 | ||
|
|
f897ae9b9d | ||
|
|
55c554910b | ||
|
|
c61f0c4906 | ||
|
|
336a0b61a3 | ||
|
|
ac7ca6d621 | ||
|
|
6245a8e12f | ||
|
|
8897ec01ec | ||
|
|
1e79f6385b | ||
|
|
8d413cabb8 | ||
|
|
99d013c039 | ||
|
|
03f65daef3 | ||
|
|
f86768c95b | ||
|
|
1a7c9abb16 | ||
|
|
c961cf9fde | ||
|
|
acbaa43ee6 | ||
|
|
cbdc6f6f77 | ||
|
|
75b6a07995 | ||
|
|
85e6eb6f73 | ||
|
|
c2599ed4a3 | ||
|
|
0fa7e8f562 | ||
|
|
b1d0ad8e16 | ||
|
|
e0762f504e | ||
|
|
453537ff68 | ||
|
|
069087c48b | ||
|
|
19eae41c33 | ||
|
|
202260c1d6 | ||
|
|
067b2bd75a | ||
|
|
2a6643eb68 | ||
|
|
59390cc6ec | ||
|
|
b20ba7a761 | ||
|
|
039043fe5b | ||
|
|
116153e77b | ||
|
|
1552374ce7 | ||
|
|
21acb9115d | ||
|
|
64ca6b9a41 | ||
|
|
c05f58fb5e | ||
|
|
6fe763c3ae | ||
|
|
2777ce56ea | ||
|
|
1678dadcbe | ||
|
|
9ab66b741d | ||
|
|
13ec7b606e | ||
|
|
e96e5821d0 | ||
|
|
6df63ea67e | ||
|
|
f0c0281ac2 | ||
|
|
b9d9fc565e | ||
|
|
6111c3530c | ||
|
|
2ba9eae7e6 | ||
|
|
431a93a7ff | ||
|
|
5d3e836156 | ||
|
|
c1234e2c16 | ||
|
|
aaf30e3bc2 | ||
|
|
aa5e935499 | ||
|
|
77e9258bd7 | ||
|
|
6ba94f49d4 | ||
|
|
264fef1142 | ||
|
|
a8be9a46c8 | ||
|
|
e8366d438c | ||
|
|
c915c72ef2 | ||
|
|
656ced6a2f | ||
|
|
cf0739b76a | ||
|
|
8a572f2961 | ||
|
|
d7ce6421a0 | ||
|
|
60a59e6c63 | ||
|
|
5acaa0736d | ||
|
|
640e7b231f | ||
|
|
6de40d53d7 | ||
|
|
bdd838cadd | ||
|
|
8fa3a11eb5 | ||
|
|
3a1b9071f8 | ||
|
|
ed655d6596 | ||
|
|
8dc2e6cbe1 | ||
|
|
cc21d555c5 | ||
|
|
367bdaf8d6 | ||
|
|
53042f376f | ||
|
|
5d003f94e2 | ||
|
|
7e218b7a5a | ||
|
|
1e1670aa22 | ||
|
|
ab2853084a | ||
|
|
07235ab583 | ||
|
|
c5e87d5fdc | ||
|
|
7a9288cd63 | ||
|
|
3347a054e0 | ||
|
|
59aa703416 | ||
|
|
e50f068c93 | ||
|
|
f566031911 | ||
|
|
5b133483e8 | ||
|
|
f31d5090b9 | ||
|
|
9021ca7a57 | ||
|
|
d891d4e5a2 | ||
|
|
dbcdf54e06 | ||
|
|
aea2b890df | ||
|
|
d66734607b | ||
|
|
c82e1673db | ||
|
|
66909990f5 | ||
|
|
138d91594d | ||
|
|
fa0f8d2a0c | ||
|
|
8f40363b2e | ||
|
|
c183840714 | ||
|
|
d24b9d08d9 | ||
|
|
eb5d62f778 | ||
|
|
8eee88c9c5 | ||
|
|
626e55ca65 | ||
|
|
a01bba76cb | ||
|
|
df6e147071 | ||
|
|
6d2f028dae | ||
|
|
a6807ba45b | ||
|
|
10314859db | ||
|
|
9e61476b06 | ||
|
|
43ab8e7922 | ||
|
|
ece0abc0c3 | ||
|
|
0da81c4e37 | ||
|
|
c46ea4026d | ||
|
|
03615d7b36 | ||
|
|
e6a3162ac8 | ||
|
|
0c838111c8 | ||
|
|
412b508a6e | ||
|
|
8640e3d24e | ||
|
|
3eec1f9713 | ||
|
|
da0dc823b8 | ||
|
|
d5f031b660 | ||
|
|
303ca2f691 | ||
|
|
8dd18fa45b | ||
|
|
7b330dd3e9 | ||
|
|
02aca6c23b | ||
|
|
c6ccc0fb9c | ||
|
|
65a85f7bd8 | ||
|
|
3f8c65d654 | ||
|
|
55447d724c | ||
|
|
ce129cd59f | ||
|
|
7cef38f50e | ||
|
|
d6e5753dd2 | ||
|
|
0f88932669 | ||
|
|
1f4317856c | ||
|
|
90f4253067 | ||
|
|
8b44a61797 | ||
|
|
eb1e5d2d85 | ||
|
|
25d169b14e | ||
|
|
db14636c58 | ||
|
|
33c6ddd250 | ||
|
|
1bc042d126 | ||
|
|
31c2372520 | ||
|
|
f7f0349f39 | ||
|
|
34181234e1 | ||
|
|
cded34fbd4 | ||
|
|
e2223ac7a6 | ||
|
|
ffcd872f4a | ||
|
|
d34a835363 | ||
|
|
40d17f9641 | ||
|
|
9eb543467b | ||
|
|
86594de18d | ||
|
|
14efa10683 | ||
|
|
7f38c6b346 | ||
|
|
17cf7d40c5 | ||
|
|
9ff8506035 | ||
|
|
757ffcd129 | ||
|
|
ac96ff595a | ||
|
|
7c1fe558f9 | ||
|
|
98ec0aca45 | ||
|
|
df105a2233 | ||
|
|
a33c58941c | ||
|
|
33c0c4402f | ||
|
|
1529115fb5 | ||
|
|
210b90ff8f | ||
|
|
e9a69651d7 | ||
|
|
e576af72b7 | ||
|
|
e5e88e3a5e | ||
|
|
957cde8384 | ||
|
|
ddc8818aae | ||
|
|
252339d36c | ||
|
|
0803dd5214 | ||
|
|
586af0aac3 | ||
|
|
65032dc3a0 | ||
|
|
a6c617fc44 | ||
|
|
13b17dab00 | ||
|
|
4600458da3 | ||
|
|
67bc1533bf | ||
|
|
e5f5546352 | ||
|
|
40896473b2 | ||
|
|
83e820d037 | ||
|
|
fb8a1003f9 | ||
|
|
f0a3a04edb | ||
|
|
df8e913831 | ||
|
|
1eef2bc96f | ||
|
|
015d9c29c7 | ||
|
|
164467d435 | ||
|
|
e8e8b0fc29 | ||
|
|
d78a6c4ed7 | ||
|
|
b95b35f10c | ||
|
|
7d52df1f11 | ||
|
|
cb542f1e77 | ||
|
|
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 |
26
.devcontainer.json
Normal file
26
.devcontainer.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "NSPanel Lovelace UI Home Assistant add-on repository",
|
||||
"image": "ghcr.io/home-assistant/devcontainer:addons",
|
||||
"appPort": ["7123:8123", "7357:4357"],
|
||||
"postCreateCommand": "apt install -y python3 python3-pip && pip install -r nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/requirements.txt --break-system-packages",
|
||||
"postStartCommand": "bash devcontainer_bootstrap",
|
||||
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],
|
||||
"remoteUser":"root",
|
||||
"containerEnv": {
|
||||
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
||||
},
|
||||
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode"],
|
||||
"mounts": ["type=volume,target=/var/lib/docker"],
|
||||
"settings": {
|
||||
"terminal.integrated.profiles.linux": {
|
||||
"zsh": {
|
||||
"path": "/usr/bin/zsh"
|
||||
}
|
||||
},
|
||||
"terminal.integrated.defaultProfile.linux": "zsh",
|
||||
"editor.formatOnPaste": false,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnType": true,
|
||||
"files.trimTrailingWhitespace": true
|
||||
}
|
||||
}
|
||||
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -58,5 +58,5 @@ _If applicable, add screenshots/pictures to help explain your problem._
|
||||
_Add any other context about the problem here._
|
||||
_Please note here in case you are using ioBroker_
|
||||
|
||||
### PANEL / FIRMWARE VERION
|
||||
### PANEL / FIRMWARE VERSION
|
||||
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
|
||||
|
||||
2
.github/ISSUE_TEMPLATE/feature-request.md
vendored
2
.github/ISSUE_TEMPLATE/feature-request.md
vendored
@@ -24,5 +24,5 @@ _A clear and concise description of what the feature should do._
|
||||
### ADDITIONAL CONTEXT
|
||||
_Add any other context about the problem here._
|
||||
|
||||
### PANEL / FIRMWARE VERION
|
||||
### PANEL / FIRMWARE VERSION
|
||||
_Please add the Panel/Firmware Version you are using (EU, US-L or US-P)_
|
||||
|
||||
7
.github/dependabot.yaml
vendored
Normal file
7
.github/dependabot.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
time: "06:00"
|
||||
111
.github/workflows/builder.yaml
vendored
Normal file
111
.github/workflows/builder.yaml
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
name: Builder
|
||||
|
||||
env:
|
||||
BUILD_ARGS: "--test"
|
||||
MONITORED_FILES: "build.yaml config.yaml Dockerfile rootfs"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
init:
|
||||
runs-on: ubuntu-latest
|
||||
name: Initialize builds
|
||||
outputs:
|
||||
changed_addons: ${{ steps.changed_addons.outputs.addons }}
|
||||
changed: ${{ steps.changed_addons.outputs.changed }}
|
||||
steps:
|
||||
- name: Check out the repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get changed files
|
||||
id: changed_files
|
||||
uses: jitterbit/get-changed-files@v1
|
||||
|
||||
- name: Find add-on directories
|
||||
id: addons
|
||||
uses: home-assistant/actions/helpers/find-addons@master
|
||||
|
||||
- name: Get changed add-ons
|
||||
id: changed_addons
|
||||
run: |
|
||||
declare -a changed_addons
|
||||
for addon in ${{ steps.addons.outputs.addons }}; do
|
||||
if [[ "${{ steps.changed_files.outputs.all }}" =~ $addon ]]; then
|
||||
for file in ${{ env.MONITORED_FILES }}; do
|
||||
if [[ "${{ steps.changed_files.outputs.all }}" =~ $addon/$file ]]; then
|
||||
if [[ ! "${changed_addons[@]}" =~ $addon ]]; then
|
||||
changed_addons+=("\"${addon}\",");
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
changed=$(echo ${changed_addons[@]} | rev | cut -c 2- | rev)
|
||||
|
||||
if [[ -n ${changed} ]]; then
|
||||
echo "Changed add-ons: $changed";
|
||||
echo "changed=true" >> $GITHUB_OUTPUT;
|
||||
echo "addons=[$changed]" >> $GITHUB_OUTPUT;
|
||||
else
|
||||
echo "No add-on had any monitored files changed (${{ env.MONITORED_FILES }})";
|
||||
fi
|
||||
build:
|
||||
needs: init
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.init.outputs.changed == 'true'
|
||||
name: Build ${{ matrix.arch }} ${{ matrix.addon }} add-on
|
||||
strategy:
|
||||
matrix:
|
||||
addon: ${{ fromJson(needs.init.outputs.changed_addons) }}
|
||||
arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get information
|
||||
id: info
|
||||
uses: home-assistant/actions/helpers/info@master
|
||||
with:
|
||||
path: "./${{ matrix.addon }}"
|
||||
|
||||
- name: Check if add-on should be built
|
||||
id: check
|
||||
run: |
|
||||
if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then
|
||||
echo "build_arch=true" >> $GITHUB_OUTPUT;
|
||||
echo "image=$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)" >> $GITHUB_OUTPUT;
|
||||
if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
|
||||
echo "BUILD_ARGS=" >> $GITHUB_ENV;
|
||||
fi
|
||||
else
|
||||
echo "${{ matrix.arch }} is not a valid arch for ${{ matrix.addon }}, skipping build";
|
||||
echo "build_arch=false" >> $GITHUB_OUTPUT;
|
||||
fi
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
if: env.BUILD_ARGS != '--test'
|
||||
uses: docker/login-action@v3.5.0
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build ${{ matrix.addon }} add-on
|
||||
if: steps.check.outputs.build_arch == 'true'
|
||||
uses: home-assistant/builder@2025.03.0
|
||||
with:
|
||||
args: |
|
||||
${{ env.BUILD_ARGS }} \
|
||||
--${{ matrix.arch }} \
|
||||
--target /data/${{ matrix.addon }} \
|
||||
--image "${{ steps.check.outputs.image }}" \
|
||||
--docker-hub "ghcr.io/${{ github.repository_owner }}" \
|
||||
--addon
|
||||
8
.github/workflows/codeql-analysis.yml
vendored
8
.github/workflows/codeql-analysis.yml
vendored
@@ -43,11 +43,11 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@@ -72,4 +72,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
uses: github/codeql-action/analyze@v3
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
name: docs-ci
|
||||
name: docs-ci
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
branches:
|
||||
- dev
|
||||
paths:
|
||||
- docs/*
|
||||
- .github/workflows/docs.yml
|
||||
@@ -15,10 +15,14 @@ jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: 3.x
|
||||
- run: pip install mkdocs-material mkdocs-video markdown-include
|
||||
- run: pip install mkdocs-material mkdocs-video markdown-include mike
|
||||
- run: cp HMI/README.md docs/hmi-serial-protocol.md
|
||||
- run: mkdocs gh-deploy --force
|
||||
- run: git config --global user.name Docs deploy
|
||||
- run: git config --global user.email docs@dummy.bot.com
|
||||
- run: mike deploy --push --update-aliases dev
|
||||
29
.github/workflows/docs-release.yml
vendored
Normal file
29
.github/workflows/docs-release.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: docs-ci
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- docs/*
|
||||
- .github/workflows/docs-release.yml
|
||||
- mkdocs.yml
|
||||
- HMI/README.md
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: 3.x
|
||||
- run: pip install mkdocs-material mkdocs-video markdown-include mike
|
||||
- run: cp HMI/README.md docs/hmi-serial-protocol.md
|
||||
- run: git config --global user.name Docs deploy
|
||||
- run: git config --global user.email docs@dummy.bot.com
|
||||
- run: mike set-default stable
|
||||
- run: mike deploy --push --update-aliases stable
|
||||
2
.github/workflows/hacs-validation.yaml
vendored
2
.github/workflows/hacs-validation.yaml
vendored
@@ -11,7 +11,7 @@ jobs:
|
||||
name: HACS Action
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@v2"
|
||||
- uses: "actions/checkout@v4"
|
||||
- name: HACS Action
|
||||
uses: "hacs/action@main"
|
||||
with:
|
||||
|
||||
4
.github/workflows/iobroker-localization.yml
vendored
4
.github/workflows/iobroker-localization.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
gen-ioBroker-localization:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
python HMI/code_gen/localization/iobroker.py
|
||||
mv ioBroker_NSPanel_locales.json ioBroker/ioBroker_NSPanel_locales.json
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: Update iobroker localization file
|
||||
#file_pattern: "**.txt"
|
||||
|
||||
41
.github/workflows/lint.yaml
vendored
Normal file
41
.github/workflows/lint.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
find:
|
||||
name: Find add-ons
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
addons: ${{ steps.addons.outputs.addons_list }}
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 🔍 Find add-on directories
|
||||
id: addons
|
||||
uses: home-assistant/actions/helpers/find-addons@master
|
||||
|
||||
lint:
|
||||
name: Lint add-on ${{ matrix.path }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: find
|
||||
strategy:
|
||||
matrix:
|
||||
path: ${{ fromJson(needs.find.outputs.addons) }}
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 🚀 Run Home Assistant Add-on Lint
|
||||
uses: frenck/action-addon-linter@v2.18
|
||||
with:
|
||||
path: "./${{ matrix.path }}"
|
||||
4
.github/workflows/nextion2text.yml
vendored
4
.github/workflows/nextion2text.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
@@ -80,7 +80,7 @@ jobs:
|
||||
find -name "**.txt"
|
||||
rm Nextion2Text.py* ignore-id.py out.txt
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: ${{ steps.last-commit-message.outputs.msg }} (add nextion2text)
|
||||
#file_pattern: "**.txt"
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,5 +2,8 @@ __pycache__/
|
||||
# don't add nextion2text
|
||||
HMI/Nextion2Text.py
|
||||
|
||||
# dont add panels.yaml
|
||||
panels.yaml
|
||||
|
||||
# don't add Webstorm project stuff
|
||||
.idea
|
||||
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Python: Current File",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "main.py",
|
||||
"cwd": "/workspaces/nspanel-lovelace-ui/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true
|
||||
}
|
||||
]
|
||||
}
|
||||
19
.vscode/tasks.json
vendored
Normal file
19
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Start Home Assistant",
|
||||
"type": "shell",
|
||||
"command": "supervisor_run",
|
||||
"group": {
|
||||
"kind": "test",
|
||||
"isDefault": true
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
},
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2,18 +2,87 @@
|
||||
+++ HMI/US/landscape/n2t-out
|
||||
│ --- HMI/n2t-out/Program.s.txt
|
||||
├── +++ HMI/US/landscape/n2t-out/Program.s.txt
|
||||
│ @@ -11,10 +11,10 @@
|
||||
│ // dim value
|
||||
│ int dimValue=40
|
||||
│ @@ -13,10 +13,10 @@
|
||||
│ int dimValueNormal=100
|
||||
│ //color vars
|
||||
│ int defaultFontColor=65535
|
||||
│ int defaultBcoColor=6371
|
||||
│ //feature flags
|
||||
│ int featNewSliders=0
|
||||
│ // 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
|
||||
│ page pageStartup
|
||||
│ --- HMI/n2t-out/cardEntities.txt
|
||||
├── +++ HMI/US/landscape/n2t-out/cardEntities.txt
|
||||
│ @@ -20,15 +20,14 @@
|
||||
│ crcputs tSend.txt,0
|
||||
│ //send cmd
|
||||
│ printh 55 bb
|
||||
│ prints sys0,2
|
||||
│ prints tSend.txt,0
|
||||
│ prints crcval,2
|
||||
│ dim=dimValueNormal
|
||||
│ - dim=dimValueNormal
|
||||
│ //wup=cardEntities
|
||||
│ //remove background & activate reparse mode
|
||||
│ vis p0,0
|
||||
│ recmod=1
|
||||
│ baud=115200
|
||||
│ //debug stuff
|
||||
│ vis tTmp,0
|
||||
│ --- HMI/n2t-out/cardThermo.txt
|
||||
├── +++ HMI/US/landscape/n2t-out/cardThermo.txt
|
||||
│ @@ -28,14 +28,19 @@
|
||||
│ vis tSend,0
|
||||
│ vis tInstruction,0
|
||||
│ vis tTmp,0
|
||||
│ vis tId,0
|
||||
│ vis xTempMin1,0
|
||||
│ vis xTempMax1,0
|
||||
│ vis xTempStep1,0
|
||||
│ + vis xTempDest,0
|
||||
│ + vis btUp,0
|
||||
│ + vis btDown,0
|
||||
│ + vis tCF,0
|
||||
│ + vis btDetail,0
|
||||
│ //tEntity.txt=tHeading.txt
|
||||
│ // disable all buttons
|
||||
│ vis bt0,0
|
||||
│ vis bt1,0
|
||||
│ vis bt2,0
|
||||
│ vis bt3,0
|
||||
│ vis bt4,0
|
||||
│ @@ -1014,14 +1019,28 @@
|
||||
│ vis xTempDest1,1
|
||||
│ vis btDown1,1
|
||||
│ vis tCF1,1
|
||||
│ vis bUp2,1
|
||||
│ vis xTempDest2,1
|
||||
│ vis bDown2,1
|
||||
│ vis tCF2,1
|
||||
│ + }else
|
||||
│ + {
|
||||
│ + vis btUp,1
|
||||
│ + vis xTempDest,1
|
||||
│ + vis btDown,1
|
||||
│ + vis tCF,1
|
||||
│ + vis btUp1,0
|
||||
│ + vis xTempDest1,0
|
||||
│ + vis btDown1,0
|
||||
│ + vis tCF1,0
|
||||
│ + vis bUp2,0
|
||||
│ + vis xTempDest2,0
|
||||
│ + vis bDown2,0
|
||||
│ + vis tCF2,0
|
||||
│ }
|
||||
│ //Show btDetail
|
||||
│ spstr strCommand.txt,tTmp.txt,"~",58
|
||||
│ if(tTmp.txt!="1")
|
||||
│ {
|
||||
│ vis btDetail,1
|
||||
│ }else
|
||||
│ --- HMI/n2t-out/pageStartup.txt
|
||||
├── +++ HMI/US/landscape/n2t-out/pageStartup.txt
|
||||
│ @@ -164,15 +164,15 @@
|
||||
@@ -33,9 +102,68 @@
|
||||
│ crcputs sys0,2
|
||||
│ crcputs tSend.txt,0
|
||||
│ //send cmd
|
||||
│ --- HMI/n2t-out/popupLight.txt
|
||||
├── +++ HMI/US/landscape/n2t-out/popupLight.txt
|
||||
│ @@ -453,19 +453,14 @@
|
||||
│ 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,tTmp.txt,"~",2
|
||||
│ - if(tTmp.txt!="")
|
||||
│ - {
|
||||
│ - tIcon1.txt=tTmp.txt
|
||||
│ - }
|
||||
│ //spstr strCommand.txt,tIcon1.txt,"~",2
|
||||
│ vis tIcon1,1
|
||||
│ // change icon color
|
||||
│ spstr strCommand.txt,tTmp.txt,"~",3
|
||||
│ covx tTmp.txt,sys0,0,0
|
||||
│ tIcon1.pco=sys0
|
||||
│ // get Button State
|
||||
│ --- HMI/n2t-out/popupNotify.txt
|
||||
├── +++ HMI/US/landscape/n2t-out/popupNotify.txt
|
||||
│ @@ -439,18 +439,14 @@
|
||||
│ {
|
||||
│ page cardPower
|
||||
│ }
|
||||
│ if(tId.txt=="cardChart")
|
||||
│ {
|
||||
│ page cardChart
|
||||
│ }
|
||||
│ - if(tId.txt=="cardLChart")
|
||||
│ - {
|
||||
│ - page cardLChart
|
||||
│ - }
|
||||
│ }
|
||||
│ // end of user code
|
||||
│ udelete payloadLength-1
|
||||
│ bufferPos=0
|
||||
│ }
|
||||
│ }
|
||||
│ }
|
||||
│ --- HMI/n2t-out/screensaver.txt
|
||||
├── +++ HMI/US/landscape/n2t-out/screensaver.txt
|
||||
│ @@ -28,17 +28,14 @@
|
||||
│ @@ -19,15 +19,14 @@
|
||||
│ crcputs sys0,2
|
||||
│ crcputs tSend.txt,0
|
||||
│ //send cmd
|
||||
│ printh 55 bb
|
||||
│ prints sys0,2
|
||||
│ prints tSend.txt,0
|
||||
│ prints crcval,2
|
||||
│ - dim=dimValueNormal
|
||||
│ recmod=1
|
||||
│ baud=115200
|
||||
│ vis tInstruction,0
|
||||
│ vis tTmp,0
|
||||
│ vis p0,0
|
||||
│ vis tNotifyHead,0
|
||||
│ vis tNotifyText,0
|
||||
│ @@ -41,17 +40,14 @@
|
||||
│ }
|
||||
│ tDate.txt=pageIcons.vaDate.txt
|
||||
│ dim=dimValue
|
||||
@@ -53,7 +181,7 @@
|
||||
│ Max. Text Size: 600
|
||||
│
|
||||
│ Variable (string) strTmp
|
||||
│ @@ -102,34 +99,14 @@
|
||||
│ @@ -115,34 +111,14 @@
|
||||
│ Value: 0
|
||||
│
|
||||
│ Variable (int32) ycR
|
||||
@@ -88,9 +216,43 @@
|
||||
│ Send Component ID : disabled
|
||||
│ Associated Keyboard: none
|
||||
│ Text : |
|
||||
│ @@ -485,17 +461,14 @@
|
||||
│ //get set time to global variable
|
||||
│ spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||
│ spstr pageIcons.vaTime.txt,tTime.txt,"?",0
|
||||
│ spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
|
||||
│ if(tAMPM.txt=="")
|
||||
│ {
|
||||
│ vis tAMPM,0
|
||||
│ - }else
|
||||
│ - {
|
||||
│ - vis tAMPM,1
|
||||
│ }
|
||||
│ spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||
│ ref tIcon1
|
||||
│ ref tIcon2
|
||||
│ }
|
||||
│ if(tInstruction.txt=="date")
|
||||
│ {
|
||||
│ --- HMI/n2t-out/screensaver2.txt
|
||||
├── +++ HMI/US/landscape/n2t-out/screensaver2.txt
|
||||
│ @@ -28,17 +28,14 @@
|
||||
│ @@ -19,15 +19,14 @@
|
||||
│ crcputs sys0,2
|
||||
│ crcputs tSend.txt,0
|
||||
│ //send cmd
|
||||
│ printh 55 bb
|
||||
│ prints sys0,2
|
||||
│ prints tSend.txt,0
|
||||
│ prints crcval,2
|
||||
│ - dim=dimValueNormal
|
||||
│ recmod=1
|
||||
│ baud=115200
|
||||
│ vis tInstruction,0
|
||||
│ vis tTmp,0
|
||||
│ vis p0,0
|
||||
│ vis tNotifyHead,0
|
||||
│ vis tNotifyText,0
|
||||
│ @@ -41,52 +40,19 @@
|
||||
│ }
|
||||
│ tDate.txt=pageIcons.vaDate.txt
|
||||
│ dim=dimValue
|
||||
@@ -101,14 +263,80 @@
|
||||
│ - Postinitialize Event
|
||||
│ - click m0,1
|
||||
│ -
|
||||
│ -Variable (string) entn1
|
||||
│ - Attributes
|
||||
│ - Scope : local
|
||||
│ - Text :
|
||||
│ - Max. Text Size: 14
|
||||
│ -
|
||||
│ -Variable (string) entn2
|
||||
│ - Attributes
|
||||
│ - Scope : local
|
||||
│ - Text :
|
||||
│ - Max. Text Size: 14
|
||||
│ -
|
||||
│ -Variable (string) entn3
|
||||
│ - Attributes
|
||||
│ - Scope : local
|
||||
│ - Text :
|
||||
│ - Max. Text Size: 14
|
||||
│ -
|
||||
│ -Variable (string) entn4
|
||||
│ - Attributes
|
||||
│ - Scope : local
|
||||
│ - Text :
|
||||
│ - Max. Text Size: 14
|
||||
│ -
|
||||
│ -Variable (string) entn5
|
||||
│ - Attributes
|
||||
│ - Scope : local
|
||||
│ - Text :
|
||||
│ - Max. Text Size: 14
|
||||
│ -
|
||||
│ Variable (string) strCommand
|
||||
│ Attributes
|
||||
│ Scope : local
|
||||
│ Text :
|
||||
│ Max. Text Size: 1979
|
||||
│ - Max. Text Size: 1935
|
||||
│ + Max. Text Size: 1979
|
||||
│
|
||||
│ Variable (string) strTmp
|
||||
│ @@ -363,34 +360,14 @@
|
||||
│ Attributes
|
||||
│ Scope : local
|
||||
│ Text :
|
||||
│ Max. Text Size: 2
|
||||
│
|
||||
│ @@ -96,27 +62,27 @@
|
||||
│ Text :
|
||||
│ Max. Text Size: 25
|
||||
│
|
||||
│ Variable (string) tInstruction
|
||||
│ Attributes
|
||||
│ Scope : local
|
||||
│ Text :
|
||||
│ - Max. Text Size: 15
|
||||
│ + Max. Text Size: 50
|
||||
│
|
||||
│ Variable (string) tSend
|
||||
│ Attributes
|
||||
│ Scope : local
|
||||
│ Text :
|
||||
│ Max. Text Size: 50
|
||||
│
|
||||
│ Variable (string) tTmp
|
||||
│ Attributes
|
||||
│ Scope : local
|
||||
│ Text :
|
||||
│ - Max. Text Size: 30
|
||||
│ + Max. Text Size: 50
|
||||
│
|
||||
│ Variable (int32) vaTap
|
||||
│ Attributes
|
||||
│ Scope: local
|
||||
│ Value: 0
|
||||
│
|
||||
│ Variable (int32) xc1
|
||||
│ @@ -370,165 +336,50 @@
|
||||
│ Scope : local
|
||||
│ Dragging : 0
|
||||
│ Send Component ID : disabled
|
||||
@@ -116,6 +344,137 @@
|
||||
│ Text :
|
||||
│ Max. Text Size : 4
|
||||
│
|
||||
│ - Events
|
||||
│ - Touch Press Event
|
||||
│ - tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||
│ - if(entn1.txt=="")
|
||||
│ - {
|
||||
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
│ -
|
||||
│ Text f2Icon
|
||||
│ Attributes
|
||||
│ Scope : local
|
||||
│ Dragging : 0
|
||||
│ Send Component ID : disabled
|
||||
│ Associated Keyboard: none
|
||||
│ Text :
|
||||
│ Max. Text Size : 4
|
||||
│
|
||||
│ - Events
|
||||
│ - Touch Press Event
|
||||
│ - tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||
│ - if(entn2.txt=="")
|
||||
│ - {
|
||||
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
│ -
|
||||
│ Text f3Icon
|
||||
│ Attributes
|
||||
│ Scope : local
|
||||
│ Dragging : 0
|
||||
│ Send Component ID : disabled
|
||||
│ Associated Keyboard: none
|
||||
│ Text :
|
||||
│ Max. Text Size : 4
|
||||
│
|
||||
│ - Events
|
||||
│ - Touch Press Event
|
||||
│ - tSend.txt="event,buttonPress2,"+entn3.txt+",button"
|
||||
│ - if(entn3.txt=="")
|
||||
│ - {
|
||||
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
│ -
|
||||
│ Text f4Icon
|
||||
│ Attributes
|
||||
│ Scope : local
|
||||
│ Dragging : 0
|
||||
│ Send Component ID : disabled
|
||||
│ Associated Keyboard: none
|
||||
│ Text :
|
||||
│ Max. Text Size : 4
|
||||
│
|
||||
│ - Events
|
||||
│ - Touch Press Event
|
||||
│ - tSend.txt="event,buttonPress2,"+entn4.txt+",button"
|
||||
│ - if(entn4.txt=="")
|
||||
│ - {
|
||||
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
│ -
|
||||
│ Text f5Icon
|
||||
│ Attributes
|
||||
│ Scope : local
|
||||
│ Dragging : 0
|
||||
│ Send Component ID : disabled
|
||||
│ Associated Keyboard: none
|
||||
│ Text :
|
||||
│ Max. Text Size : 4
|
||||
│
|
||||
│ - Events
|
||||
│ - Touch Press Event
|
||||
│ - tSend.txt="event,buttonPress2,"+entn5.txt+",button"
|
||||
│ - if(entn5.txt=="")
|
||||
│ - {
|
||||
│ - tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
│ -
|
||||
│ -Text m0
|
||||
│ - Attributes
|
||||
│ - Scope : local
|
||||
@@ -143,7 +502,7 @@
|
||||
│ Send Component ID : disabled
|
||||
│ Associated Keyboard: none
|
||||
│ Text : PM
|
||||
│ @@ -572,15 +549,14 @@
|
||||
│ @@ -710,15 +561,14 @@
|
||||
│ if(tTmp.txt!="")
|
||||
│ {
|
||||
│ covx tTmp.txt,defaultFontColor,0,0
|
||||
@@ -159,3 +518,48 @@
|
||||
│ if(tAMPM.txt=="")
|
||||
│ {
|
||||
│ vis tAMPM,0
|
||||
│ @@ -839,44 +689,34 @@
|
||||
│ //e6Val
|
||||
│ spstr strCommand.txt,e6Val.txt,"~",60
|
||||
│ //f1Icon
|
||||
│ spstr strCommand.txt,f1Icon.txt,"~",63
|
||||
│ //f1Icon Color
|
||||
│ spstr strCommand.txt,tTmp.txt,"~",64
|
||||
│ covx tTmp.txt,f1Icon.pco,0,0
|
||||
│ - //f1Icon intNameEntity
|
||||
│ - spstr strCommand.txt,entn1.txt,"~",62
|
||||
│ //f2Icon
|
||||
│ spstr strCommand.txt,f2Icon.txt,"~",69
|
||||
│ //f2Icon Color
|
||||
│ spstr strCommand.txt,tTmp.txt,"~",70
|
||||
│ covx tTmp.txt,f2Icon.pco,0,0
|
||||
│ - //f2Icon intNameEntity
|
||||
│ - spstr strCommand.txt,entn2.txt,"~",68
|
||||
│ //f3Icon
|
||||
│ spstr strCommand.txt,f3Icon.txt,"~",75
|
||||
│ //f3Icon Color
|
||||
│ spstr strCommand.txt,tTmp.txt,"~",76
|
||||
│ covx tTmp.txt,f3Icon.pco,0,0
|
||||
│ - //f3Icon intNameEntity
|
||||
│ - spstr strCommand.txt,entn3.txt,"~",74
|
||||
│ //f4Icon
|
||||
│ spstr strCommand.txt,f4Icon.txt,"~",81
|
||||
│ //f4Icon Color
|
||||
│ spstr strCommand.txt,tTmp.txt,"~",82
|
||||
│ covx tTmp.txt,f4Icon.pco,0,0
|
||||
│ - //f4Icon intNameEntity
|
||||
│ - spstr strCommand.txt,entn4.txt,"~",80
|
||||
│ //f5Icon
|
||||
│ spstr strCommand.txt,f5Icon.txt,"~",87
|
||||
│ //f5Icon Color
|
||||
│ spstr strCommand.txt,tTmp.txt,"~",88
|
||||
│ covx tTmp.txt,f5Icon.pco,0,0
|
||||
│ - //f5Icon intNameEntity
|
||||
│ - spstr strCommand.txt,entn5.txt,"~",86
|
||||
│ }
|
||||
│ if(tInstruction.txt=="notify")
|
||||
│ {
|
||||
│ spstr strCommand.txt,tNotifyHead.txt,"~",1
|
||||
│ spstr strCommand.txt,tNotifyText.txt,"~",2
|
||||
│ if(tNotifyHead.txt!=""||tNotifyText.txt!="")
|
||||
│ {
|
||||
|
||||
@@ -14,6 +14,8 @@ Program.s
|
||||
//color vars
|
||||
int defaultFontColor=65535
|
||||
int defaultBcoColor=6371
|
||||
//feature flags
|
||||
int featNewSliders=0
|
||||
// fix touch offset
|
||||
//lcd_dev fffb 0002 0000 0020
|
||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardAlarm
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardChart
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardEntities
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
//wup=cardEntities
|
||||
//remove background & activate reparse mode
|
||||
@@ -1856,8 +1868,13 @@ Hotspot m0
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity1.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type1.txt=="fan")
|
||||
{
|
||||
@@ -1899,8 +1916,13 @@ Hotspot m1
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity2.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type2.txt=="fan")
|
||||
{
|
||||
@@ -1942,8 +1964,13 @@ Hotspot m2
|
||||
}
|
||||
if(type3.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity3.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type3.txt=="fan")
|
||||
{
|
||||
@@ -1985,8 +2012,13 @@ Hotspot m3
|
||||
}
|
||||
if(type4.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity4.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type4.txt=="fan")
|
||||
{
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardGrid
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
//remove background & activate reparse mode
|
||||
vis p0,0
|
||||
@@ -259,7 +271,7 @@ Text tEntity4
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 16
|
||||
x coordinate : 22
|
||||
y coordinate : 274
|
||||
Width : 140
|
||||
Height : 30
|
||||
@@ -1052,7 +1064,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -1161,6 +1179,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -1182,6 +1211,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -1203,6 +1243,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -1224,6 +1275,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -1245,6 +1307,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -1266,6 +1339,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardGrid2
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
//remove background & activate reparse mode
|
||||
vis p0,0
|
||||
@@ -991,26 +1003,26 @@ Button bEntity7
|
||||
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")
|
||||
tTmp.txt=type7.txt
|
||||
pageIcons.tTmp1.txt=tEntity7.txt
|
||||
pageIcons.tTmp2.txt=entn7.txt
|
||||
pageIcons.tTmp3.txt=bEntity7.txt
|
||||
if(type7.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type7.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type7.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1057,26 +1069,26 @@ Button bEntity8
|
||||
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")
|
||||
tTmp.txt=type8.txt
|
||||
pageIcons.tTmp1.txt=tEntity8.txt
|
||||
pageIcons.tTmp2.txt=entn8.txt
|
||||
pageIcons.tTmp3.txt=bEntity8.txt
|
||||
if(type8.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type8.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type8.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1274,7 +1286,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -1383,6 +1401,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -1404,6 +1433,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -1425,6 +1465,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -1446,6 +1497,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -1467,6 +1529,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -1488,6 +1561,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
@@ -1509,6 +1593,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",53
|
||||
@@ -1530,6 +1625,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",59
|
||||
@@ -1616,6 +1722,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardLChart
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardMedia
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
@@ -1485,6 +1497,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1506,6 +1529,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1527,6 +1561,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1548,6 +1593,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",44
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1569,6 +1625,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1590,6 +1657,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",56
|
||||
covx tTmp.txt,sys0,0,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardPower
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
@@ -1652,6 +1664,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardQR
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardThermo
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
@@ -28,6 +40,11 @@ Page cardThermo
|
||||
vis xTempMin1,0
|
||||
vis xTempMax1,0
|
||||
vis xTempStep1,0
|
||||
vis xTempDest,0
|
||||
vis btUp,0
|
||||
vis btDown,0
|
||||
vis tCF,0
|
||||
vis btDetail,0
|
||||
//tEntity.txt=tHeading.txt
|
||||
// disable all buttons
|
||||
vis bt0,0
|
||||
@@ -1730,6 +1747,20 @@ Timer tmSerial
|
||||
vis xTempDest2,1
|
||||
vis bDown2,1
|
||||
vis tCF2,1
|
||||
}else
|
||||
{
|
||||
vis btUp,1
|
||||
vis xTempDest,1
|
||||
vis btDown,1
|
||||
vis tCF,1
|
||||
vis btUp1,0
|
||||
vis xTempDest1,0
|
||||
vis btDown1,0
|
||||
vis tCF1,0
|
||||
vis bUp2,0
|
||||
vis xTempDest2,0
|
||||
vis bDown2,0
|
||||
vis tCF2,0
|
||||
}
|
||||
//Show btDetail
|
||||
spstr strCommand.txt,tTmp.txt,"~",58
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Program.s
|
||||
0 Component(s)
|
||||
13 Line(s) of event code
|
||||
13 Unique line(s) of event code
|
||||
14 Line(s) of event code
|
||||
14 Unique line(s) of event code
|
||||
popupThermo
|
||||
44 Component(s)
|
||||
523 Line(s) of event code
|
||||
@@ -10,30 +10,26 @@ pageIcons
|
||||
7 Component(s)
|
||||
0 Line(s) of event code
|
||||
0 Unique line(s) of event code
|
||||
popupNotify
|
||||
19 Component(s)
|
||||
267 Line(s) of event code
|
||||
172 Unique line(s) of event code
|
||||
pageStartup
|
||||
20 Component(s)
|
||||
198 Line(s) of event code
|
||||
137 Unique line(s) of event code
|
||||
popupTimer
|
||||
42 Component(s)
|
||||
516 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
|
||||
cardLChart
|
||||
33 Component(s)
|
||||
437 Line(s) of event code
|
||||
296 Unique line(s) of event code
|
||||
412 Line(s) of event code
|
||||
267 Unique line(s) of event code
|
||||
popupInSel
|
||||
34 Component(s)
|
||||
621 Line(s) of event code
|
||||
297 Unique line(s) of event code
|
||||
pageStartup
|
||||
20 Component(s)
|
||||
193 Line(s) of event code
|
||||
135 Unique line(s) of event code
|
||||
popupNotify
|
||||
19 Component(s)
|
||||
267 Line(s) of event code
|
||||
172 Unique line(s) of event code
|
||||
pageTest
|
||||
26 Component(s)
|
||||
68 Line(s) of event code
|
||||
@@ -46,53 +42,61 @@ popupFan
|
||||
27 Component(s)
|
||||
355 Line(s) of event code
|
||||
206 Unique line(s) of event code
|
||||
cardChart
|
||||
33 Component(s)
|
||||
447 Line(s) of event code
|
||||
297 Unique line(s) of event code
|
||||
cardQR
|
||||
34 Component(s)
|
||||
410 Line(s) of event code
|
||||
238 Unique line(s) of event code
|
||||
cardAlarm
|
||||
43 Component(s)
|
||||
500 Line(s) of event code
|
||||
273 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
523 Line(s) of event code
|
||||
295 Unique line(s) of event code
|
||||
screensaver
|
||||
46 Component(s)
|
||||
435 Line(s) of event code
|
||||
309 Unique line(s) of event code
|
||||
cardGrid2
|
||||
52 Component(s)
|
||||
611 Line(s) of event code
|
||||
319 Unique line(s) of event code
|
||||
cardLChart
|
||||
33 Component(s)
|
||||
402 Line(s) of event code
|
||||
266 Unique line(s) of event code
|
||||
cardThermo
|
||||
57 Component(s)
|
||||
540 Line(s) of event code
|
||||
319 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
649 Line(s) of event code
|
||||
322 Unique line(s) of event code
|
||||
420 Line(s) of event code
|
||||
239 Unique line(s) of event code
|
||||
popupLightNew
|
||||
23 Component(s)
|
||||
412 Line(s) of event code
|
||||
209 Unique line(s) of event code
|
||||
screensaver2
|
||||
58 Component(s)
|
||||
348 Line(s) of event code
|
||||
245 Unique line(s) of event code
|
||||
362 Line(s) of event code
|
||||
248 Unique line(s) of event code
|
||||
cardThermo
|
||||
57 Component(s)
|
||||
569 Line(s) of event code
|
||||
337 Unique line(s) of event code
|
||||
cardAlarm
|
||||
43 Component(s)
|
||||
510 Line(s) of event code
|
||||
274 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
713 Line(s) of event code
|
||||
357 Unique line(s) of event code
|
||||
screensaver
|
||||
46 Component(s)
|
||||
445 Line(s) of event code
|
||||
310 Unique line(s) of event code
|
||||
popupLight
|
||||
28 Component(s)
|
||||
412 Line(s) of event code
|
||||
227 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
593 Line(s) of event code
|
||||
333 Unique line(s) of event code
|
||||
cardPower
|
||||
54 Component(s)
|
||||
527 Line(s) of event code
|
||||
347 Unique line(s) of event code
|
||||
541 Line(s) of event code
|
||||
350 Unique line(s) of event code
|
||||
cardGrid2
|
||||
52 Component(s)
|
||||
703 Line(s) of event code
|
||||
385 Unique line(s) of event code
|
||||
cardEntities
|
||||
67 Component(s)
|
||||
1170 Line(s) of event code
|
||||
532 Unique line(s) of event code
|
||||
1204 Line(s) of event code
|
||||
536 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
22 Page(s)
|
||||
847 Component(s)
|
||||
9920 Line(s) of event code
|
||||
2360 Unique line(s) of event code
|
||||
23 Page(s)
|
||||
875 Component(s)
|
||||
10707 Line(s) of event code
|
||||
2466 Unique line(s) of event code
|
||||
|
||||
@@ -396,7 +396,7 @@ Text tVersion
|
||||
Horizontal Alignment: center
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text : 51
|
||||
Text : 53
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
@@ -575,6 +575,12 @@ Timer tmSerial
|
||||
{
|
||||
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")
|
||||
{
|
||||
|
||||
@@ -24,12 +24,13 @@ Page popupLight
|
||||
tEntity.txt=pageIcons.tTmp1.txt
|
||||
//get entity id
|
||||
entn.txt=pageIcons.tTmp2.txt
|
||||
tIcon1.txt=pageIcons.tTmp3.txt
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
vis tTmp,0
|
||||
vis tInstruction,0
|
||||
vis tId,0
|
||||
vis bEffect,0
|
||||
vis hBrightness,0
|
||||
//page open event
|
||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||
// craft command
|
||||
@@ -46,16 +47,16 @@ Page popupLight
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
//disable brightness by default
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis hBrightness,1
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
//disable color temp by default
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
//disable color wheel components by default
|
||||
vis bColor,0
|
||||
//vis t0,0
|
||||
vis t0,0
|
||||
vis pColorWheel,0
|
||||
//vis t0,0
|
||||
popupLight.bco=defaultBcoColor
|
||||
@@ -74,83 +75,115 @@ Page popupLight
|
||||
}
|
||||
if(defaultBcoColor==0)
|
||||
{
|
||||
hBrightness.pic=24
|
||||
hBrightness.pic1=25
|
||||
hBrightness.pic2=15
|
||||
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
|
||||
Attributes
|
||||
ID : 11
|
||||
ID : 20
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (int32) mode
|
||||
Attributes
|
||||
ID : 13
|
||||
ID : 22
|
||||
Scope: local
|
||||
Value: 1
|
||||
|
||||
Variable (int32) mode_temp
|
||||
Attributes
|
||||
ID : 14
|
||||
ID : 23
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 9
|
||||
ID : 16
|
||||
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
|
||||
ID : 26
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 200
|
||||
|
||||
Variable (string) tTmp
|
||||
Text t0
|
||||
Attributes
|
||||
ID : 21
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Text tEntity
|
||||
Attributes
|
||||
ID : 2
|
||||
ID : 24
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 108
|
||||
y coordinate : 21
|
||||
Width : 263
|
||||
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
|
||||
@@ -160,25 +193,244 @@ Text tEntity
|
||||
Associated Keyboard : none
|
||||
Font ID : 1
|
||||
Back. Color : 6371
|
||||
Font Color : 65535
|
||||
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
|
||||
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
|
||||
Max. Text Size : 25
|
||||
Word wrap : disabled
|
||||
Horizontal 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
|
||||
ID : 1
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
Opacity : 127
|
||||
x coordinate : 249
|
||||
y coordinate : 105
|
||||
x coordinate : 0
|
||||
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
|
||||
Height : 160
|
||||
Effect : load
|
||||
@@ -216,44 +468,30 @@ Picture pColorWheel
|
||||
|
||||
Slider hBrightness
|
||||
Attributes
|
||||
ID : 4
|
||||
ID : 7
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 105
|
||||
y coordinate : 64
|
||||
Width : 100
|
||||
Height : 250
|
||||
x coordinate : 61
|
||||
y coordinate : 261
|
||||
Width : 335
|
||||
Height : 43
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
Direction : vertical
|
||||
Direction : horizontal
|
||||
Fill : image
|
||||
Cursor width : auto
|
||||
Cursor height : 1
|
||||
Back. Picture ID : 65535
|
||||
Slided Back. Picture ID: 65535
|
||||
Cursor height : 255
|
||||
Back. Picture ID : 5
|
||||
Slided Back. Picture ID: 4
|
||||
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
|
||||
@@ -274,24 +512,24 @@ Slider hBrightness
|
||||
|
||||
Slider hTempSlider
|
||||
Attributes
|
||||
ID : 10
|
||||
ID : 19
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 279
|
||||
y coordinate : 64
|
||||
Width : 100
|
||||
Height : 250
|
||||
x coordinate : 61
|
||||
y coordinate : 178
|
||||
Width : 335
|
||||
Height : 44
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
Direction : vertical
|
||||
Direction : horizontal
|
||||
Fill : image
|
||||
Cursor width : auto
|
||||
Cursor height : 255
|
||||
Back. Picture ID : 7
|
||||
Slided Back. Picture ID: 7
|
||||
Back. Picture ID : 22
|
||||
Slided Back. Picture ID: 23
|
||||
Position : 50
|
||||
Upper range limit : 100
|
||||
Lower range limit : 0
|
||||
@@ -318,12 +556,12 @@ Slider hTempSlider
|
||||
|
||||
Button b0
|
||||
Attributes
|
||||
ID : 3
|
||||
ID : 5
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 413
|
||||
x coordinate : 397
|
||||
y coordinate : 8
|
||||
Width : 50
|
||||
Height : 50
|
||||
@@ -364,13 +602,13 @@ Button b0
|
||||
|
||||
Button bColor
|
||||
Attributes
|
||||
ID : 12
|
||||
ID : 21
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 30
|
||||
y coordinate : 146
|
||||
x coordinate : 93
|
||||
y coordinate : 68
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -401,8 +639,8 @@ Button bColor
|
||||
//enable color wheel
|
||||
vis pColorWheel,1
|
||||
//disable color temp
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
}else
|
||||
{
|
||||
@@ -412,21 +650,21 @@ Button bColor
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
//enable color temp
|
||||
//vis t4,1
|
||||
//vis t3,1
|
||||
vis t4,1
|
||||
vis t3,1
|
||||
vis hTempSlider,1
|
||||
}
|
||||
}
|
||||
|
||||
Button bEffect
|
||||
Attributes
|
||||
ID : 17
|
||||
ID : 27
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 30
|
||||
y coordinate : 213
|
||||
x coordinate : 396
|
||||
y coordinate : 95
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -453,17 +691,18 @@ Button bEffect
|
||||
Touch Press Event
|
||||
pageIcons.tTmp1.txt=tEntity.txt
|
||||
pageIcons.tTmp2.txt=entn.txt
|
||||
pageIcons.tTmp3.txt=tIcon1.txt
|
||||
page popupInSel
|
||||
|
||||
Dual-state Button btOnOff1
|
||||
Attributes
|
||||
ID : 5
|
||||
ID : 8
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 30
|
||||
y coordinate : 77
|
||||
x coordinate : 341
|
||||
y coordinate : 95
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -502,43 +741,18 @@ Dual-state Button btOnOff1
|
||||
|
||||
Timer tmCooldown
|
||||
Attributes
|
||||
ID : 15
|
||||
ID : 25
|
||||
Scope : local
|
||||
Period (ms): 100
|
||||
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
|
||||
ID : 15
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : yes
|
||||
@@ -593,12 +807,11 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||
//vis tIcon1,1
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
covx tTmp.txt,sys0,0,0
|
||||
col.val=sys0
|
||||
//tEntity.pco=sys0
|
||||
tIcon1.pco=sys0
|
||||
// get Button State
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -607,26 +820,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
}else
|
||||
{
|
||||
//vis t1,1
|
||||
//vis t2,1
|
||||
vis t1,1
|
||||
vis t2,1
|
||||
vis hBrightness,1
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hBrightness.val=sys0
|
||||
tmDrawCooldown.en=1
|
||||
tmDrawCooldown.tim=500
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
hBrightness.val=sys0
|
||||
}
|
||||
}
|
||||
// get ColorTemp value
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis hTempSlider,0
|
||||
//vis t3,0
|
||||
//vis t4,0
|
||||
vis t3,0
|
||||
vis t4,0
|
||||
mode_temp.val=0
|
||||
// mode == 1 is temp controls currently shown
|
||||
if(mode.val==1)
|
||||
@@ -649,8 +863,8 @@ Timer tmSerial
|
||||
{
|
||||
mode_temp.val=1
|
||||
vis hTempSlider,1
|
||||
//vis t3,1
|
||||
//vis t4,1
|
||||
vis t3,1
|
||||
vis t4,1
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -669,12 +883,12 @@ Timer tmSerial
|
||||
// disable -> isn't supported
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t0,0
|
||||
vis t0,0
|
||||
vis bColor,0
|
||||
vis pColorWheel,0
|
||||
}else
|
||||
{
|
||||
//vis t0,1
|
||||
vis t0,1
|
||||
//only enable bColor button if color temp is also supported
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
@@ -686,11 +900,11 @@ Timer tmSerial
|
||||
}
|
||||
}
|
||||
// set t0 Color (Localization)
|
||||
//spstr strCommand.txt,t0.txt,"~",8
|
||||
spstr strCommand.txt,t0.txt,"~",8
|
||||
// set t4 Temperature (Localization)
|
||||
//spstr strCommand.txt,t4.txt,"~",9
|
||||
spstr strCommand.txt,t4.txt,"~",9
|
||||
// set t1 Brightness (Localization)
|
||||
//spstr strCommand.txt,t1.txt,"~",10
|
||||
spstr strCommand.txt,t1.txt,"~",10
|
||||
// activate effect button
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
if(tTmp.txt=="enable")
|
||||
@@ -825,7 +1039,7 @@ Timer tmSerial
|
||||
|
||||
Timer tmSleep
|
||||
Attributes
|
||||
ID : 7
|
||||
ID : 14
|
||||
Scope : local
|
||||
Period (ms): 1000
|
||||
Enabled : yes
|
||||
@@ -845,7 +1059,7 @@ Timer tmSleep
|
||||
|
||||
TouchCap tc0
|
||||
Attributes
|
||||
ID : 6
|
||||
ID : 13
|
||||
Scope: local
|
||||
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
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
if(tInstruction.txt=="timeout2")
|
||||
{
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
|
||||
@@ -19,6 +19,18 @@ Page screensaver
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
recmod=1
|
||||
baud=115200
|
||||
vis tInstruction,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page screensaver2
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
recmod=1
|
||||
baud=115200
|
||||
vis tInstruction,0
|
||||
@@ -1617,6 +1629,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
{
|
||||
|
||||
@@ -14,6 +14,8 @@ Program.s
|
||||
//color vars
|
||||
int defaultFontColor=65535
|
||||
int defaultBcoColor=6371
|
||||
//feature flags
|
||||
int featNewSliders=0
|
||||
// fix touch offset
|
||||
//lcd_dev fffb 0002 0000 0020
|
||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardAlarm
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardChart
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardEntities
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
//wup=cardEntities
|
||||
//remove background & activate reparse mode
|
||||
@@ -965,8 +977,13 @@ Hotspot m0
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity1.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type1.txt=="fan")
|
||||
{
|
||||
@@ -999,8 +1016,13 @@ Hotspot m1
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity2.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type2.txt=="fan")
|
||||
{
|
||||
@@ -1033,8 +1055,13 @@ Hotspot m2
|
||||
}
|
||||
if(type3.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity3.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type3.txt=="fan")
|
||||
{
|
||||
@@ -1067,8 +1094,13 @@ Hotspot m3
|
||||
}
|
||||
if(type4.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity4.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type4.txt=="fan")
|
||||
{
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardGrid
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
//remove background & activate reparse mode
|
||||
vis p0,0
|
||||
@@ -605,7 +617,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -713,6 +731,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -734,6 +763,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -755,6 +795,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -776,6 +827,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -797,6 +859,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -818,6 +891,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardGrid2
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
//remove background & activate reparse mode
|
||||
vis p0,0
|
||||
@@ -559,26 +571,26 @@ Button bEntity7
|
||||
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")
|
||||
tTmp.txt=type7.txt
|
||||
pageIcons.tTmp1.txt=tEntity7.txt
|
||||
pageIcons.tTmp2.txt=entn7.txt
|
||||
pageIcons.tTmp3.txt=bEntity7.txt
|
||||
if(type7.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type7.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type7.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -603,26 +615,26 @@ Button bEntity8
|
||||
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")
|
||||
tTmp.txt=type8.txt
|
||||
pageIcons.tTmp1.txt=tEntity8.txt
|
||||
pageIcons.tTmp2.txt=entn8.txt
|
||||
pageIcons.tTmp3.txt=bEntity8.txt
|
||||
if(type8.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type8.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type8.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -739,7 +751,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -847,6 +865,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -868,6 +897,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -889,6 +929,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -910,6 +961,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -931,6 +993,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -952,6 +1025,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
@@ -973,6 +1057,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",53
|
||||
@@ -994,6 +1089,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",59
|
||||
@@ -1080,6 +1186,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardLChart
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardMedia
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
@@ -997,6 +1009,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1018,6 +1041,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1039,6 +1073,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1060,6 +1105,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",44
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1081,6 +1137,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1102,6 +1169,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",56
|
||||
covx tTmp.txt,sys0,0,0
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardPower
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
@@ -964,6 +976,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardQR
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -11,6 +11,18 @@ Page cardThermo
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
@@ -20,6 +32,11 @@ Page cardThermo
|
||||
vis xTempMin1,0
|
||||
vis xTempMax1,0
|
||||
vis xTempStep1,0
|
||||
vis xTempDest,0
|
||||
vis btUp,0
|
||||
vis btDown,0
|
||||
vis tCF,0
|
||||
vis btDetail,0
|
||||
//tEntity.txt=tHeading.txt
|
||||
// disable all buttons
|
||||
vis bt0,0
|
||||
@@ -1006,6 +1023,20 @@ Timer tmSerial
|
||||
vis xTempDest2,1
|
||||
vis bDown2,1
|
||||
vis tCF2,1
|
||||
}else
|
||||
{
|
||||
vis btUp,1
|
||||
vis xTempDest,1
|
||||
vis btDown,1
|
||||
vis tCF,1
|
||||
vis btUp1,0
|
||||
vis xTempDest1,0
|
||||
vis btDown1,0
|
||||
vis tCF1,0
|
||||
vis bUp2,0
|
||||
vis xTempDest2,0
|
||||
vis bDown2,0
|
||||
vis tCF2,0
|
||||
}
|
||||
//Show btDetail
|
||||
spstr strCommand.txt,tTmp.txt,"~",58
|
||||
|
||||
@@ -145,7 +145,7 @@ Text tVersion
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : 51
|
||||
Text : 53
|
||||
Max. Text Size : 10
|
||||
|
||||
Picture p0
|
||||
@@ -279,6 +279,12 @@ Timer tmSerial
|
||||
{
|
||||
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")
|
||||
{
|
||||
|
||||
@@ -16,12 +16,13 @@ Page popupLight
|
||||
tEntity.txt=pageIcons.tTmp1.txt
|
||||
//get entity id
|
||||
entn.txt=pageIcons.tTmp2.txt
|
||||
tIcon1.txt=pageIcons.tTmp3.txt
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
vis tTmp,0
|
||||
vis tInstruction,0
|
||||
vis tId,0
|
||||
vis bEffect,0
|
||||
vis hBrightness,0
|
||||
//page open event
|
||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||
// craft command
|
||||
@@ -38,16 +39,16 @@ Page popupLight
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
//disable brightness by default
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis hBrightness,1
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
//disable color temp by default
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
//disable color wheel components by default
|
||||
vis bColor,0
|
||||
//vis t0,0
|
||||
vis t0,0
|
||||
vis pColorWheel,0
|
||||
//vis t0,0
|
||||
popupLight.bco=defaultBcoColor
|
||||
@@ -66,18 +67,14 @@ Page popupLight
|
||||
}
|
||||
if(defaultBcoColor==0)
|
||||
{
|
||||
hBrightness.pic=24
|
||||
hBrightness.pic1=25
|
||||
hBrightness.pic2=15
|
||||
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
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -100,29 +97,56 @@ Variable (string) strCommand
|
||||
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
|
||||
Text t0
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
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
|
||||
Attributes
|
||||
@@ -133,6 +157,48 @@ Text tEntity
|
||||
Text : tEntity1
|
||||
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
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -178,20 +244,6 @@ Slider hBrightness
|
||||
|
||||
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
|
||||
@@ -280,8 +332,8 @@ Button bColor
|
||||
//enable color wheel
|
||||
vis pColorWheel,1
|
||||
//disable color temp
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
}else
|
||||
{
|
||||
@@ -291,8 +343,8 @@ Button bColor
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
//enable color temp
|
||||
//vis t4,1
|
||||
//vis t3,1
|
||||
vis t4,1
|
||||
vis t3,1
|
||||
vis hTempSlider,1
|
||||
}
|
||||
}
|
||||
@@ -310,6 +362,7 @@ Button bEffect
|
||||
Touch Press Event
|
||||
pageIcons.tTmp1.txt=tEntity.txt
|
||||
pageIcons.tTmp2.txt=entn.txt
|
||||
pageIcons.tTmp3.txt=tIcon1.txt
|
||||
page popupInSel
|
||||
|
||||
Dual-state Button btOnOff1
|
||||
@@ -342,37 +395,13 @@ Dual-state Button btOnOff1
|
||||
Timer tmCooldown
|
||||
Attributes
|
||||
Scope : local
|
||||
Period (ms): 100
|
||||
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
|
||||
@@ -429,12 +458,11 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||
//vis tIcon1,1
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
covx tTmp.txt,sys0,0,0
|
||||
col.val=sys0
|
||||
//tEntity.pco=sys0
|
||||
tIcon1.pco=sys0
|
||||
// get Button State
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -443,26 +471,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
}else
|
||||
{
|
||||
//vis t1,1
|
||||
//vis t2,1
|
||||
vis t1,1
|
||||
vis t2,1
|
||||
vis hBrightness,1
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hBrightness.val=sys0
|
||||
tmDrawCooldown.en=1
|
||||
tmDrawCooldown.tim=500
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
hBrightness.val=sys0
|
||||
}
|
||||
}
|
||||
// get ColorTemp value
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis hTempSlider,0
|
||||
//vis t3,0
|
||||
//vis t4,0
|
||||
vis t3,0
|
||||
vis t4,0
|
||||
mode_temp.val=0
|
||||
// mode == 1 is temp controls currently shown
|
||||
if(mode.val==1)
|
||||
@@ -485,8 +514,8 @@ Timer tmSerial
|
||||
{
|
||||
mode_temp.val=1
|
||||
vis hTempSlider,1
|
||||
//vis t3,1
|
||||
//vis t4,1
|
||||
vis t3,1
|
||||
vis t4,1
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -505,12 +534,12 @@ Timer tmSerial
|
||||
// disable -> isn't supported
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t0,0
|
||||
vis t0,0
|
||||
vis bColor,0
|
||||
vis pColorWheel,0
|
||||
}else
|
||||
{
|
||||
//vis t0,1
|
||||
vis t0,1
|
||||
//only enable bColor button if color temp is also supported
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
@@ -522,11 +551,11 @@ Timer tmSerial
|
||||
}
|
||||
}
|
||||
// set t0 Color (Localization)
|
||||
//spstr strCommand.txt,t0.txt,"~",8
|
||||
spstr strCommand.txt,t0.txt,"~",8
|
||||
// set t4 Temperature (Localization)
|
||||
//spstr strCommand.txt,t4.txt,"~",9
|
||||
spstr strCommand.txt,t4.txt,"~",9
|
||||
// set t1 Brightness (Localization)
|
||||
//spstr strCommand.txt,t1.txt,"~",10
|
||||
spstr strCommand.txt,t1.txt,"~",10
|
||||
// activate effect button
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
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
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
if(tInstruction.txt=="timeout2")
|
||||
{
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
|
||||
@@ -11,6 +11,18 @@ Page screensaver
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
recmod=1
|
||||
baud=115200
|
||||
vis tInstruction,0
|
||||
|
||||
@@ -11,6 +11,18 @@ Page screensaver2
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
recmod=1
|
||||
baud=115200
|
||||
vis tInstruction,0
|
||||
@@ -804,6 +816,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,8 @@ Program.s
|
||||
//color vars
|
||||
int defaultFontColor=65535
|
||||
int defaultBcoColor=6371
|
||||
//feature flags
|
||||
int featNewSliders=0
|
||||
// fix touch offset (Removed for US version)
|
||||
//lcd_dev fffb 0002 0000 0020
|
||||
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
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn2
|
||||
Attributes
|
||||
ID : 49
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn3
|
||||
Attributes
|
||||
ID : 50
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn4
|
||||
Attributes
|
||||
ID : 51
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn5
|
||||
Attributes
|
||||
ID : 61
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn6
|
||||
Attributes
|
||||
ID : 88
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
ID : 90
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
Max. Text Size: 38
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
ID : 89
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
Max. Text Size: 38
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
@@ -1115,9 +1115,9 @@ Slider hSlider6
|
||||
|
||||
Events
|
||||
Touch Release Event
|
||||
nNum5.val=hSlider5.val
|
||||
nNum6.val=hSlider6.val
|
||||
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
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
@@ -2577,7 +2577,7 @@ Dual-state Button btOnOff6
|
||||
Events
|
||||
Touch Press Event
|
||||
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
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
@@ -2618,8 +2618,13 @@ Hotspot m0
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity1.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type1.txt=="fan")
|
||||
{
|
||||
@@ -2661,8 +2666,13 @@ Hotspot m1
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity2.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type2.txt=="fan")
|
||||
{
|
||||
@@ -2704,8 +2714,13 @@ Hotspot m2
|
||||
}
|
||||
if(type3.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity3.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type3.txt=="fan")
|
||||
{
|
||||
@@ -2747,8 +2762,13 @@ Hotspot m3
|
||||
}
|
||||
if(type4.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity4.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type4.txt=="fan")
|
||||
{
|
||||
@@ -2790,8 +2810,13 @@ Hotspot m4
|
||||
}
|
||||
if(type5.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity5.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type5.txt=="fan")
|
||||
{
|
||||
@@ -2833,8 +2858,13 @@ Hotspot m5
|
||||
}
|
||||
if(type6.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity5.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type6.txt=="fan")
|
||||
{
|
||||
|
||||
@@ -1052,7 +1052,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -1161,6 +1167,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -1182,6 +1199,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -1203,6 +1231,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -1224,6 +1263,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -1245,6 +1295,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -1266,6 +1327,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
|
||||
@@ -1036,26 +1036,26 @@ Button bEntity7
|
||||
Events
|
||||
Touch Press Event
|
||||
tmLP.en=1
|
||||
tTmp.txt=type2.txt
|
||||
pageIcons.tTmp1.txt=tEntity2.txt
|
||||
pageIcons.tTmp2.txt=entn2.txt
|
||||
pageIcons.tTmp3.txt=bEntity2.txt
|
||||
if(type2.txt=="shutter")
|
||||
tTmp.txt=type7.txt
|
||||
pageIcons.tTmp1.txt=tEntity7.txt
|
||||
pageIcons.tTmp2.txt=entn7.txt
|
||||
pageIcons.tTmp3.txt=bEntity7.txt
|
||||
if(type7.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type2.txt=="input_sel")
|
||||
if(type7.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type2.txt=="timer")
|
||||
if(type7.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1102,26 +1102,26 @@ Button bEntity8
|
||||
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")
|
||||
tTmp.txt=type8.txt
|
||||
pageIcons.tTmp1.txt=tEntity8.txt
|
||||
pageIcons.tTmp2.txt=entn8.txt
|
||||
pageIcons.tTmp3.txt=bEntity8.txt
|
||||
if(type8.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type8.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type8.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1168,26 +1168,26 @@ Button bEntity9
|
||||
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")
|
||||
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
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type9.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type9.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn9.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1385,7 +1385,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -1494,6 +1500,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -1515,6 +1532,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -1536,6 +1564,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -1557,6 +1596,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -1578,6 +1628,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -1599,6 +1660,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
@@ -1620,6 +1692,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",53
|
||||
@@ -1641,6 +1724,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",59
|
||||
@@ -1662,6 +1756,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",65
|
||||
@@ -1748,6 +1853,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1485,6 +1485,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1506,6 +1517,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1527,6 +1549,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1548,6 +1581,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",44
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1569,6 +1613,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1590,6 +1645,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",56
|
||||
covx tTmp.txt,sys0,0,0
|
||||
|
||||
@@ -1514,6 +1514,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Program.s
|
||||
0 Component(s)
|
||||
13 Line(s) of event code
|
||||
13 Unique line(s) of event code
|
||||
14 Line(s) of event code
|
||||
14 Unique line(s) of event code
|
||||
pageIcons
|
||||
7 Component(s)
|
||||
0 Line(s) of event code
|
||||
@@ -14,38 +14,38 @@ popupNotify
|
||||
19 Component(s)
|
||||
267 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
|
||||
42 Component(s)
|
||||
516 Line(s) of event code
|
||||
257 Unique line(s) of event code
|
||||
cardGrid2
|
||||
56 Component(s)
|
||||
657 Line(s) of event code
|
||||
332 Unique line(s) of event code
|
||||
popupLight
|
||||
28 Component(s)
|
||||
412 Line(s) of event code
|
||||
227 Unique line(s) of event code
|
||||
popupFan
|
||||
27 Component(s)
|
||||
355 Line(s) of event code
|
||||
206 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
193 Line(s) of event code
|
||||
135 Unique line(s) of event code
|
||||
popupLightNew
|
||||
23 Component(s)
|
||||
412 Line(s) of event code
|
||||
209 Unique line(s) of event code
|
||||
cardChart
|
||||
33 Component(s)
|
||||
437 Line(s) of event code
|
||||
296 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
649 Line(s) of event code
|
||||
322 Unique line(s) of event code
|
||||
cardGrid2
|
||||
56 Component(s)
|
||||
748 Line(s) of event code
|
||||
410 Unique line(s) of event code
|
||||
cardLChart
|
||||
33 Component(s)
|
||||
402 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
|
||||
25 Component(s)
|
||||
402 Line(s) of event code
|
||||
@@ -64,20 +64,12 @@ popupInSel
|
||||
297 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
523 Line(s) of event code
|
||||
295 Unique line(s) of event code
|
||||
583 Line(s) of event code
|
||||
332 Unique line(s) of event code
|
||||
cardAlarm
|
||||
43 Component(s)
|
||||
500 Line(s) of event code
|
||||
273 Unique line(s) of event code
|
||||
cardPower
|
||||
54 Component(s)
|
||||
521 Line(s) of event code
|
||||
341 Unique line(s) of event code
|
||||
screensaver2
|
||||
58 Component(s)
|
||||
348 Line(s) of event code
|
||||
245 Unique line(s) of event code
|
||||
cardThermo
|
||||
57 Component(s)
|
||||
540 Line(s) of event code
|
||||
@@ -86,13 +78,25 @@ screensaver
|
||||
46 Component(s)
|
||||
429 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
|
||||
91 Component(s)
|
||||
1630 Line(s) of event code
|
||||
705 Unique line(s) of event code
|
||||
1666 Line(s) of event code
|
||||
711 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
703 Line(s) of event code
|
||||
356 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
22 Page(s)
|
||||
862 Component(s)
|
||||
10360 Line(s) of event code
|
||||
2492 Unique line(s) of event code
|
||||
23 Page(s)
|
||||
890 Component(s)
|
||||
11029 Line(s) of event code
|
||||
2600 Unique line(s) of event code
|
||||
|
||||
@@ -389,7 +389,7 @@ Text tVersion
|
||||
Horizontal Alignment: center
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text : 51
|
||||
Text : 53
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
@@ -568,8 +568,14 @@ Timer tmSerial
|
||||
{
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
|
||||
@@ -24,12 +24,13 @@ Page popupLight
|
||||
tEntity.txt=pageIcons.tTmp1.txt
|
||||
//get entity id
|
||||
entn.txt=pageIcons.tTmp2.txt
|
||||
tIcon1.txt=pageIcons.tTmp3.txt
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
vis tTmp,0
|
||||
vis tInstruction,0
|
||||
vis tId,0
|
||||
vis bEffect,0
|
||||
vis hBrightness,0
|
||||
//page open event
|
||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||
// craft command
|
||||
@@ -46,20 +47,20 @@ Page popupLight
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
//disable brightness by default
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis hBrightness,1
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
//disable color temp by default
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
//disable color wheel components by default
|
||||
vis bColor,0
|
||||
//vis t0,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)
|
||||
{
|
||||
@@ -74,83 +75,115 @@ Page popupLight
|
||||
}
|
||||
if(defaultBcoColor==0)
|
||||
{
|
||||
hTempSlider.pic=16
|
||||
hTempSlider.pic1=16
|
||||
hBrightness.pic=14
|
||||
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
|
||||
Attributes
|
||||
ID : 11
|
||||
ID : 20
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (int32) mode
|
||||
Attributes
|
||||
ID : 13
|
||||
ID : 22
|
||||
Scope: local
|
||||
Value: 1
|
||||
|
||||
Variable (int32) mode_temp
|
||||
Attributes
|
||||
ID : 14
|
||||
ID : 23
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 9
|
||||
ID : 16
|
||||
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
|
||||
ID : 26
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 200
|
||||
|
||||
Variable (string) tTmp
|
||||
Text t0
|
||||
Attributes
|
||||
ID : 21
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Text tEntity
|
||||
Attributes
|
||||
ID : 2
|
||||
ID : 24
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 19
|
||||
y coordinate : 21
|
||||
Width : 224
|
||||
x coordinate : 12
|
||||
y coordinate : 57
|
||||
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
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -160,31 +193,250 @@ Text tEntity
|
||||
Associated Keyboard : none
|
||||
Font ID : 1
|
||||
Back. Color : 6371
|
||||
Font Color : 65535
|
||||
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 : 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
|
||||
Max. Text Size : 25
|
||||
Word wrap : disabled
|
||||
Horizontal 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
|
||||
ID : 1
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
Opacity : 127
|
||||
x coordinate : 150
|
||||
y coordinate : 168
|
||||
Width : 160
|
||||
Height : 160
|
||||
x coordinate : 0
|
||||
y coordinate : 1
|
||||
Width : 319
|
||||
Height : 479
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
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
|
||||
Touch Press Event
|
||||
@@ -216,44 +468,30 @@ Picture pColorWheel
|
||||
|
||||
Slider hBrightness
|
||||
Attributes
|
||||
ID : 4
|
||||
ID : 7
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 25
|
||||
y coordinate : 127
|
||||
Width : 100
|
||||
Height : 250
|
||||
x coordinate : 12
|
||||
y coordinate : 409
|
||||
Width : 300
|
||||
Height : 44
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
Direction : vertical
|
||||
Direction : horizontal
|
||||
Fill : image
|
||||
Cursor width : auto
|
||||
Cursor height : 1
|
||||
Back. Picture ID : 65535
|
||||
Slided Back. Picture ID: 65535
|
||||
Cursor height : 255
|
||||
Back. Picture ID : 5
|
||||
Slided Back. Picture ID: 4
|
||||
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
|
||||
@@ -274,24 +512,24 @@ Slider hBrightness
|
||||
|
||||
Slider hTempSlider
|
||||
Attributes
|
||||
ID : 10
|
||||
ID : 19
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 187
|
||||
y coordinate : 127
|
||||
Width : 100
|
||||
Height : 250
|
||||
x coordinate : 12
|
||||
y coordinate : 304
|
||||
Width : 300
|
||||
Height : 44
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
Direction : vertical
|
||||
Direction : horizontal
|
||||
Fill : image
|
||||
Cursor width : auto
|
||||
Cursor height : 255
|
||||
Back. Picture ID : 7
|
||||
Slided Back. Picture ID: 7
|
||||
Back. Picture ID : 21
|
||||
Slided Back. Picture ID: 22
|
||||
Position : 50
|
||||
Upper range limit : 100
|
||||
Lower range limit : 0
|
||||
@@ -318,13 +556,13 @@ Slider hTempSlider
|
||||
|
||||
Button b0
|
||||
Attributes
|
||||
ID : 3
|
||||
ID : 5
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 256
|
||||
y coordinate : 12
|
||||
x coordinate : 266
|
||||
y coordinate : 14
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -364,13 +602,13 @@ Button b0
|
||||
|
||||
Button bColor
|
||||
Attributes
|
||||
ID : 12
|
||||
ID : 21
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 134
|
||||
y coordinate : 407
|
||||
x coordinate : 12
|
||||
y coordinate : 89
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -401,8 +639,8 @@ Button bColor
|
||||
//enable color wheel
|
||||
vis pColorWheel,1
|
||||
//disable color temp
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
}else
|
||||
{
|
||||
@@ -412,21 +650,21 @@ Button bColor
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
//enable color temp
|
||||
//vis t4,1
|
||||
//vis t3,1
|
||||
vis t4,1
|
||||
vis t3,1
|
||||
vis hTempSlider,1
|
||||
}
|
||||
}
|
||||
|
||||
Button bEffect
|
||||
Attributes
|
||||
ID : 17
|
||||
ID : 27
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 60
|
||||
y coordinate : 407
|
||||
x coordinate : 12
|
||||
y coordinate : 195
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -453,17 +691,18 @@ Button bEffect
|
||||
Touch Press Event
|
||||
pageIcons.tTmp1.txt=tEntity.txt
|
||||
pageIcons.tTmp2.txt=entn.txt
|
||||
pageIcons.tTmp3.txt=tIcon1.txt
|
||||
page popupInSel
|
||||
|
||||
Dual-state Button btOnOff1
|
||||
Attributes
|
||||
ID : 5
|
||||
ID : 8
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 208
|
||||
y coordinate : 407
|
||||
x coordinate : 12
|
||||
y coordinate : 142
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -502,43 +741,18 @@ Dual-state Button btOnOff1
|
||||
|
||||
Timer tmCooldown
|
||||
Attributes
|
||||
ID : 15
|
||||
ID : 25
|
||||
Scope : local
|
||||
Period (ms): 100
|
||||
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
|
||||
ID : 15
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : yes
|
||||
@@ -593,12 +807,11 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||
//vis tIcon1,1
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
covx tTmp.txt,sys0,0,0
|
||||
col.val=sys0
|
||||
//tEntity.pco=sys0
|
||||
tIcon1.pco=sys0
|
||||
// get Button State
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -607,26 +820,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
}else
|
||||
{
|
||||
//vis t1,1
|
||||
//vis t2,1
|
||||
vis t1,1
|
||||
vis t2,1
|
||||
vis hBrightness,1
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hBrightness.val=sys0
|
||||
tmDrawCooldown.en=1
|
||||
tmDrawCooldown.tim=500
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
hBrightness.val=sys0
|
||||
}
|
||||
}
|
||||
// get ColorTemp value
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis hTempSlider,0
|
||||
//vis t3,0
|
||||
//vis t4,0
|
||||
vis t3,0
|
||||
vis t4,0
|
||||
mode_temp.val=0
|
||||
// mode == 1 is temp controls currently shown
|
||||
if(mode.val==1)
|
||||
@@ -649,8 +863,8 @@ Timer tmSerial
|
||||
{
|
||||
mode_temp.val=1
|
||||
vis hTempSlider,1
|
||||
//vis t3,1
|
||||
//vis t4,1
|
||||
vis t3,1
|
||||
vis t4,1
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -669,12 +883,12 @@ Timer tmSerial
|
||||
// disable -> isn't supported
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t0,0
|
||||
vis t0,0
|
||||
vis bColor,0
|
||||
vis pColorWheel,0
|
||||
}else
|
||||
{
|
||||
//vis t0,1
|
||||
vis t0,1
|
||||
//only enable bColor button if color temp is also supported
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
@@ -686,11 +900,11 @@ Timer tmSerial
|
||||
}
|
||||
}
|
||||
// set t0 Color (Localization)
|
||||
//spstr strCommand.txt,t0.txt,"~",8
|
||||
spstr strCommand.txt,t0.txt,"~",8
|
||||
// set t4 Temperature (Localization)
|
||||
//spstr strCommand.txt,t4.txt,"~",9
|
||||
spstr strCommand.txt,t4.txt,"~",9
|
||||
// set t1 Brightness (Localization)
|
||||
//spstr strCommand.txt,t1.txt,"~",10
|
||||
spstr strCommand.txt,t1.txt,"~",10
|
||||
// activate effect button
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
if(tTmp.txt=="enable")
|
||||
@@ -825,7 +1039,7 @@ Timer tmSerial
|
||||
|
||||
Timer tmSleep
|
||||
Attributes
|
||||
ID : 7
|
||||
ID : 14
|
||||
Scope : local
|
||||
Period (ms): 1000
|
||||
Enabled : yes
|
||||
@@ -845,7 +1059,7 @@ Timer tmSleep
|
||||
|
||||
TouchCap tc0
|
||||
Attributes
|
||||
ID : 6
|
||||
ID : 13
|
||||
Scope: local
|
||||
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
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
{
|
||||
|
||||
@@ -14,6 +14,8 @@ Program.s
|
||||
//color vars
|
||||
int defaultFontColor=65535
|
||||
int defaultBcoColor=6371
|
||||
//feature flags
|
||||
int featNewSliders=0
|
||||
// fix touch offset (Removed for US version)
|
||||
//lcd_dev fffb 0002 0000 0020
|
||||
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
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn3
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn4
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn5
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) entn6
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 65
|
||||
Max. Text Size: 64
|
||||
|
||||
Variable (string) nent1
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
Max. Text Size: 38
|
||||
|
||||
Variable (string) nent2
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 40
|
||||
Max. Text Size: 38
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
@@ -545,9 +545,9 @@ Slider hSlider6
|
||||
|
||||
Events
|
||||
Touch Release Event
|
||||
nNum5.val=hSlider5.val
|
||||
nNum6.val=hSlider6.val
|
||||
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
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
@@ -1327,7 +1327,7 @@ Dual-state Button btOnOff6
|
||||
Events
|
||||
Touch Press Event
|
||||
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
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
@@ -1359,8 +1359,13 @@ Hotspot m0
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity1.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type1.txt=="fan")
|
||||
{
|
||||
@@ -1393,8 +1398,13 @@ Hotspot m1
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity2.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type2.txt=="fan")
|
||||
{
|
||||
@@ -1427,8 +1437,13 @@ Hotspot m2
|
||||
}
|
||||
if(type3.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity3.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type3.txt=="fan")
|
||||
{
|
||||
@@ -1461,8 +1476,13 @@ Hotspot m3
|
||||
}
|
||||
if(type4.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity4.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type4.txt=="fan")
|
||||
{
|
||||
@@ -1495,8 +1515,13 @@ Hotspot m4
|
||||
}
|
||||
if(type5.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity5.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type5.txt=="fan")
|
||||
{
|
||||
@@ -1529,8 +1554,13 @@ Hotspot m5
|
||||
}
|
||||
if(type6.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity5.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type6.txt=="fan")
|
||||
{
|
||||
|
||||
@@ -605,7 +605,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -713,6 +719,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -734,6 +751,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -755,6 +783,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -776,6 +815,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -797,6 +847,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -818,6 +879,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
|
||||
@@ -582,26 +582,26 @@ Button bEntity7
|
||||
Events
|
||||
Touch Press Event
|
||||
tmLP.en=1
|
||||
tTmp.txt=type2.txt
|
||||
pageIcons.tTmp1.txt=tEntity2.txt
|
||||
pageIcons.tTmp2.txt=entn2.txt
|
||||
pageIcons.tTmp3.txt=bEntity2.txt
|
||||
if(type2.txt=="shutter")
|
||||
tTmp.txt=type7.txt
|
||||
pageIcons.tTmp1.txt=tEntity7.txt
|
||||
pageIcons.tTmp2.txt=entn7.txt
|
||||
pageIcons.tTmp3.txt=bEntity7.txt
|
||||
if(type7.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type2.txt=="input_sel")
|
||||
if(type7.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type2.txt=="timer")
|
||||
if(type7.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -626,26 +626,26 @@ Button bEntity8
|
||||
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")
|
||||
tTmp.txt=type8.txt
|
||||
pageIcons.tTmp1.txt=tEntity8.txt
|
||||
pageIcons.tTmp2.txt=entn8.txt
|
||||
pageIcons.tTmp3.txt=bEntity8.txt
|
||||
if(type8.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type8.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type8.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -670,26 +670,26 @@ Button bEntity9
|
||||
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")
|
||||
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
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type9.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type9.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn9.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -806,7 +806,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -914,6 +920,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -935,6 +952,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -956,6 +984,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -977,6 +1016,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -998,6 +1048,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -1019,6 +1080,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
@@ -1040,6 +1112,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",53
|
||||
@@ -1061,6 +1144,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",59
|
||||
@@ -1082,6 +1176,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",65
|
||||
@@ -1168,6 +1273,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -997,6 +997,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1018,6 +1029,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1039,6 +1061,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1060,6 +1093,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",44
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1081,6 +1125,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1102,6 +1157,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",56
|
||||
covx tTmp.txt,sys0,0,0
|
||||
|
||||
@@ -940,6 +940,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -139,7 +139,7 @@ Text tVersion
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : 51
|
||||
Text : 53
|
||||
Max. Text Size : 10
|
||||
|
||||
Picture p0
|
||||
@@ -273,8 +273,14 @@ Timer tmSerial
|
||||
{
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
|
||||
@@ -16,12 +16,13 @@ Page popupLight
|
||||
tEntity.txt=pageIcons.tTmp1.txt
|
||||
//get entity id
|
||||
entn.txt=pageIcons.tTmp2.txt
|
||||
tIcon1.txt=pageIcons.tTmp3.txt
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
vis tTmp,0
|
||||
vis tInstruction,0
|
||||
vis tId,0
|
||||
vis bEffect,0
|
||||
vis hBrightness,0
|
||||
//page open event
|
||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||
// craft command
|
||||
@@ -38,20 +39,20 @@ Page popupLight
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
//disable brightness by default
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis hBrightness,1
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
//disable color temp by default
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
//disable color wheel components by default
|
||||
vis bColor,0
|
||||
//vis t0,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)
|
||||
{
|
||||
@@ -66,18 +67,14 @@ Page popupLight
|
||||
}
|
||||
if(defaultBcoColor==0)
|
||||
{
|
||||
hTempSlider.pic=16
|
||||
hTempSlider.pic1=16
|
||||
hBrightness.pic=14
|
||||
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
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -100,29 +97,56 @@ Variable (string) strCommand
|
||||
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
|
||||
Text t0
|
||||
Attributes
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
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
|
||||
Attributes
|
||||
@@ -133,6 +157,48 @@ Text tEntity
|
||||
Text : tEntity1
|
||||
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
|
||||
Attributes
|
||||
Scope : local
|
||||
@@ -178,20 +244,6 @@ Slider hBrightness
|
||||
|
||||
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
|
||||
@@ -280,8 +332,8 @@ Button bColor
|
||||
//enable color wheel
|
||||
vis pColorWheel,1
|
||||
//disable color temp
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
}else
|
||||
{
|
||||
@@ -291,8 +343,8 @@ Button bColor
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
//enable color temp
|
||||
//vis t4,1
|
||||
//vis t3,1
|
||||
vis t4,1
|
||||
vis t3,1
|
||||
vis hTempSlider,1
|
||||
}
|
||||
}
|
||||
@@ -310,6 +362,7 @@ Button bEffect
|
||||
Touch Press Event
|
||||
pageIcons.tTmp1.txt=tEntity.txt
|
||||
pageIcons.tTmp2.txt=entn.txt
|
||||
pageIcons.tTmp3.txt=tIcon1.txt
|
||||
page popupInSel
|
||||
|
||||
Dual-state Button btOnOff1
|
||||
@@ -342,37 +395,13 @@ Dual-state Button btOnOff1
|
||||
Timer tmCooldown
|
||||
Attributes
|
||||
Scope : local
|
||||
Period (ms): 100
|
||||
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
|
||||
@@ -429,12 +458,11 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||
//vis tIcon1,1
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
covx tTmp.txt,sys0,0,0
|
||||
col.val=sys0
|
||||
//tEntity.pco=sys0
|
||||
tIcon1.pco=sys0
|
||||
// get Button State
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -443,26 +471,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
}else
|
||||
{
|
||||
//vis t1,1
|
||||
//vis t2,1
|
||||
vis t1,1
|
||||
vis t2,1
|
||||
vis hBrightness,1
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hBrightness.val=sys0
|
||||
tmDrawCooldown.en=1
|
||||
tmDrawCooldown.tim=500
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
hBrightness.val=sys0
|
||||
}
|
||||
}
|
||||
// get ColorTemp value
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis hTempSlider,0
|
||||
//vis t3,0
|
||||
//vis t4,0
|
||||
vis t3,0
|
||||
vis t4,0
|
||||
mode_temp.val=0
|
||||
// mode == 1 is temp controls currently shown
|
||||
if(mode.val==1)
|
||||
@@ -485,8 +514,8 @@ Timer tmSerial
|
||||
{
|
||||
mode_temp.val=1
|
||||
vis hTempSlider,1
|
||||
//vis t3,1
|
||||
//vis t4,1
|
||||
vis t3,1
|
||||
vis t4,1
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -505,12 +534,12 @@ Timer tmSerial
|
||||
// disable -> isn't supported
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t0,0
|
||||
vis t0,0
|
||||
vis bColor,0
|
||||
vis pColorWheel,0
|
||||
}else
|
||||
{
|
||||
//vis t0,1
|
||||
vis t0,1
|
||||
//only enable bColor button if color temp is also supported
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
@@ -522,11 +551,11 @@ Timer tmSerial
|
||||
}
|
||||
}
|
||||
// set t0 Color (Localization)
|
||||
//spstr strCommand.txt,t0.txt,"~",8
|
||||
spstr strCommand.txt,t0.txt,"~",8
|
||||
// set t4 Temperature (Localization)
|
||||
//spstr strCommand.txt,t4.txt,"~",9
|
||||
spstr strCommand.txt,t4.txt,"~",9
|
||||
// set t1 Brightness (Localization)
|
||||
//spstr strCommand.txt,t1.txt,"~",10
|
||||
spstr strCommand.txt,t1.txt,"~",10
|
||||
// activate effect button
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
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
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@ head = sharedhead + """
|
||||
""" + navigation
|
||||
print(head)
|
||||
start = 14
|
||||
for i in range(1,7):
|
||||
for i in range(1,9):
|
||||
idxstart = start + (i-1)*6
|
||||
item = f"""
|
||||
// get Type
|
||||
@@ -22,6 +22,19 @@ for i in range(1,7):
|
||||
{{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
|
||||
@@ -71,6 +71,19 @@ for i in range(1,7):
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -79,6 +92,7 @@ for i in range(1,7):
|
||||
spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4}
|
||||
vis tEntity{i},1
|
||||
}}
|
||||
|
||||
"""
|
||||
print(item)
|
||||
foot = """
|
||||
|
||||
@@ -1,272 +1,274 @@
|
||||
from shared import *
|
||||
head = sharedhead + """
|
||||
if(tInstruction.txt=="wake")
|
||||
{
|
||||
click tc0,1
|
||||
}
|
||||
if(tInstruction.txt=="dimmode")
|
||||
{
|
||||
// get value
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,dimValue,0,0
|
||||
dim=dimValue
|
||||
// get value normal
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,dimValueNormal,0,0
|
||||
// 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=="time")
|
||||
{
|
||||
click m0,1
|
||||
//get set time to global variable
|
||||
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||
spstr pageIcons.vaTime.txt,tTime.txt,"?",0
|
||||
spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
|
||||
if(tAMPM.txt=="")
|
||||
{
|
||||
vis tAMPM,0
|
||||
}
|
||||
spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||
ref tIcon1
|
||||
ref tIcon2
|
||||
}
|
||||
if(tInstruction.txt=="date")
|
||||
{
|
||||
//get set date to global variable
|
||||
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
|
||||
tDate.txt=pageIcons.vaDate.txt
|
||||
}
|
||||
if(tInstruction.txt=="statusUpdate")
|
||||
{
|
||||
//statusIcon1
|
||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tIcon1.pco,0,0
|
||||
//statusIcon2
|
||||
spstr strCommand.txt,tIcon2.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tIcon2.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon1.font=3
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon2.font=3
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
|
||||
//tMainIcon
|
||||
spstr strCommand.txt,tMainIcon.txt,"~",3
|
||||
//tMainIcon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tMainIcon.pco,0,0
|
||||
//tMainText
|
||||
spstr strCommand.txt,tMainText.txt,"~",6
|
||||
"""
|
||||
|
||||
start = 7
|
||||
for i in range(1,4):
|
||||
idxstart = start + (i-1)*6
|
||||
item = f"""
|
||||
//d{i}Icon
|
||||
spstr strCommand.txt,d{i}Icon.txt,"~",{idxstart+2}
|
||||
//d{i}Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
covx tTmp.txt,d{i}Icon.pco,0,0
|
||||
//d{i}Val
|
||||
spstr strCommand.txt,d{i}Val.txt,"~",{idxstart+5}
|
||||
|
||||
"""
|
||||
head = head + item
|
||||
|
||||
start = idxstart+6
|
||||
for i in range(1,7):
|
||||
idxstart = start + (i-1)*6
|
||||
item = f"""
|
||||
//e{i}Name
|
||||
spstr strCommand.txt,e{i}Name.txt,"~",{idxstart+4}
|
||||
//e{i}Icon
|
||||
spstr strCommand.txt,e{i}Icon.txt,"~",{idxstart+2}
|
||||
//e{i}Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
covx tTmp.txt,e{i}Icon.pco,0,0
|
||||
//e{i}Val
|
||||
spstr strCommand.txt,e{i}Val.txt,"~",{idxstart+5}
|
||||
|
||||
"""
|
||||
head = head + item
|
||||
|
||||
start = idxstart+6
|
||||
for i in range(1,6):
|
||||
idxstart = start + (i-1)*6
|
||||
item = f"""
|
||||
//f{i}Icon
|
||||
spstr strCommand.txt,f{i}Icon.txt,"~",{idxstart+2}
|
||||
//f{i}Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
covx tTmp.txt,f{i}Icon.pco,0,0
|
||||
"""
|
||||
head = head + item
|
||||
|
||||
head = head + """
|
||||
}
|
||||
|
||||
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,tTime.bco,0,0
|
||||
if(tTime.bco!=screensaver.bco)
|
||||
{
|
||||
for(sys0=0;sys0<60;sys0++)
|
||||
{
|
||||
if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==54)
|
||||
{
|
||||
b[sys0].bco=tTime.bco
|
||||
}
|
||||
}
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tTime.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
covx tTmp.txt,tAMPM.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tDate.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,tMainText.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",6
|
||||
//covx tTmp.txt,tForecast1.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",7
|
||||
//covx tTmp.txt,tForecast2.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",8
|
||||
//covx tTmp.txt,tForecast3.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",9
|
||||
//covx tTmp.txt,tForecast4.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",10
|
||||
//covx tTmp.txt,tForecast1Val.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",11
|
||||
//covx tTmp.txt,tForecast2Val.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",12
|
||||
//covx tTmp.txt,tForecast3Val.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",13
|
||||
//covx tTmp.txt,tForecast4Val.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",14
|
||||
//covx tTmp.txt,t10.bco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",15
|
||||
//covx tTmp.txt,tMainTextAlt2.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",16
|
||||
//covx tTmp.txt,tTimeAdd.pco,0,0
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(tInstruction.txt=="notify")
|
||||
{
|
||||
spstr strCommand.txt,tNotifyHead.txt,"~",1
|
||||
spstr strCommand.txt,tNotifyText.txt,"~",2
|
||||
if(tNotifyHead.txt!=""||tNotifyText.txt!="")
|
||||
{
|
||||
vis tNotifyHead,1
|
||||
vis tNotifyText,1
|
||||
}else
|
||||
{
|
||||
vis tNotifyHead,0
|
||||
vis tNotifyText,0
|
||||
}
|
||||
tNotifyHead.bco=tTime.bco
|
||||
tNotifyText.bco=tTime.bco
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tNotifyHead.pco,0,0
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tNotifyText.pco,0,0
|
||||
}
|
||||
"""
|
||||
|
||||
print(head)
|
||||
|
||||
|
||||
#start = 23
|
||||
#for i in range(1,7):
|
||||
# idxstart = start + (i-1)*6
|
||||
# item = f"""
|
||||
# // get Type
|
||||
# spstr strCommand.txt,type{i}.txt,"~",{idxstart}
|
||||
# // get internal name
|
||||
# spstr strCommand.txt,entn{i}.txt,"~",{idxstart+1}
|
||||
# if(type{i}.txt=="delete"||type{i}.txt=="")
|
||||
# {{
|
||||
# vis tEntity{i},0
|
||||
# vis bEntity{i},0
|
||||
# }}else
|
||||
# {{
|
||||
# // change icon
|
||||
# spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
|
||||
# vis bEntity{i},1
|
||||
# // change icon color
|
||||
# spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
# covx tTmp.txt,sys0,0,0
|
||||
# bEntity{i}.pco=sys0
|
||||
# // set name
|
||||
# spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4}
|
||||
# vis tEntity{i},1
|
||||
# }}
|
||||
#"""
|
||||
# print(item)
|
||||
foot = """
|
||||
}
|
||||
""" + sharedfoot.replace("sleepValue=0", "dim=100").replace("""
|
||||
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
|
||||
}
|
||||
}""","")
|
||||
print(foot)
|
||||
|
||||
|
||||
from shared import *
|
||||
head = sharedhead + """
|
||||
if(tInstruction.txt=="wake")
|
||||
{
|
||||
click tc0,1
|
||||
}
|
||||
if(tInstruction.txt=="dimmode")
|
||||
{
|
||||
// get value
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,dimValue,0,0
|
||||
dim=dimValue
|
||||
// get value normal
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,dimValueNormal,0,0
|
||||
// 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=="time")
|
||||
{
|
||||
click m0,1
|
||||
//get set time to global variable
|
||||
spstr strCommand.txt,pageIcons.vaTime.txt,"~",1
|
||||
spstr pageIcons.vaTime.txt,tTime.txt,"?",0
|
||||
spstr pageIcons.vaTime.txt,tAMPM.txt,"?",1
|
||||
if(tAMPM.txt=="")
|
||||
{
|
||||
vis tAMPM,0
|
||||
}
|
||||
spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||
ref tIcon1
|
||||
ref tIcon2
|
||||
}
|
||||
if(tInstruction.txt=="date")
|
||||
{
|
||||
//get set date to global variable
|
||||
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
|
||||
tDate.txt=pageIcons.vaDate.txt
|
||||
}
|
||||
if(tInstruction.txt=="statusUpdate")
|
||||
{
|
||||
//statusIcon1
|
||||
spstr strCommand.txt,tIcon1.txt,"~",1
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tIcon1.pco,0,0
|
||||
//statusIcon2
|
||||
spstr strCommand.txt,tIcon2.txt,"~",3
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tIcon2.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon1.font=3
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon2.font=3
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="weatherUpdate"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
|
||||
//tMainIcon
|
||||
spstr strCommand.txt,tMainIcon.txt,"~",3
|
||||
//tMainIcon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tMainIcon.pco,0,0
|
||||
//tMainText
|
||||
spstr strCommand.txt,tMainText.txt,"~",6
|
||||
"""
|
||||
|
||||
start = 7
|
||||
for i in range(1,4):
|
||||
idxstart = start + (i-1)*6
|
||||
item = f"""
|
||||
//d{i}Icon
|
||||
spstr strCommand.txt,d{i}Icon.txt,"~",{idxstart+2}
|
||||
//d{i}Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
covx tTmp.txt,d{i}Icon.pco,0,0
|
||||
//d{i}Val
|
||||
spstr strCommand.txt,d{i}Val.txt,"~",{idxstart+5}
|
||||
|
||||
"""
|
||||
head = head + item
|
||||
|
||||
start = idxstart+6
|
||||
for i in range(1,7):
|
||||
idxstart = start + (i-1)*6
|
||||
item = f"""
|
||||
//e{i}Name
|
||||
spstr strCommand.txt,e{i}Name.txt,"~",{idxstart+4}
|
||||
//e{i}Icon
|
||||
spstr strCommand.txt,e{i}Icon.txt,"~",{idxstart+2}
|
||||
//e{i}Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
covx tTmp.txt,e{i}Icon.pco,0,0
|
||||
//e{i}Val
|
||||
spstr strCommand.txt,e{i}Val.txt,"~",{idxstart+5}
|
||||
|
||||
"""
|
||||
head = head + item
|
||||
|
||||
start = idxstart+6
|
||||
for i in range(1,6):
|
||||
idxstart = start + (i-1)*6
|
||||
item = f"""
|
||||
//f{i}Icon
|
||||
spstr strCommand.txt,f{i}Icon.txt,"~",{idxstart+2}
|
||||
//f{i}Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
covx tTmp.txt,f{i}Icon.pco,0,0
|
||||
//f{i}Icon intNameEntity
|
||||
spstr strCommand.txt,entn{i}.txt,"~",{idxstart+1}
|
||||
"""
|
||||
head = head + item
|
||||
|
||||
head = head + """
|
||||
}
|
||||
|
||||
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
|
||||
{
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
covx tTmp.txt,tTime.bco,0,0
|
||||
if(tTime.bco!=screensaver.bco)
|
||||
{
|
||||
for(sys0=0;sys0<60;sys0++)
|
||||
{
|
||||
if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==54)
|
||||
{
|
||||
b[sys0].bco=tTime.bco
|
||||
}
|
||||
}
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
covx tTmp.txt,tTime.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
covx tTmp.txt,tAMPM.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,tDate.pco,0,0
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
covx tTmp.txt,tMainText.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",6
|
||||
//covx tTmp.txt,tForecast1.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",7
|
||||
//covx tTmp.txt,tForecast2.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",8
|
||||
//covx tTmp.txt,tForecast3.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",9
|
||||
//covx tTmp.txt,tForecast4.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",10
|
||||
//covx tTmp.txt,tForecast1Val.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",11
|
||||
//covx tTmp.txt,tForecast2Val.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",12
|
||||
//covx tTmp.txt,tForecast3Val.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",13
|
||||
//covx tTmp.txt,tForecast4Val.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",14
|
||||
//covx tTmp.txt,t10.bco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",15
|
||||
//covx tTmp.txt,tMainTextAlt2.pco,0,0
|
||||
//spstr strCommand.txt,tTmp.txt,"~",16
|
||||
//covx tTmp.txt,tTimeAdd.pco,0,0
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(tInstruction.txt=="notify")
|
||||
{
|
||||
spstr strCommand.txt,tNotifyHead.txt,"~",1
|
||||
spstr strCommand.txt,tNotifyText.txt,"~",2
|
||||
if(tNotifyHead.txt!=""||tNotifyText.txt!="")
|
||||
{
|
||||
vis tNotifyHead,1
|
||||
vis tNotifyText,1
|
||||
}else
|
||||
{
|
||||
vis tNotifyHead,0
|
||||
vis tNotifyText,0
|
||||
}
|
||||
tNotifyHead.bco=tTime.bco
|
||||
tNotifyText.bco=tTime.bco
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tNotifyHead.pco,0,0
|
||||
}
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
covx tTmp.txt,tNotifyText.pco,0,0
|
||||
}
|
||||
"""
|
||||
|
||||
print(head)
|
||||
|
||||
|
||||
#start = 23
|
||||
#for i in range(1,7):
|
||||
# idxstart = start + (i-1)*6
|
||||
# item = f"""
|
||||
# // get Type
|
||||
# spstr strCommand.txt,type{i}.txt,"~",{idxstart}
|
||||
# // get internal name
|
||||
# spstr strCommand.txt,entn{i}.txt,"~",{idxstart+1}
|
||||
# if(type{i}.txt=="delete"||type{i}.txt=="")
|
||||
# {{
|
||||
# vis tEntity{i},0
|
||||
# vis bEntity{i},0
|
||||
# }}else
|
||||
# {{
|
||||
# // change icon
|
||||
# spstr strCommand.txt,bEntity{i}.txt,"~",{idxstart+2}
|
||||
# vis bEntity{i},1
|
||||
# // change icon color
|
||||
# spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
|
||||
# covx tTmp.txt,sys0,0,0
|
||||
# bEntity{i}.pco=sys0
|
||||
# // set name
|
||||
# spstr strCommand.txt,tEntity{i}.txt,"~",{idxstart+4}
|
||||
# vis tEntity{i},1
|
||||
# }}
|
||||
#"""
|
||||
# print(item)
|
||||
foot = """
|
||||
}
|
||||
""" + sharedfoot.replace("sleepValue=0", "dim=100").replace("""
|
||||
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
|
||||
}
|
||||
}""","")
|
||||
print(foot)
|
||||
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ Program.s
|
||||
//color vars
|
||||
int defaultFontColor=65535
|
||||
int defaultBcoColor=6371
|
||||
//feature flags
|
||||
int featNewSliders=0
|
||||
// fix touch offset
|
||||
lcd_dev fffb 0002 0000 0020
|
||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardAlarm
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardChart
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -19,6 +19,19 @@ Page cardEntities
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
dim=dimValueNormal
|
||||
//wup=cardEntities
|
||||
//remove background & activate reparse mode
|
||||
@@ -1856,8 +1869,13 @@ Hotspot m0
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity1.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type1.txt=="fan")
|
||||
{
|
||||
@@ -1899,8 +1917,13 @@ Hotspot m1
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity2.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type2.txt=="fan")
|
||||
{
|
||||
@@ -1942,8 +1965,13 @@ Hotspot m2
|
||||
}
|
||||
if(type3.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity3.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type3.txt=="fan")
|
||||
{
|
||||
@@ -1985,8 +2013,13 @@ Hotspot m3
|
||||
}
|
||||
if(type4.txt=="light")
|
||||
{
|
||||
//popupLight.tEntity.txt=tEntity4.txt
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(type4.txt=="fan")
|
||||
{
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardGrid
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
//remove background & activate reparse mode
|
||||
vis p0,0
|
||||
@@ -1052,7 +1064,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -1161,6 +1179,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -1182,6 +1211,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -1203,6 +1243,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -1224,6 +1275,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -1245,6 +1307,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -1266,6 +1339,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardGrid2
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
//remove background & activate reparse mode
|
||||
vis p0,0
|
||||
@@ -991,26 +1003,26 @@ Button bEntity7
|
||||
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")
|
||||
tTmp.txt=type7.txt
|
||||
pageIcons.tTmp1.txt=tEntity7.txt
|
||||
pageIcons.tTmp2.txt=entn7.txt
|
||||
pageIcons.tTmp3.txt=bEntity7.txt
|
||||
if(type7.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type7.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type7.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn7.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1057,26 +1069,26 @@ Button bEntity8
|
||||
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")
|
||||
tTmp.txt=type8.txt
|
||||
pageIcons.tTmp1.txt=tEntity8.txt
|
||||
pageIcons.tTmp2.txt=entn8.txt
|
||||
pageIcons.tTmp3.txt=bEntity8.txt
|
||||
if(type8.txt=="shutter")
|
||||
{
|
||||
page popupShutter
|
||||
}
|
||||
if(type6.txt=="input_sel")
|
||||
if(type8.txt=="input_sel")
|
||||
{
|
||||
page popupInSel
|
||||
}
|
||||
if(type6.txt=="timer")
|
||||
if(type8.txt=="timer")
|
||||
{
|
||||
page popupTimer
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
tmLP.en=0
|
||||
tSend.txt="event,buttonPress2,"+entn6.txt+",button"
|
||||
tSend.txt="event,buttonPress2,"+entn8.txt+",button"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1274,7 +1286,13 @@ Timer tmLP
|
||||
Timer Event
|
||||
if(tTmp.txt=="light")
|
||||
{
|
||||
page popupLight
|
||||
if(featNewSliders==1)
|
||||
{
|
||||
page popupLightNew
|
||||
}else
|
||||
{
|
||||
page popupLight
|
||||
}
|
||||
}
|
||||
if(tTmp.txt=="fan")
|
||||
{
|
||||
@@ -1383,6 +1401,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",17
|
||||
@@ -1404,6 +1433,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",23
|
||||
@@ -1425,6 +1465,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",29
|
||||
@@ -1446,6 +1497,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",35
|
||||
@@ -1467,6 +1529,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",41
|
||||
@@ -1488,6 +1561,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",47
|
||||
@@ -1509,6 +1593,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",53
|
||||
@@ -1530,6 +1625,17 @@ Timer tmSerial
|
||||
{
|
||||
// change icon
|
||||
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
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",59
|
||||
@@ -1616,6 +1722,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardLChart
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardMedia
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
@@ -1485,6 +1497,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity1.txt,"~",25
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",26
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1506,6 +1529,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity2.txt,"~",31
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",32
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1527,6 +1561,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity3.txt,"~",37
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",38
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1548,6 +1593,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity4.txt,"~",43
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",44
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1569,6 +1625,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity5.txt,"~",49
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",50
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -1590,6 +1657,17 @@ Timer tmSerial
|
||||
// change icon
|
||||
spstr strCommand.txt,bEntity6.txt,"~",55
|
||||
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
|
||||
spstr strCommand.txt,tTmp.txt,"~",56
|
||||
covx tTmp.txt,sys0,0,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardPower
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
@@ -1652,6 +1664,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardQR
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -19,6 +19,18 @@ Page cardThermo
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
|
||||
@@ -1,83 +1,83 @@
|
||||
Program.s
|
||||
0 Component(s)
|
||||
14 Line(s) of event code
|
||||
14 Unique line(s) of event code
|
||||
15 Line(s) of event code
|
||||
15 Unique line(s) of event code
|
||||
pageIcons
|
||||
7 Component(s)
|
||||
0 Line(s) of event code
|
||||
0 Unique line(s) of event code
|
||||
pageTest
|
||||
27 Component(s)
|
||||
25 Component(s)
|
||||
68 Line(s) of event code
|
||||
66 Unique line(s) of event code
|
||||
cardLChart
|
||||
33 Component(s)
|
||||
402 Line(s) of event code
|
||||
266 Unique line(s) of event code
|
||||
popupNotify
|
||||
19 Component(s)
|
||||
271 Line(s) of event code
|
||||
174 Unique line(s) of event code
|
||||
popupFan
|
||||
27 Component(s)
|
||||
355 Line(s) of event code
|
||||
206 Unique line(s) of event code
|
||||
popupLight
|
||||
23 Component(s)
|
||||
410 Line(s) of event code
|
||||
209 Unique line(s) of event code
|
||||
pageStartup
|
||||
20 Component(s)
|
||||
198 Line(s) of event code
|
||||
137 Unique line(s) of event code
|
||||
popupShutter
|
||||
25 Component(s)
|
||||
402 Line(s) of event code
|
||||
220 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
523 Line(s) of event code
|
||||
295 Unique line(s) of event code
|
||||
popupNotify
|
||||
19 Component(s)
|
||||
267 Line(s) of event code
|
||||
172 Unique line(s) of event code
|
||||
cardPower
|
||||
54 Component(s)
|
||||
527 Line(s) of event code
|
||||
347 Unique line(s) of event code
|
||||
pageStartup
|
||||
20 Component(s)
|
||||
193 Line(s) of event code
|
||||
135 Unique line(s) of event code
|
||||
cardQR
|
||||
34 Component(s)
|
||||
410 Line(s) of event code
|
||||
238 Unique line(s) of event code
|
||||
cardChart
|
||||
33 Component(s)
|
||||
437 Line(s) of event code
|
||||
296 Unique line(s) of event code
|
||||
popupLightNew
|
||||
23 Component(s)
|
||||
412 Line(s) of event code
|
||||
209 Unique line(s) of event code
|
||||
popupLight
|
||||
28 Component(s)
|
||||
417 Line(s) of event code
|
||||
228 Unique line(s) of event code
|
||||
cardGrid2
|
||||
52 Component(s)
|
||||
703 Line(s) of event code
|
||||
385 Unique line(s) of event code
|
||||
cardAlarm
|
||||
43 Component(s)
|
||||
500 Line(s) of event code
|
||||
273 Unique line(s) of event code
|
||||
screensaver
|
||||
47 Component(s)
|
||||
444 Line(s) of event code
|
||||
316 Unique line(s) of event code
|
||||
510 Line(s) of event code
|
||||
274 Unique line(s) of event code
|
||||
cardChart
|
||||
33 Component(s)
|
||||
447 Line(s) of event code
|
||||
297 Unique line(s) of event code
|
||||
cardGrid
|
||||
44 Component(s)
|
||||
593 Line(s) of event code
|
||||
333 Unique line(s) of event code
|
||||
cardQR
|
||||
34 Component(s)
|
||||
420 Line(s) of event code
|
||||
239 Unique line(s) of event code
|
||||
cardLChart
|
||||
33 Component(s)
|
||||
412 Line(s) of event code
|
||||
267 Unique line(s) of event code
|
||||
cardPower
|
||||
54 Component(s)
|
||||
541 Line(s) of event code
|
||||
350 Unique line(s) of event code
|
||||
cardThermo
|
||||
57 Component(s)
|
||||
540 Line(s) of event code
|
||||
319 Unique line(s) of event code
|
||||
screensaver2
|
||||
59 Component(s)
|
||||
358 Line(s) of event code
|
||||
253 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
649 Line(s) of event code
|
||||
322 Unique line(s) of event code
|
||||
550 Line(s) of event code
|
||||
320 Unique line(s) of event code
|
||||
popupInSel
|
||||
34 Component(s)
|
||||
621 Line(s) of event code
|
||||
297 Unique line(s) of event code
|
||||
cardGrid2
|
||||
52 Component(s)
|
||||
611 Line(s) of event code
|
||||
319 Unique line(s) of event code
|
||||
screensaver
|
||||
47 Component(s)
|
||||
458 Line(s) of event code
|
||||
318 Unique line(s) of event code
|
||||
cardMedia
|
||||
59 Component(s)
|
||||
713 Line(s) of event code
|
||||
357 Unique line(s) of event code
|
||||
popupTimer
|
||||
42 Component(s)
|
||||
516 Line(s) of event code
|
||||
@@ -86,13 +86,17 @@ popupThermo
|
||||
44 Component(s)
|
||||
523 Line(s) of event code
|
||||
276 Unique line(s) of event code
|
||||
screensaver2
|
||||
64 Component(s)
|
||||
448 Line(s) of event code
|
||||
272 Unique line(s) of event code
|
||||
cardEntities
|
||||
67 Component(s)
|
||||
1170 Line(s) of event code
|
||||
532 Unique line(s) of event code
|
||||
1205 Line(s) of event code
|
||||
536 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
22 Page(s)
|
||||
850 Component(s)
|
||||
9940 Line(s) of event code
|
||||
2369 Unique line(s) of event code
|
||||
23 Page(s)
|
||||
881 Component(s)
|
||||
10798 Line(s) of event code
|
||||
2472 Unique line(s) of event code
|
||||
|
||||
@@ -396,7 +396,7 @@ Text tVersion
|
||||
Horizontal Alignment: center
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text : 51
|
||||
Text : 53
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
@@ -575,6 +575,12 @@ Timer tmSerial
|
||||
{
|
||||
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")
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@ Variable (string) strCommand
|
||||
|
||||
Variable (string) strTmp
|
||||
Attributes
|
||||
ID : 25
|
||||
ID : 24
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 2
|
||||
@@ -58,9 +58,9 @@ Text tBench
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 288
|
||||
y coordinate : 90
|
||||
Width : 152
|
||||
x coordinate : 207
|
||||
y coordinate : 287
|
||||
Width : 88
|
||||
Height : 30
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -82,14 +82,14 @@ Text tBench
|
||||
|
||||
Text tTmp
|
||||
Attributes
|
||||
ID : 24
|
||||
ID : 23
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 49
|
||||
y coordinate : 48
|
||||
Width : 257
|
||||
x coordinate : 212
|
||||
y coordinate : 253
|
||||
Width : 71
|
||||
Height : 30
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
@@ -103,7 +103,7 @@ Text tTmp
|
||||
Horizontal Alignment: center
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text : test123test123
|
||||
Text : x
|
||||
Max. Text Size : 30
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
@@ -135,7 +135,7 @@ Button b0
|
||||
x coordinate : 0
|
||||
y coordinate : 0
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -203,9 +203,9 @@ Button b10
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 100
|
||||
y coordinate : 98
|
||||
y coordinate : 81
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -238,9 +238,9 @@ Button b11
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 100
|
||||
y coordinate : 145
|
||||
y coordinate : 121
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -273,9 +273,9 @@ Button b12
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 242
|
||||
y coordinate : 202
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -335,46 +335,15 @@ Button b13
|
||||
Touch Press Event
|
||||
showqq
|
||||
|
||||
Button b14
|
||||
Button b15
|
||||
Attributes
|
||||
ID : 21
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 0
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
Fill : solid color
|
||||
Style : 3D auto
|
||||
Font ID : 0
|
||||
Back. Color : 50712
|
||||
Back. Picture ID (Pressed): 65535
|
||||
Back. Color (Pressed) : 1024
|
||||
Font Color (Unpressed) : 0
|
||||
Font Color (Pressed) : 65535
|
||||
Horizontal Alignment : center
|
||||
Vertical Alignment : center
|
||||
State : unpressed
|
||||
Text : newtxt
|
||||
Max. Text Size : 10
|
||||
Word wrap : disabled
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
Button b15
|
||||
Attributes
|
||||
ID : 22
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 236
|
||||
y coordinate : 263
|
||||
x coordinate : 99
|
||||
y coordinate : 270
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -403,13 +372,13 @@ Button b15
|
||||
|
||||
Button b16
|
||||
Attributes
|
||||
ID : 23
|
||||
ID : 22
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 135
|
||||
y coordinate : 263
|
||||
x coordinate : 0
|
||||
y coordinate : 270
|
||||
Width : 100
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -444,9 +413,9 @@ Button b2
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 195
|
||||
y coordinate : 162
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -514,9 +483,9 @@ Button b4
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 96
|
||||
y coordinate : 82
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -551,7 +520,7 @@ Button b5
|
||||
x coordinate : 100
|
||||
y coordinate : 0
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -584,9 +553,9 @@ Button b6
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 49
|
||||
y coordinate : 41
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -619,9 +588,9 @@ Button b7
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 100
|
||||
y coordinate : 49
|
||||
y coordinate : 41
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -653,10 +622,10 @@ Button b8
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 341
|
||||
y coordinate : 9
|
||||
x coordinate : 94
|
||||
y coordinate : 161
|
||||
Width : 106
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -690,9 +659,9 @@ Button b9
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 0
|
||||
y coordinate : 146
|
||||
y coordinate : 122
|
||||
Width : 100
|
||||
Height : 50
|
||||
Height : 40
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
@@ -717,21 +686,6 @@ Button b9
|
||||
Touch Press Event
|
||||
page popupNotify
|
||||
|
||||
Hotspot m0
|
||||
Attributes
|
||||
ID : 26
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
Opacity : 127
|
||||
x coordinate : 213
|
||||
y coordinate : 115
|
||||
Width : 210
|
||||
Height : 191
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
|
||||
Timer tmSerial
|
||||
Attributes
|
||||
ID : 14
|
||||
|
||||
@@ -24,12 +24,13 @@ Page popupLight
|
||||
tEntity.txt=pageIcons.tTmp1.txt
|
||||
//get entity id
|
||||
entn.txt=pageIcons.tTmp2.txt
|
||||
tIcon1.txt=pageIcons.tTmp3.txt
|
||||
vis p0,0
|
||||
vis tSend,0
|
||||
vis tTmp,0
|
||||
vis tInstruction,0
|
||||
vis tId,0
|
||||
vis bEffect,0
|
||||
vis hBrightness,0
|
||||
//page open event
|
||||
// event,pageOpenDetail,typeOfPage,tEntityName
|
||||
// craft command
|
||||
@@ -46,16 +47,16 @@ Page popupLight
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
//disable brightness by default
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis hBrightness,1
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
//disable color temp by default
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
//disable color wheel components by default
|
||||
vis bColor,0
|
||||
//vis t0,0
|
||||
vis t0,0
|
||||
vis pColorWheel,0
|
||||
//vis t0,0
|
||||
popupLight.bco=defaultBcoColor
|
||||
@@ -74,76 +75,195 @@ Page popupLight
|
||||
}
|
||||
if(defaultBcoColor==0)
|
||||
{
|
||||
hBrightness.pic=24
|
||||
hBrightness.pic1=25
|
||||
hBrightness.pic2=15
|
||||
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
|
||||
Attributes
|
||||
ID : 11
|
||||
ID : 20
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
|
||||
Variable (int32) mode
|
||||
Attributes
|
||||
ID : 13
|
||||
ID : 22
|
||||
Scope: local
|
||||
Value: 1
|
||||
|
||||
Variable (int32) mode_temp
|
||||
Attributes
|
||||
ID : 14
|
||||
ID : 23
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 9
|
||||
ID : 16
|
||||
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
|
||||
ID : 26
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 200
|
||||
|
||||
Variable (string) tTmp
|
||||
Text t0
|
||||
Attributes
|
||||
ID : 21
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 80
|
||||
ID : 24
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
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
|
||||
Attributes
|
||||
ID : 2
|
||||
ID : 3
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -158,10 +278,10 @@ Text tEntity
|
||||
Fill : solid color
|
||||
Style : flat
|
||||
Associated Keyboard : none
|
||||
Font ID : 2
|
||||
Font ID : 0
|
||||
Back. Color : 6371
|
||||
Font Color : 65535
|
||||
Horizontal Alignment: center
|
||||
Horizontal Alignment: left
|
||||
Vertical Alignment : center
|
||||
Input Type : character
|
||||
Text : tEntity1
|
||||
@@ -170,15 +290,147 @@ Text tEntity
|
||||
Horizontal 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
|
||||
ID : 1
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
Opacity : 127
|
||||
x coordinate : 233
|
||||
y coordinate : 105
|
||||
x coordinate : 0
|
||||
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
|
||||
Height : 160
|
||||
Effect : load
|
||||
@@ -216,44 +468,30 @@ Picture pColorWheel
|
||||
|
||||
Slider hBrightness
|
||||
Attributes
|
||||
ID : 4
|
||||
ID : 7
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 89
|
||||
y coordinate : 64
|
||||
Width : 100
|
||||
Height : 250
|
||||
x coordinate : 61
|
||||
y coordinate : 261
|
||||
Width : 335
|
||||
Height : 43
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
Direction : vertical
|
||||
Direction : horizontal
|
||||
Fill : image
|
||||
Cursor width : auto
|
||||
Cursor height : 1
|
||||
Back. Picture ID : 65535
|
||||
Slided Back. Picture ID: 65535
|
||||
Cursor height : 255
|
||||
Back. Picture ID : 5
|
||||
Slided Back. Picture ID: 4
|
||||
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
|
||||
@@ -274,24 +512,24 @@ Slider hBrightness
|
||||
|
||||
Slider hTempSlider
|
||||
Attributes
|
||||
ID : 10
|
||||
ID : 19
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 263
|
||||
y coordinate : 64
|
||||
Width : 100
|
||||
Height : 250
|
||||
x coordinate : 61
|
||||
y coordinate : 178
|
||||
Width : 335
|
||||
Height : 44
|
||||
Effect : load
|
||||
Effect Priority : 0
|
||||
Effect Time : 300
|
||||
Direction : vertical
|
||||
Direction : horizontal
|
||||
Fill : image
|
||||
Cursor width : auto
|
||||
Cursor height : 255
|
||||
Back. Picture ID : 7
|
||||
Slided Back. Picture ID: 7
|
||||
Back. Picture ID : 22
|
||||
Slided Back. Picture ID: 23
|
||||
Position : 50
|
||||
Upper range limit : 100
|
||||
Lower range limit : 0
|
||||
@@ -318,7 +556,7 @@ Slider hTempSlider
|
||||
|
||||
Button b0
|
||||
Attributes
|
||||
ID : 3
|
||||
ID : 5
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -364,13 +602,13 @@ Button b0
|
||||
|
||||
Button bColor
|
||||
Attributes
|
||||
ID : 12
|
||||
ID : 21
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 14
|
||||
y coordinate : 146
|
||||
x coordinate : 93
|
||||
y coordinate : 68
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -401,8 +639,8 @@ Button bColor
|
||||
//enable color wheel
|
||||
vis pColorWheel,1
|
||||
//disable color temp
|
||||
//vis t4,0
|
||||
//vis t3,0
|
||||
vis t4,0
|
||||
vis t3,0
|
||||
vis hTempSlider,0
|
||||
}else
|
||||
{
|
||||
@@ -412,21 +650,21 @@ Button bColor
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
//enable color temp
|
||||
//vis t4,1
|
||||
//vis t3,1
|
||||
vis t4,1
|
||||
vis t3,1
|
||||
vis hTempSlider,1
|
||||
}
|
||||
}
|
||||
|
||||
Button bEffect
|
||||
Attributes
|
||||
ID : 17
|
||||
ID : 27
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 14
|
||||
y coordinate : 213
|
||||
x coordinate : 396
|
||||
y coordinate : 95
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -453,17 +691,18 @@ Button bEffect
|
||||
Touch Press Event
|
||||
pageIcons.tTmp1.txt=tEntity.txt
|
||||
pageIcons.tTmp2.txt=entn.txt
|
||||
pageIcons.tTmp3.txt=tIcon1.txt
|
||||
page popupInSel
|
||||
|
||||
Dual-state Button btOnOff1
|
||||
Attributes
|
||||
ID : 5
|
||||
ID : 8
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Opacity : 127
|
||||
x coordinate : 14
|
||||
y coordinate : 77
|
||||
x coordinate : 341
|
||||
y coordinate : 95
|
||||
Width : 50
|
||||
Height : 50
|
||||
Effect : load
|
||||
@@ -502,43 +741,18 @@ Dual-state Button btOnOff1
|
||||
|
||||
Timer tmCooldown
|
||||
Attributes
|
||||
ID : 15
|
||||
ID : 25
|
||||
Scope : local
|
||||
Period (ms): 100
|
||||
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
|
||||
ID : 15
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : yes
|
||||
@@ -592,13 +806,17 @@ Timer tmSerial
|
||||
if(tInstruction.txt=="entityUpdateDetail"&&entn.txt==tTmp.txt)
|
||||
{
|
||||
// change icon
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
if(tTmp.txt!="")
|
||||
{
|
||||
tIcon1.txt=tTmp.txt
|
||||
}
|
||||
//spstr strCommand.txt,tIcon1.txt,"~",2
|
||||
//vis tIcon1,1
|
||||
vis tIcon1,1
|
||||
// change icon color
|
||||
spstr strCommand.txt,tTmp.txt,"~",3
|
||||
covx tTmp.txt,sys0,0,0
|
||||
col.val=sys0
|
||||
//tEntity.pco=sys0
|
||||
tIcon1.pco=sys0
|
||||
// get Button State
|
||||
spstr strCommand.txt,tTmp.txt,"~",4
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -607,26 +825,27 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t1,0
|
||||
//vis t2,0
|
||||
vis t1,0
|
||||
vis t2,0
|
||||
vis hBrightness,0
|
||||
}else
|
||||
{
|
||||
//vis t1,1
|
||||
//vis t2,1
|
||||
vis t1,1
|
||||
vis t2,1
|
||||
vis hBrightness,1
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hBrightness.val=sys0
|
||||
tmDrawCooldown.en=1
|
||||
tmDrawCooldown.tim=500
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
hBrightness.val=sys0
|
||||
}
|
||||
}
|
||||
// get ColorTemp value
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
vis hTempSlider,0
|
||||
//vis t3,0
|
||||
//vis t4,0
|
||||
vis t3,0
|
||||
vis t4,0
|
||||
mode_temp.val=0
|
||||
// mode == 1 is temp controls currently shown
|
||||
if(mode.val==1)
|
||||
@@ -649,8 +868,8 @@ Timer tmSerial
|
||||
{
|
||||
mode_temp.val=1
|
||||
vis hTempSlider,1
|
||||
//vis t3,1
|
||||
//vis t4,1
|
||||
vis t3,1
|
||||
vis t4,1
|
||||
if(tmCooldown.en==0)
|
||||
{
|
||||
covx tTmp.txt,sys0,0,0
|
||||
@@ -669,12 +888,12 @@ Timer tmSerial
|
||||
// disable -> isn't supported
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
//vis t0,0
|
||||
vis t0,0
|
||||
vis bColor,0
|
||||
vis pColorWheel,0
|
||||
}else
|
||||
{
|
||||
//vis t0,1
|
||||
vis t0,1
|
||||
//only enable bColor button if color temp is also supported
|
||||
if(mode_temp.val==1)
|
||||
{
|
||||
@@ -686,11 +905,11 @@ Timer tmSerial
|
||||
}
|
||||
}
|
||||
// set t0 Color (Localization)
|
||||
//spstr strCommand.txt,t0.txt,"~",8
|
||||
spstr strCommand.txt,t0.txt,"~",8
|
||||
// set t4 Temperature (Localization)
|
||||
//spstr strCommand.txt,t4.txt,"~",9
|
||||
spstr strCommand.txt,t4.txt,"~",9
|
||||
// set t1 Brightness (Localization)
|
||||
//spstr strCommand.txt,t1.txt,"~",10
|
||||
spstr strCommand.txt,t1.txt,"~",10
|
||||
// activate effect button
|
||||
spstr strCommand.txt,tTmp.txt,"~",11
|
||||
if(tTmp.txt=="enable")
|
||||
@@ -825,7 +1044,7 @@ Timer tmSerial
|
||||
|
||||
Timer tmSleep
|
||||
Attributes
|
||||
ID : 7
|
||||
ID : 14
|
||||
Scope : local
|
||||
Period (ms): 1000
|
||||
Enabled : yes
|
||||
@@ -845,7 +1064,7 @@ Timer tmSleep
|
||||
|
||||
TouchCap tc0
|
||||
Attributes
|
||||
ID : 6
|
||||
ID : 13
|
||||
Scope: local
|
||||
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
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
if(tInstruction.txt=="timeout2")
|
||||
{
|
||||
//set timeout to global var
|
||||
spstr strCommand.txt,tTmp.txt,"~",1
|
||||
@@ -672,6 +672,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
// end of user code
|
||||
udelete payloadLength-1
|
||||
|
||||
@@ -19,6 +19,19 @@ Page screensaver
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
recmod=1
|
||||
baud=115200
|
||||
vis tInstruction,0
|
||||
@@ -1069,6 +1082,9 @@ Timer tmSerial
|
||||
if(tAMPM.txt=="")
|
||||
{
|
||||
vis tAMPM,0
|
||||
}else
|
||||
{
|
||||
vis tAMPM,1
|
||||
}
|
||||
spstr strCommand.txt,tTimeAdd.txt,"~",2
|
||||
ref tIcon1
|
||||
|
||||
@@ -19,6 +19,19 @@ Page screensaver2
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
tSend.txt="event,renderCurrentPage"
|
||||
//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
|
||||
dim=dimValueNormal
|
||||
recmod=1
|
||||
baud=115200
|
||||
vis tInstruction,0
|
||||
@@ -43,12 +56,47 @@ Page screensaver2
|
||||
Postinitialize Event
|
||||
click m0,1
|
||||
|
||||
Variable (string) entn1
|
||||
Attributes
|
||||
ID : 59
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 14
|
||||
|
||||
Variable (string) entn2
|
||||
Attributes
|
||||
ID : 60
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 14
|
||||
|
||||
Variable (string) entn3
|
||||
Attributes
|
||||
ID : 61
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 14
|
||||
|
||||
Variable (string) entn4
|
||||
Attributes
|
||||
ID : 62
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 14
|
||||
|
||||
Variable (string) entn5
|
||||
Attributes
|
||||
ID : 63
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 14
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
ID : 4
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 1979
|
||||
Max. Text Size: 1935
|
||||
|
||||
Variable (string) strTmp
|
||||
Attributes
|
||||
@@ -69,7 +117,7 @@ Variable (string) tInstruction
|
||||
ID : 18
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
Max. Text Size: 15
|
||||
|
||||
Variable (string) tSend
|
||||
Attributes
|
||||
@@ -83,7 +131,7 @@ Variable (string) tTmp
|
||||
ID : 19
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 50
|
||||
Max. Text Size: 30
|
||||
|
||||
Variable (int32) vaTap
|
||||
Attributes
|
||||
@@ -852,6 +900,25 @@ Text f1Icon
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,"+entn1.txt+",button"
|
||||
if(entn1.txt=="")
|
||||
{
|
||||
tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
|
||||
Text f2Icon
|
||||
Attributes
|
||||
ID : 54
|
||||
@@ -881,6 +948,25 @@ Text f2Icon
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,"+entn2.txt+",button"
|
||||
if(entn2.txt=="")
|
||||
{
|
||||
tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
|
||||
Text f3Icon
|
||||
Attributes
|
||||
ID : 55
|
||||
@@ -910,6 +996,25 @@ Text f3Icon
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,"+entn3.txt+",button"
|
||||
if(entn3.txt=="")
|
||||
{
|
||||
tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
|
||||
Text f4Icon
|
||||
Attributes
|
||||
ID : 53
|
||||
@@ -939,6 +1044,25 @@ Text f4Icon
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,"+entn4.txt+",button"
|
||||
if(entn4.txt=="")
|
||||
{
|
||||
tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
|
||||
Text f5Icon
|
||||
Attributes
|
||||
ID : 52
|
||||
@@ -968,6 +1092,25 @@ Text f5Icon
|
||||
Horizontal Spacing : 0
|
||||
Vertical Spacing : 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
tSend.txt="event,buttonPress2,"+entn5.txt+",button"
|
||||
if(entn5.txt=="")
|
||||
{
|
||||
tSend.txt="event,buttonPress2,screensaver,bExit,"+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
|
||||
|
||||
Text m0
|
||||
Attributes
|
||||
ID : 32
|
||||
@@ -1538,26 +1681,36 @@ Timer tmSerial
|
||||
//f1Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",64
|
||||
covx tTmp.txt,f1Icon.pco,0,0
|
||||
//f1Icon intNameEntity
|
||||
spstr strCommand.txt,entn1.txt,"~",62
|
||||
//f2Icon
|
||||
spstr strCommand.txt,f2Icon.txt,"~",69
|
||||
//f2Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",70
|
||||
covx tTmp.txt,f2Icon.pco,0,0
|
||||
//f2Icon intNameEntity
|
||||
spstr strCommand.txt,entn2.txt,"~",68
|
||||
//f3Icon
|
||||
spstr strCommand.txt,f3Icon.txt,"~",75
|
||||
//f3Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",76
|
||||
covx tTmp.txt,f3Icon.pco,0,0
|
||||
//f3Icon intNameEntity
|
||||
spstr strCommand.txt,entn3.txt,"~",74
|
||||
//f4Icon
|
||||
spstr strCommand.txt,f4Icon.txt,"~",81
|
||||
//f4Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",82
|
||||
covx tTmp.txt,f4Icon.pco,0,0
|
||||
//f4Icon intNameEntity
|
||||
spstr strCommand.txt,entn4.txt,"~",80
|
||||
//f5Icon
|
||||
spstr strCommand.txt,f5Icon.txt,"~",87
|
||||
//f5Icon Color
|
||||
spstr strCommand.txt,tTmp.txt,"~",88
|
||||
covx tTmp.txt,f5Icon.pco,0,0
|
||||
//f5Icon intNameEntity
|
||||
spstr strCommand.txt,entn5.txt,"~",86
|
||||
}
|
||||
if(tInstruction.txt=="notify")
|
||||
{
|
||||
@@ -1661,6 +1814,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardChart
|
||||
}
|
||||
if(tId.txt=="cardLChart")
|
||||
{
|
||||
page cardLChart
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="timeout")
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user