Compare commits

..

221 Commits

Author SHA1 Message Date
Johannes
662c063897 Update nspanel-lovelace-ui.py 2023-01-29 17:18:23 +01:00
Johannes
e68b42c844 Update config-screensaver.md 2023-01-29 17:15:57 +01:00
Johannes
0944e34da1 Update config-screensaver.md 2023-01-29 17:15:23 +01:00
Johannes
98b164c17c Update config-screensaver.md 2023-01-29 17:14:38 +01:00
Johannes
5eb9054581 Update entities.md 2023-01-29 17:10:07 +01:00
Johannes
b2be727a78 Update screensaver docs page to 3.9 2023-01-29 17:08:59 +01:00
joBr99
913afb2e80 right align alt text screensaver (add nextion2text) 2023-01-25 19:09:50 +00:00
Johannes Braun
add905e503 right align alt text screensaver 2023-01-25 20:05:32 +01:00
joBr99
c7f1225c0e fix navigation on cardlchart (add nextion2text) 2023-01-24 21:09:36 +00:00
Johannes Braun
be3da4ba4e fix navigation on cardlchart 2023-01-24 22:05:37 +01:00
joBr99
c947031b93 sync us-p (add nextion2text) 2023-01-24 18:23:55 +00:00
Johannes Braun
1a5dc102a7 sync us-p 2023-01-24 19:20:10 +01:00
joBr99
7331cf688c bump to 49 (add nextion2text) 2023-01-24 17:40:03 +00:00
Johannes Braun
6226731245 bump to 49 2023-01-24 18:36:29 +01:00
joBr99
bea14b97dc sync us-l (add nextion2text) 2023-01-24 16:45:51 +00:00
Johannes Braun
1f5c8be7bb sync us-l 2023-01-24 17:42:23 +01:00
Johannes
a1c4afa77d Update pages.py 2023-01-24 12:06:01 +01:00
joBr99
5b282b86f7 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-23 19:17:10 +00:00
Johannes Braun
71a54de2e0 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-23 20:12:08 +01:00
Johannes Braun
ab6117230b larger brightness sliders on us-p 2023-01-23 20:11:58 +01:00
joBr99
7c5953cf5f Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-23 17:28:52 +00:00
Johannes Braun
c344a520d4 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-23 18:19:06 +01:00
Johannes Braun
afac00675b fix background cardMedia 2023-01-23 18:12:52 +01:00
joBr99
0b61bb6c5c Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-23 17:04:24 +00:00
Johannes Braun
d17fb469cc Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-23 17:59:12 +01:00
Johannes Braun
59bc174977 fix screensaver refresh 2023-01-23 17:59:05 +01:00
joBr99
9e026d8922 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-23 16:53:40 +00:00
Johannes Braun
a481e70976 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-23 17:48:04 +01:00
Johannes Braun
51018bdc47 sync 2023-01-23 17:47:54 +01:00
Johannes
c58fe414ef Update README.md 2023-01-22 14:43:37 +01:00
Johannes Braun
ae5fa2f197 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-22 14:19:30 +01:00
Johannes Braun
4a07637018 implements #272 2023-01-22 14:19:18 +01:00
joBr99
8ee0db1797 Update card-power.md (add nextion2text) 2023-01-22 12:30:09 +00:00
Johannes
9bc87dea7d Update card-power.md 2023-01-22 13:19:13 +01:00
Magnus Øverli
208628fd99 Update card-power.md (#705)
Added example of calculating the speed with HA templates.
2023-01-22 13:11:06 +01:00
Johannes Braun
e3c9f10f7c sync 2023-01-22 13:10:03 +01:00
Johannes Braun
7cbcb2de70 sync some more changes to US-P 2023-01-22 12:49:55 +01:00
joBr99
af28e51bc9 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-21 21:19:24 +00:00
Johannes Braun
52749e4187 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-21 22:15:14 +01:00
Johannes Braun
8c6c033887 sync screensaver changes to US-P 2023-01-21 22:14:58 +01:00
joBr99
acb18db3f0 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-21 20:36:23 +00:00
Johannes Braun
30a96f3571 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-21 21:32:25 +01:00
Johannes Braun
9cff64e184 refactor screensaver 2023-01-21 21:32:10 +01:00
joBr99
3f79ce128f new alt screensaver (add nextion2text) 2023-01-20 23:11:17 +00:00
Johannes Braun
d0294c97bb new alt screensaver 2023-01-21 00:07:11 +01:00
Johannes Braun
9089740425 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-20 15:10:01 +01:00
Johannes Braun
3ceb8b60f9 update cardPower 2023-01-20 15:08:59 +01:00
joBr99
b1f7733607 change value range of cardPower sliders (add nextion2text) 2023-01-20 14:07:07 +00:00
Johannes Braun
b5f4329a8f change value range of cardPower sliders 2023-01-20 15:02:58 +01:00
Armilar
245eded9ec Merge pull request #701 from ravenst0ne/main
Add configurable navigation buttons for top level pages and icon colors
2023-01-16 17:36:44 +01:00
Alex
4159e60a3e Add configurable navigation buttons for top level pages and icon colors 2023-01-16 16:42:42 +01:00
joBr99
3a056e770e fix flicker on speed 0 (add nextion2text) 2023-01-14 14:44:36 +00:00
Johannes Braun
e3fe22e915 fix flicker on speed 0 2023-01-14 15:40:21 +01:00
Johannes Braun
c108220bfe Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-14 15:15:52 +01:00
Johannes Braun
f38eb9923c add docs 2023-01-14 15:14:11 +01:00
joBr99
bcf8e4e65e some final cleanup of power page (add nextion2text) 2023-01-14 13:50:56 +00:00
Johannes Braun
a8c32c3542 some final cleanup of power page 2023-01-14 14:46:46 +01:00
joBr99
08676c5947 fix some color stuff (add nextion2text) 2023-01-14 10:24:07 +00:00
Johannes Braun
8db8a108e4 fix some color stuff 2023-01-14 11:20:49 +01:00
Johannes Braun
a2afea2255 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-14 11:20:27 +01:00
Johannes Braun
e5037a297e cardAlarm title 2023-01-12 23:00:56 +01:00
Johannes
553caa7d87 Update pages.py 2023-01-12 22:37:30 +01:00
Johannes
5a6cb28e74 Update pages.py 2023-01-12 22:18:07 +01:00
joBr99
8f9da7ed72 add title on cardAlarm (add nextion2text) 2023-01-12 21:12:44 +00:00
Johannes Braun
da6700bff8 add title on cardAlarm 2023-01-12 22:08:48 +01:00
Johannes
038961d9a2 Update README.md 2023-01-12 21:31:41 +01:00
Armilar
3795c874e2 v3.8.3 - Update
Add globalTracklist for every Volumio-Player by @egal
Upgrade TFT 48
Add cardLChart for Line diagrams
Add new monobutton Functions by @ronny130286 
Add Repeat-Button and external Tracklists/Queues to Volumio Media-Player by @egal
Add configurable navigation buttons by @ravenst0ne (v3.8.1.1)
Add Char"€" to HMI
Fix Switch-Off for Color Lights
2023-01-12 19:20:06 +01:00
Armilar
6bf743f33f v3.8.3 - Update
Add globalTracklist for every Volumio-Player by @egal
Upgrade TFT 48
Add cardLChart for Line diagrams
Add new monobutton Functions by @ronny130286 
Add Repeat-Button and external Tracklists/Queues to Volumio Media-Player by @egal
Add configurable navigation buttons by @ravenst0ne (v3.8.1.1)
Add Char"€" to HMI
Fix Switch-Off for Color Lights
2023-01-12 19:18:17 +01:00
Armilar
d2b07e219b v3.8.3 - Update
Add globalTracklist for every Volumio-Player by @egal
Upgrade TFT 48
Add cardLChart for Line diagrams
Add new monobutton Functions by @ronny130286 
Add Repeat-Button and external Tracklists/Queues to Volumio Media-Player by @egal
Add configurable navigation buttons by @ravenst0ne (v3.8.1.1)
Add Char"€" to HMI
2023-01-12 18:45:07 +01:00
joBr99
066d0dfc26 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-12 17:41:13 +00:00
Johannes Braun
08f64286a5 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-12 18:36:31 +01:00
Johannes Braun
09562efc5d add Combining Diacritical Marks to font #695 2023-01-12 18:36:17 +01:00
joBr99
0852ffb1d1 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-11 21:44:58 +00:00
Johannes Braun
45f1e5e434 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-11 22:38:56 +01:00
Johannes Braun
e7de698b6e message screensaver 2023-01-11 22:16:20 +01:00
joBr99
3233264abe Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-11 20:23:10 +00:00
Johannes Braun
0bd3af4a5d Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-11 21:19:01 +01:00
Johannes Braun
0764e88f32 change 90 font 2023-01-11 21:18:51 +01:00
joBr99
ed46d36665 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2023-01-11 17:33:42 +00:00
Johannes Braun
503a105415 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-11 18:29:22 +01:00
Armilar
01a403fec1 Add configurable navigation buttons by @ravenst0ne 2023-01-11 18:17:38 +01:00
Armilar
b74bae7863 Add configurable navigation buttons by @ravenst0ne 2023-01-11 18:14:39 +01:00
Johannes Braun
526f6afecb Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-11 18:11:14 +01:00
Johannes Braun
d407cee31f fix navi cardlchart 2023-01-11 18:11:03 +01:00
Armilar
fe646ef9cb Add configurable navigation buttons by @ravenst0ne 2023-01-11 18:03:34 +01:00
joBr99
34ba4e2cdd add cardlchart (add nextion2text) 2023-01-10 22:38:21 +00:00
Johannes Braun
a21ab119e1 add cardlchart 2023-01-10 23:34:19 +01:00
Armilar
91f5af6d03 Update cardPower_simple_example.xml 2023-01-10 15:10:46 +01:00
Armilar
ae4e47566d Create cardPower_simple_example.xml 2023-01-10 14:43:58 +01:00
Johannes
15510cd767 fix 2023-01-09 19:14:17 +01:00
joBr99
e1f708155f fixes #686 (add nextion2text) 2023-01-09 16:10:24 +00:00
Johannes Braun
c9f464f7c1 fixes #686 2023-01-09 17:04:14 +01:00
Johannes Braun
8d14f6359f Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-09 17:02:06 +01:00
Armilar
dd655de8ce Add id: 0 to cardPower Blockly-Example 2023-01-09 16:06:52 +01:00
Armilar
18815baf0e Add id:0 to cardPower Example 2023-01-09 15:50:36 +01:00
Johannes Braun
30c944f04d Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2023-01-08 15:00:23 +01:00
Johannes
bca94b7525 Update subpages.md 2023-01-07 21:26:37 +01:00
Johannes
57edd0cd5a Update subpages.md 2023-01-07 21:26:21 +01:00
Johannes
0f5285e2f2 Update issue-close-app.yml 2023-01-07 16:33:16 +01:00
Johannes Braun
bb5963049d update issue template 2023-01-07 16:26:35 +01:00
joBr99
5a71d9df2c Update nspanel-lovelace-ui.py (add nextion2text) 2023-01-07 10:46:44 +00:00
Johannes
ade8c0d10a Update nspanel-lovelace-ui.py 2023-01-07 11:41:23 +01:00
Johannes
1be017f029 fix for #676 2023-01-07 11:40:12 +01:00
Armilar
0a3d5834fd v3.8.1 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia by @egal
- Upgrade TFT 47
- Add Volumio-Tracklist to cardMedia by @egal
- HMI Hotfix
2023-01-06 15:38:31 +01:00
Armilar
47e5f414c8 v3.8.1 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia by @egal
- Upgrade TFT 47
- Add Volumio-Tracklist to cardMedia by @egal
- HMI Hotfix
2023-01-06 15:36:22 +01:00
joBr99
9fcb845fd7 bump version to 3.8.2 (add nextion2text) 2023-01-06 14:11:26 +00:00
Johannes
1400ef039b bump version to 3.8.2 2023-01-06 14:44:44 +01:00
Johannes
ef83c45267 Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui 2023-01-06 14:43:53 +01:00
Johannes
5fb4e57cd1 hide 6th entity 2023-01-06 14:43:48 +01:00
Johannes
cbc256bbf9 fixes #670 2023-01-06 14:38:48 +01:00
Armilar
a5e60ac313 v3.8.1 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia by @egal
- Upgrade TFT 47
- Add Volumio-Tracklist to cardMedia by @egal
- HMI Hotfix
2023-01-06 12:15:53 +01:00
Armilar
d634ca1bac v3.8.1 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia by @egal
- Upgrade TFT 47
- Add Volumio-Tracklist to cardMedia by @egal
- HMI Hotfix
2023-01-06 12:12:17 +01:00
Armilar
0a6236b3e0 v3.8.0 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia by @egal
- Upgrade TFT 47
- Add Volumio-Tracklist to cardMedia by @egal
2023-01-06 11:56:00 +01:00
Armilar
183e4d03cb v3.8.0 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia by @egal
- Upgrade TFT 47
- Add Volumio-Tracklist to cardMedia by @egal
2023-01-06 11:53:45 +01:00
Armilar
8eb80af744 v3.8.0 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia by @egal
- Upgrade TFT 47
- Add Volumio-Tracklist to cardMedia by @egal
2023-01-06 11:52:01 +01:00
Armilar
393ef7d322 v3.8.0 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia by @egal
- Upgrade TFT 47
- Add Volumio-Tracklist to cardMedia by @egal
2023-01-06 11:46:52 +01:00
Armilar
42e715c6b5 v3.8.0 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia by @egal
- Upgrade TFT 47
- Add Volumio-Tracklist to cardMedia by @egal
2023-01-06 11:42:38 +01:00
Johannes
f7cba480cf Fix Prev/Next UUID Assignment in #665 Implementation fixes #669 2023-01-06 01:22:05 +01:00
Armilar
b9e7031500 v3.8.0 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia
- Upgrade TFT 47
2023-01-05 23:23:24 +01:00
Armilar
c78ccfc24a v3.8.0 - New Release (Breaking Changes)
- Add New HMI-Navi (Breaking Changes)
- Add Tasmota "Web Admin Password" (Breaking Changes)
- Add Navigation bSubPrev and bSubNext and Subpages for bHome
- Bugfix for cardThermostat - Payload (Minor)
- Add Volumio-Player to cardMedia
- Upgrade TFT 47
2023-01-05 23:20:06 +01:00
Johannes
c626a4eb27 Update nspanel-lovelace-ui.py 2023-01-05 21:09:31 +01:00
Johannes
b8acbb531f Update subpages.md 2023-01-05 21:06:08 +01:00
Johannes
2147ae722f Update subpages.md 2023-01-05 21:05:39 +01:00
Johannes
30fb9c7bdc Update subpages.md 2023-01-05 21:04:39 +01:00
joBr99
55365dcfaa added flipped version (add nextion2text) 2023-01-05 18:06:23 +00:00
Johannes
7791c8d4b0 added flipped version 2023-01-05 18:56:20 +01:00
Johannes
791da7257c sync and bump version 2023-01-05 18:55:07 +01:00
Armilar
a9c23c1938 Merge pull request #666 from kuckuckmann/patch-9
Create WLED.js
2023-01-04 23:18:11 +01:00
kuckuckmann
913685ef6e Create WLED.js 2023-01-04 23:16:02 +01:00
Daniel Albert
ed620559aa Make neighbor card generation work in Python < 3.10 (#665)
Co-authored-by: Daniel Albert <esclear@users.noreply.github.com>
Co-authored-by: Johannes <johannes+develop+github@braun-rheingau.de>
2023-01-04 21:18:38 +01:00
Johannes Braun
6870bfe3ff fix template None template call 2023-01-04 20:51:13 +01:00
Johannes Braun
6951da126a use shorter custom ids instand of uuid 2023-01-04 19:44:40 +01:00
Johannes Braun
dca2db7ce3 implements #633 2023-01-04 18:07:59 +01:00
Armilar
5957f2ff12 Merge pull request #664 from kuckuckmann/patch-8
Create Homatic_nonIP_Thermostate.xml
2023-01-03 21:22:52 +01:00
kuckuckmann
426ceb832a Create Homatic_nonIP_Thermostate.xml 2023-01-03 21:21:14 +01:00
kayvenm
cfd74ce87f Fix for empty detail page after change on previous page (#662)
* Update mqtt.py

Allow force sending duplicate messages

* Update pages.py

Allow forcing sending MQTT message when the detail page is initially generated

* Update controller.py

Set is_open_detail to True when generate_xx_detail_page is called from detail_open
2023-01-03 14:14:06 +01:00
joBr99
9f8c83dfad increase cmd buffer cardthermo (add nextion2text) 2023-01-03 11:41:55 +00:00
Johannes
9cc7b7a38a increase cmd buffer cardthermo 2023-01-03 12:38:24 +01:00
Armilar
3e45273467 Merge pull request #659 from kuckuckmann/patch-6
Create Uhrzeit_Logging.xml
2023-01-01 20:19:37 +01:00
kuckuckmann
1384089e92 Create Uhrzeit_Logging.xml 2023-01-01 19:59:06 +01:00
Johannes
30d752cab5 Update mkdocs.yml 2023-01-01 13:36:20 +01:00
Johannes
e57c50e278 Update configure_mqtt.md 2022-12-31 17:54:02 +01:00
joBr99
e2501f79ad sync (add nextion2text) 2022-12-31 14:51:00 +00:00
Johannes
b7a207407f sync 2022-12-31 15:46:59 +01:00
joBr99
965aeeb000 Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text) 2022-12-31 14:38:25 +00:00
Johannes
056776bc42 Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui 2022-12-31 15:35:14 +01:00
Johannes
3c487394c3 sync some changes to us-p 2022-12-31 15:35:09 +01:00
joBr99
bfc7961e84 implements #654 (add nextion2text) 2022-12-31 14:00:56 +00:00
Johannes
8aec75c959 implements #654 2022-12-31 14:56:33 +01:00
Johannes
a7e30166ee added links to some related projects 2022-12-31 13:34:47 +01:00
Johannes Braun
a26e9e390b Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2022-12-31 13:22:40 +01:00
Johannes Braun
95af12e6ea add some info that was deleted 2022-12-31 13:22:09 +01:00
joBr99
6a5315dc76 Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text) 2022-12-31 00:55:04 +00:00
Johannes Braun
e39972deec Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2022-12-31 01:52:17 +01:00
Johannes
2da9acce65 Update README.md 2022-12-30 22:45:37 +01:00
Johannes Braun
9314792eaf sync some chanegs 2022-12-30 22:02:48 +01:00
joBr99
93f0f858b8 fixes #653 (add nextion2text) 2022-12-30 20:03:43 +00:00
Johannes Braun
4e57b50e0a fixes #653 2022-12-30 21:00:33 +01:00
Johannes Braun
c410c0863e Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui 2022-12-30 14:00:14 +01:00
Johannes Braun
18c6cfd7b1 implements #652 2022-12-30 13:59:57 +01:00
Armilar
fdf11a2ead Update ioBroker_NSPanel_locales.json 2022-12-30 11:33:04 +01:00
Armilar
a420c28418 v3.7.3.2 - Submenu-Item with ALIAS by @tt-tom17
- Submenu-Item with ALIAS (external Script)
2022-12-29 18:45:56 +01:00
EddyK69
f7b51c359e Allow icons based on state of status entity (#651)
* Respect iconOverride on navigate & service

iconOverrides on navigates & services where not shown when the status entity was of type 'sensor' on cardGrids

* Allow icons based on state of status entity

Allow icons based on state of status entity on navigate
2022-12-29 18:32:20 +01:00
Armilar
274267532d v3.7.3.2 - Submenu-Item with ALIAS by @tt-tom17
- Submenu-Item with ALIAS (external Script)
2022-12-29 17:59:40 +01:00
Armilar
48b06b1b82 v3.7.3.2 - Submenu-Item with ALIAS
- Submenu-Item with ALIAS (external Script)
2022-12-29 17:52:08 +01:00
Johannes
494a8d49fa Fix nav item if there is only one page 2022-12-29 16:44:24 +01:00
Johannes
ccdc3a9a77 Update config.py 2022-12-29 16:35:01 +01:00
EddyK69
254f2a2e25 Respect iconOverride on navigate & service (#650)
iconOverrides on navigates & services where not shown when the status entity was of type 'sensor' on cardGrids
2022-12-29 14:09:23 +01:00
Johannes
688a847c77 fixes #649 2022-12-29 14:00:01 +01:00
Armilar
888dc5c402 v3.7.3.1 - Hotfix - Dateformat us-p
Hotfix - us-p - DateString - Use long/short Weekday and long/short Month
2022-12-29 11:39:10 +01:00
Armilar
a0836ea9c5 v3.7.3.1 - Hotfix - Dateformat us-p
Hotfix - us-p - DateString - Use long/short Weekday and long/short Month
2022-12-29 11:33:40 +01:00
Daniel Albert
0ee8120eed Add status functionality for non-entities (#645)
* Add status functionality for non-entities

I wanted to show services on `cardGrid` pages conditionally, using the
`state` and `state_not` options and based on a `status` entity.
The documentation looked as if this was possible, however it didn't work
due to the order of evaluation.

This change makes it possible to hide any item using `state` /
`state_not`, based on either the `entity` itself or the information
provided by the `status` entity.

This basically implements #483, I think.

* Use if/then/else instead of and/or expression evaluation rules

This improves the readability of the code for people not familiar with
the evaluation of and / or expressions.

Co-authored-by: Daniel Albert <esclear@users.noreply.github.com>
2022-12-29 09:50:52 +01:00
Johannes
61e7438128 Revert docs to old config, until release 2022-12-29 09:22:14 +01:00
Johannes
26eeb7e651 revert to if else syntax, to keep compatibility with python 3.9 2022-12-29 09:20:36 +01:00
Johannes
7057df2364 fix issue if there is only one top level card 2022-12-29 00:24:32 +01:00
Johannes
4e0ecbf9fd Update docs.yml 2022-12-28 23:18:56 +01:00
Armilar
8ab20b16a8 v3.7.3.0 Hotfix - bUp case / Update Berry Version 8
- Hotfix - bUp case
- Update Berry Version 8
2022-12-28 20:32:03 +01:00
Armilar
09a7786df4 v3.7.3.0 Hotfix - bUp case / Update Berry Version 8
- Hotfix - bUp case
- Update Berry Version 8
2022-12-28 20:24:16 +01:00
Johannes
ef6876b660 add compiled version 2022-12-28 20:18:16 +01:00
joBr99
2e275a9b44 start reworking navigation paramters (#644) (add nextion2text) 2022-12-28 19:03:54 +00:00
Johannes
d57fddbbf5 start reworking navigation paramters (#644)
* modify cardGrid/cardEntities nav

* rework backend nav for new style

* fix some bugs

* update other pages with new nav paramters

* readd readme part
2022-12-28 20:00:44 +01:00
Armilar
0c415c0797 Merge pull request #642 from kuckuckmann/patch-5
Create RGB_Dec565_rechner.xml
2022-12-28 15:59:25 +01:00
kuckuckmann
de49a35266 Create RGB_Dec565_rechner.xml 2022-12-28 15:57:36 +01:00
Daniel Albert
5b10a37aa7 Make single, right status icon possible (#640)
According to the [screensaver documentation](https://docs.nspanel.pky.eu/config-screensaver/),
the `statusIcon2` option controls the status icon right of the date.

However, if only `statusIcon2` is configured, it would have landed on the left
side, instead of the right side.
This commit adds padding for unconfigured status icons.

Co-authored-by: Daniel Albert <esclear@users.noreply.github.com>
2022-12-27 22:13:40 +01:00
Armilar
dd2dac4eb6 Merge pull request #638 from kuckuckmann/patch-4
Rename Alarm_Page_Erweitertes_Skript_mit_PopupNotifyPage.xml.xml to A…
2022-12-27 15:38:11 +01:00
kuckuckmann
e72ede6e73 Rename Alarm_Page_Erweitertes_Skript_mit_PopupNotifyPage.xml.xml to Alarm_Page_Erweitertes_Skript_mit_PopupNotifyPage.xml 2022-12-27 15:29:51 +01:00
Armilar
9a53eda4a2 Delete Spotify_Premium_Alias.js 2022-12-27 15:08:01 +01:00
Armilar
e0854996fa Delete Sonos_Alias.js 2022-12-27 15:07:35 +01:00
Armilar
60665f5eac Delete Alexa2_Alias.js 2022-12-27 15:07:17 +01:00
Daniel Albert
4492f4df1f Fix state / state_not logic error for entities (#637)
According to the documentation, an entity is only displayed
* if `state` is set: if the entity state is equal to the `state` value
* if `state_not` is set: if the entity state is _not_ equal to the `state_not` value

So `""` – an **empty** string – shall only be returned – i.e. the **entity be hidden**
* if `state` is set: if the entity state is **not** equal to the `state` value
* if `state_not` is set: if the entity state is equal to the `state_not` value

Co-authored-by: Daniel Albert <esclear@users.noreply.github.com>
2022-12-27 14:14:18 +01:00
Armilar
b34586fce3 Merge pull request #636 from kuckuckmann/patch-3
Patch 3
2022-12-27 14:01:01 +01:00
kuckuckmann
4ce76ea5ef Create PopupNotify_layout2_Emulator.xml 2022-12-27 13:57:41 +01:00
kuckuckmann
fdd7d97178 Create CardChart.xml 2022-12-27 13:56:50 +01:00
kuckuckmann
1877b49b5b Create CardPower_Emulator_Skript.xml 2022-12-27 13:55:48 +01:00
kuckuckmann
2106720fe4 Create SqueezeBoxRPC_Alias.js 2022-12-27 13:50:29 +01:00
kuckuckmann
c32c95e6d4 Create Chrome_Alias.js 2022-12-27 13:49:45 +01:00
kuckuckmann
3cd8f6a0f5 Create Sonos_Alias.js 2022-12-27 13:49:11 +01:00
kuckuckmann
a5de459f81 Create Alexa2_Alias.js 2022-12-27 13:48:40 +01:00
kuckuckmann
c722f18193 Create Spotify_Premium_Alias.js 2022-12-27 13:48:12 +01:00
kuckuckmann
d3e68dcb06 Create PopupTimer.xml 2022-12-27 13:46:20 +01:00
Armilar
d4fe865379 Merge pull request #634 from kuckuckmann/patch-2
Create CardMedia_Equalizer.xml
2022-12-27 13:42:24 +01:00
Armilar
74e0905545 Merge pull request #635 from kuckuckmann/patch-1
Patch 1
2022-12-27 13:41:56 +01:00
kuckuckmann
964d9d1b26 Create CardMedia_Equalizer.xml 2022-12-27 13:37:44 +01:00
kuckuckmann
4fda41ffce Create CardMedia_Equalizer.xml 2022-12-27 13:32:16 +01:00
Armilar
8b136a7c26 Create Abfallkalender.xml 2022-12-27 13:31:38 +01:00
kuckuckmann
7f00c847ac Create DWD_Daten_Broadcast.xml 2022-12-27 13:31:17 +01:00
kuckuckmann
ef3fc0ed93 Create Hardware-Buttons_Multipress.xml 2022-12-27 13:30:07 +01:00
kuckuckmann
e7ff857089 Create Abfallkalender.js 2022-12-27 13:29:12 +01:00
kuckuckmann
c193e6c3c4 Create Abfallkalender.xml 2022-12-27 13:28:39 +01:00
kuckuckmann
48e14540a5 Create Screensaver-Info_auf_Request.xml 2022-12-27 13:27:28 +01:00
kuckuckmann
09eabd2986 Create Alarm_Page_Erweitertes_Skript_mit_PopupNotifyPage.xml.xml 2022-12-27 13:25:54 +01:00
kuckuckmann
1198d8c2bc Create Alarm_Page_Testskript.xml
Exclude Blockly out of Wiki article https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker---FAQ-&-Anleitungen#2-alarm-page
2022-12-27 13:20:03 +01:00
Johannes
9711cdc74b Update nspanel-lovelace-ui.py 2022-12-27 01:06:09 +01:00
Johannes Braun
cc50c4c4b3 rework update logic with migration 2022-12-27 00:57:31 +01:00
Johannes Braun
4f832a9af2 update docs for berry driver installation 2022-12-27 00:03:58 +01:00
Johannes Braun
bd6d558cc5 add tapp file for testing 2022-12-26 23:47:00 +01:00
Johannes Braun
529b0516f4 implementes #539 2022-12-25 15:43:23 +01:00
Johannes
b9504a2ff0 fixes #631 2022-12-25 10:32:45 +01:00
Johannes
b4b988b735 fixes #630 2022-12-24 23:47:02 +01:00
Johannes
d3ab908507 Update issue-close-app.yml 2022-12-24 22:54:14 +01:00
Johannes
2ee79debd0 Update card-climate.md 2022-12-24 00:44:07 +01:00
164 changed files with 29149 additions and 6885 deletions

View File

@@ -9,6 +9,9 @@ assignees: ''
<!-- Thanks for reporting a problem for this project. READ THIS FIRST:
DO NOT DELETE ANY TEXT from this template! Otherwise the issue will be auto-closed.
This issue template is meant to REPORT BUGS/PROBLEMS ONLY
Please take a few minutes to complete the requested information below.
@@ -16,8 +19,6 @@ The ability to provide assistance is greatly hampered without it.
PLEASE RESTART APPDAEMON BEFORE SUBMITTING AN ISSUE
To reload all modules after an Update it is reqired to restart the AppDaemon Container, as noted in every Release Notes.
DO NOT DELETE ANY TEXT from this template! Otherwise the issue will be auto-closed.
-->

View File

@@ -9,12 +9,13 @@ assignees: ''
<!-- Thanks for reporting a problem for this project. READ THIS FIRST:
DO NOT DELETE ANY TEXT from this template! Otherwise the issue will be auto-closed.
This issue template is meant to ASK FOR NEW FEATURES ONLY
Please take a few minutes to complete the requested information below.
Our ability to provide assistance is greatly hampered without it.
DO NOT DELETE ANY TEXT from this template! Otherwise the issue will be auto-closed.
-->
### FEATURE DESCRIPTION

View File

@@ -9,12 +9,15 @@ assignees: ''
<!-- Thanks for reporting a problem for this project. READ THIS FIRST:
DO NOT DELETE ANY TEXT from this template! Otherwise the issue will be auto-closed.
This issue template is meant to help with Waiting for Content Message ONLY
Please take a few minutes to complete the requested information below.
The ability to provide assistance is greatly hampered without it.
DO NOT DELETE ANY TEXT from this template! Otherwise the issue will be auto-closed.
-->

View File

@@ -4,29 +4,16 @@
# See how to use it in https://github.com/offu/close-issue-app.
# Comment that will be sent if an issue is judged to be closed.
comment: >-
This issue has been automatically closed because the TEMPLATE is missing or incomplete.
Filling the template is required so standard questions don't need to be asked again each time.
THe ability to provide assistance is greatly hampered if few minutes are not taken to complete the issue template
with the requested information. The details requested potentially affect which options to pursue. The small amount
of time you will spend completing the template will also help the volunteers, providing assistance to you, to reduce
the time required to help you.
Please, could you be so kind on completing the [REPORT TEMPLATE](https://github.com/joBr99/nspanel-lovelace-ui/issues/new/choose) in order to have more information so as to properly help you?
Thank you for taking the time to report, hopefully it can be resolved soon.
[Docs](https://docs.nspanel.pky.eu) for more information.
comment: ""
issueConfigs:
# There can be several configs for different kind of issues.
- content:
# template 1: bug report
- "PROBLEM DESCRIPTION"
# - "REQUESTED INFORMATION"
# - "TO REPRODUCE"
# - "EXPECTED BEHAVIOUR"
- "REQUESTED INFORMATION"
- "TO REPRODUCE"
- "EXPECTED BEHAVIOUR"
- content:
# template 2: feature request
- "FEATURE DESCRIPTION"

View File

@@ -9,6 +9,7 @@ on:
- docs/*
- .github/workflows/docs.yml
- mkdocs.yml
- HMI/README.md
jobs:
deploy:
@@ -19,4 +20,5 @@ jobs:
with:
python-version: 3.x
- run: pip install mkdocs-material mkdocs-video markdown-include
- run: cp HMI/README.md docs/hmi-serial-protocol.md
- run: mkdocs gh-deploy --force

File diff suppressed because it is too large Load Diff

View File

@@ -1,21 +1,8 @@
--- HMI/n2t-out
+++ HMI/US/landscape/n2t-out
│ --- HMI/n2t-out/Program.s.txt
├── +++ HMI/US/landscape/n2t-out/Program.s.txt
│ @@ -10,10 +10,7 @@
│ int sleepValue=0
│ // dim value
│ int dimValue=40
│ int dimValueNormal=100
│ //color vars
│ int defaultFontColor=65535
│ int defaultBcoColor=6371
│ - // fix touch offset
│ - lcd_dev fffb 0002 0000 0020
│ - page pageStartup
│ --- HMI/n2t-out/pageStartup.txt
├── +++ HMI/US/landscape/n2t-out/pageStartup.txt
│ @@ -173,15 +173,15 @@
│ @@ -179,15 +179,15 @@
│ Max. Text Size : 10
│ Events
@@ -34,7 +21,7 @@
│ //send cmd
│ --- HMI/n2t-out/screensaver.txt
├── +++ HMI/US/landscape/n2t-out/screensaver.txt
│ @@ -29,29 +29,20 @@
│ @@ -29,17 +29,14 @@
│ }
│ tDate.txt=pageIcons.vaDate.txt
│ dim=dimValue
@@ -49,22 +36,10 @@
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 200
│ Max. Text Size: 400
-Variable (string) strTmp
- Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 2
│ -
│ Variable (string) tId
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 25
│ Variable (string) tInstruction
│ @@ -103,24 +94,14 @@
Variable (string) strTmp
@@ -103,35 +100,14 @@
│ Value: 0
│ Variable (int32) ycR
@@ -82,6 +57,17 @@
│ - Text :
│ - Max. Text Size : 10
│ -
│ - Events
│ - Touch Press Event
│ - tTmp.txt="change model conf to us-l/p "
│ - strlen tTmp.txt,sys1
│ - sya1=sys1*11+m0.h-48/2
│ - for(sys0=0;sys0<sys1;sys0++)
│ - {
│ - substr tTmp.txt,strTmp.txt,sys0,1
│ - xstr m0.x-5,sys0*-11+m0.y+sya1,23,20,6,WHITE,RED,2,1,3,strTmp.txt
│ - }
│ -
│ Text t10
│ Attributes
│ Scope : local
@@ -89,3 +75,20 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -494,15 +470,15 @@
│ if(tTmp.txt!="")
│ {
│ covx tTmp.txt,defaultFontColor,0,0
│ }
│ }
│ if(tInstruction.txt=="time")
│ {
│ - click m0,1
│ + //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

View File

@@ -14,3 +14,6 @@ Program.s
//color vars
int defaultFontColor=65535
int defaultBcoColor=6371
// fix touch offset
lcd_dev fffb 0002 0000 0020
page pageStartup

View File

@@ -46,7 +46,7 @@ Page cardAlarm
vis bPrev,0
vis bNext,0
cardAlarm.bco=defaultBcoColor
for(sys0=0;sys0<40;sys0++)
for(sys0=0;sys0<44;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -72,12 +72,26 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 41
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 40
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 6
Scope : local
Text :
Max. Text Size: 200
Max. Text Size: 400
Variable (string) tSend
Attributes
@@ -151,6 +165,36 @@ Text tCode
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHeading
Attributes
ID : 42
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 80
y coordinate : 24
Width : 227
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 :
Max. Text Size : 40
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tIcon
Attributes
ID : 26
@@ -541,6 +585,11 @@ Button b0
Events
Touch Press Event
tCode.txt=tCode.txt+"1"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b1
Attributes
@@ -579,6 +628,11 @@ Button b1
Events
Touch Press Event
tCode.txt=tCode.txt+"2"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b10
Attributes
@@ -617,6 +671,11 @@ Button b10
Events
Touch Press Event
tCode.txt=tCode.txt+"0"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b11
Attributes
@@ -655,6 +714,11 @@ Button b11
Events
Touch Press Event
tCode.txt=""
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b2
Attributes
@@ -693,6 +757,11 @@ Button b2
Events
Touch Press Event
tCode.txt=tCode.txt+"3"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b3
Attributes
@@ -731,6 +800,11 @@ Button b3
Events
Touch Press Event
tCode.txt=tCode.txt+"4"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b4
Attributes
@@ -769,6 +843,11 @@ Button b4
Events
Touch Press Event
tCode.txt=tCode.txt+"5"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b5
Attributes
@@ -807,6 +886,11 @@ Button b5
Events
Touch Press Event
tCode.txt=tCode.txt+"6"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b6
Attributes
@@ -845,6 +929,11 @@ Button b6
Events
Touch Press Event
tCode.txt=tCode.txt+"7"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b7
Attributes
@@ -883,6 +972,11 @@ Button b7
Events
Touch Press Event
tCode.txt=tCode.txt+"8"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b8
Attributes
@@ -921,6 +1015,11 @@ Button b8
Events
Touch Press Event
tCode.txt=tCode.txt+"9"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b9
Attributes
@@ -1014,14 +1113,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1068,14 +1160,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1096,9 +1181,9 @@ Hotspot mSwipeNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 472
x coordinate : 471
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -1118,7 +1203,7 @@ Hotspot mSwipePrev
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -1136,7 +1221,7 @@ Hotspot mSwipeUp
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 27
x coordinate : 12
y coordinate : 0
Width : 426
Height : 9
@@ -1222,87 +1307,94 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
//entn
spstr strCommand.txt,entn.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
spstr strCommand.txt,tHeading.txt,"~",1
if(tHeading.txt=="unknown")
{
tHeading.txt=""
}
if(tHeading.txt!="")
{
vis tHeading,1
}else
{
vis tHeading,0
}
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entn
spstr strCommand.txt,entn.txt,"~",14
//text arm1
spstr strCommand.txt,arm1.txt,"~",3
spstr strCommand.txt,arm1.txt,"~",15
if(arm1.txt!="")
{
vis arm1,1
}
//id arm1
spstr strCommand.txt,va1.txt,"~",4
spstr strCommand.txt,va1.txt,"~",16
//text arm2
spstr strCommand.txt,arm2.txt,"~",5
spstr strCommand.txt,arm2.txt,"~",17
if(arm2.txt!="")
{
vis arm2,1
}
//id arm2
spstr strCommand.txt,va2.txt,"~",6
spstr strCommand.txt,va2.txt,"~",18
//text arm3
spstr strCommand.txt,arm3.txt,"~",7
spstr strCommand.txt,arm3.txt,"~",19
if(arm3.txt!="")
{
vis arm3,1
}
//id arm3
spstr strCommand.txt,va3.txt,"~",8
spstr strCommand.txt,va3.txt,"~",20
//text arm4
spstr strCommand.txt,arm4.txt,"~",9
spstr strCommand.txt,arm4.txt,"~",21
if(arm4.txt!="")
{
vis arm4,1
}
//id arm4
spstr strCommand.txt,va4.txt,"~",10
spstr strCommand.txt,va4.txt,"~",22
//icon
spstr strCommand.txt,tIcon.txt,"~",11
spstr strCommand.txt,tIcon.txt,"~",23
//icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon.pco=sys0
//numpad status
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",25
if(tTmp.txt!="disable")
{
vis b0,1
@@ -1317,7 +1409,13 @@ Timer tmSerial
vis b9,1
vis b10,1
vis b11,1
vis tCode,1
if(tHeading.txt!="")
{
vis tCode,0
}else
{
vis tCode,1
}
}else
{
vis b0,0
@@ -1335,7 +1433,7 @@ Timer tmSerial
vis tCode,0
}
//flashing status
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",26
if(tTmp.txt=="enable")
{
tmFlash.en=1
@@ -1344,13 +1442,13 @@ Timer tmSerial
tmFlash.en=0
}
// extra button
spstr strCommand.txt,b9.txt,"~",15
spstr strCommand.txt,b9.txt,"~",27
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
spstr strCommand.txt,vaAddBtn.txt,"~",29
}
}
if(tInstruction.txt=="time")
@@ -1459,6 +1557,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -53,129 +53,143 @@ Page cardChart
Variable (string) entn
Attributes
ID : 4
ID : 6
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 32
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 31
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 3
ID : 5
Scope : local
Text :
Max. Text Size: 275
Variable (string) strTmp
Attributes
ID : 14
ID : 18
Scope : local
Text :
Max. Text Size: 200
Variable (string) tId
Attributes
ID : 11
ID : 14
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 12
ID : 15
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 7
ID : 9
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Attributes
ID : 10
ID : 13
Scope : local
Text :
Max. Text Size: 20
Variable (int32) vMax
Attributes
ID : 25
ID : 29
Scope: local
Value: 0
Variable (int32) vNValues
Attributes
ID : 13
ID : 17
Scope: local
Value: 0
Variable (int32) vaBottom
Attributes
ID : 18
ID : 22
Scope: local
Value: 0
Variable (int32) vaColorD
Attributes
ID : 24
ID : 28
Scope: local
Value: 0
Variable (int32) vaColorL
Attributes
ID : 23
ID : 27
Scope: local
Value: 0
Variable (int32) vaLast
Attributes
ID : 21
ID : 25
Scope: local
Value: 4294967295
Variable (int32) vaLeft
Attributes
ID : 19
ID : 23
Scope: local
Value: 0
Variable (int32) vaUnit
Attributes
ID : 16
ID : 20
Scope: local
Value: 0
Variable (int32) vaValue
Attributes
ID : 17
ID : 21
Scope: local
Value: 0
Variable (string) vaValues
Attributes
ID : 20
ID : 24
Scope : local
Text :
Max. Text Size: 100
Variable (int32) vaYUnit
Attributes
ID : 26
ID : 30
Scope: local
Value: 0
XFloat x0
Attributes
ID : 22
ID : 26
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 190
x coordinate : 189
y coordinate : 84
Width : 100
Height : 30
@@ -201,13 +215,13 @@ XFloat x0
Text tHeading
Attributes
ID : 28
ID : 16
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 81
x coordinate : 82
y coordinate : 26
Width : 320
Height : 30
@@ -248,13 +262,13 @@ Picture p0
Button bNext
Attributes
ID : 29
ID : 2
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 406
x coordinate : 407
y coordinate : 16
Width : 50
Height : 50
@@ -280,14 +294,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -302,13 +309,13 @@ Button bNext
Button bPrev
Attributes
ID : 27
ID : 3
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 24
x coordinate : 25
y coordinate : 16
Width : 50
Height : 50
@@ -334,14 +341,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -356,15 +356,15 @@ Button bPrev
Hotspot m0
Attributes
ID : 15
ID : 19
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
x coordinate : 36
y coordinate : 90
Width : 440
Width : 410
Height : 220
Effect : load
Effect Priority : 0
@@ -447,15 +447,15 @@ Hotspot m0
Hotspot mSwipeNext
Attributes
ID : 30
ID : 10
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 472
x coordinate : 471
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -467,7 +467,7 @@ Hotspot mSwipeNext
Hotspot mSwipePrev
Attributes
ID : 9
ID : 12
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -487,7 +487,7 @@ Hotspot mSwipePrev
Hotspot mSwipeUp
Attributes
ID : 8
ID : 11
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -507,7 +507,7 @@ Hotspot mSwipeUp
Timer tmSerial
Attributes
ID : 2
ID : 4
Scope : local
Period (ms): 50
Enabled : yes
@@ -559,48 +559,42 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// extract color
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
@@ -612,7 +606,7 @@ Timer tmSerial
//
// detect nValues and maxValue
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
while(sya0>0)
{
@@ -623,7 +617,7 @@ Timer tmSerial
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
}
//
@@ -638,7 +632,7 @@ Timer tmSerial
//
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
spstr strCommand.txt,strTmp.txt,"~",5
spstr strCommand.txt,strTmp.txt,"~",16
sya1=0
spstr strTmp.txt,tTmp.txt,":",sya1
strlen tTmp.txt,sya0
@@ -671,7 +665,7 @@ Timer tmSerial
}
//
// y achis label
spstr strCommand.txt,tTmp.txt,"~",4
spstr strCommand.txt,tTmp.txt,"~",15
// tTmp.txt="Gas [kW]"
strlen tTmp.txt,sys1
sya1=sys1*12+m0.h-48/2
@@ -687,7 +681,7 @@ Timer tmSerial
vaValues.txt+="~"
}
// extract next entry
spstr strCommand.txt,tTmp.txt,"~",sys0+6
spstr strCommand.txt,tTmp.txt,"~",sys0+17
// calculate left
sys1=sys0*5*vaUnit.val
sys1+=vaLeft.val
@@ -853,6 +847,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1
@@ -868,7 +866,7 @@ Timer tmSerial
Timer tmSleep
Attributes
ID : 5
ID : 7
Scope : local
Period (ms): 1000
Enabled : yes
@@ -899,7 +897,7 @@ Timer tmSleep
TouchCap tc0
Attributes
ID : 6
ID : 8
Scope: local
Value: 0

View File

@@ -74,7 +74,7 @@ Page cardEntities
vis bPrev,0
vis bNext,0
cardEntities.bco=defaultBcoColor
for(sys0=0;sys0<65;sys0++)
for(sys0=0;sys0<67;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==54)
{
@@ -96,28 +96,42 @@ Page cardEntities
Variable (string) entn1
Attributes
ID : 44
ID : 42
Scope : local
Text :
Max. Text Size: 80
Variable (string) entn2
Attributes
ID : 45
ID : 43
Scope : local
Text :
Max. Text Size: 80
Variable (string) entn3
Attributes
ID : 46
ID : 44
Scope : local
Text :
Max. Text Size: 80
Variable (string) entn4
Attributes
ID : 47
ID : 45
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 63
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 64
Scope : local
Text :
Max. Text Size: 80
@@ -131,42 +145,42 @@ Variable (string) strCommand
Variable (string) tSend
Attributes
ID : 64
ID : 62
Scope : local
Text :
Max. Text Size: 200
Variable (string) type1
Attributes
ID : 40
ID : 38
Scope : local
Text :
Max. Text Size: 10
Variable (string) type2
Attributes
ID : 41
ID : 39
Scope : local
Text :
Max. Text Size: 10
Variable (string) type3
Attributes
ID : 42
ID : 40
Scope : local
Text :
Max. Text Size: 10
Variable (string) type4
Attributes
ID : 43
ID : 41
Scope : local
Text :
Max. Text Size: 10
Number nNum1
Attributes
ID : 53
ID : 51
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -196,7 +210,7 @@ Number nNum1
Number nNum2
Attributes
ID : 54
ID : 52
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -226,7 +240,7 @@ Number nNum2
Number nNum3
Attributes
ID : 55
ID : 53
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -256,7 +270,7 @@ Number nNum3
Number nNum4
Attributes
ID : 56
ID : 54
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -294,7 +308,7 @@ Text tEntity1
Opacity : 127
x coordinate : 92
y coordinate : 85
Width : 180
Width : 184
Height : 30
Effect : load
Effect Priority : 0
@@ -324,7 +338,7 @@ Text tEntity2
Opacity : 127
x coordinate : 93
y coordinate : 142
Width : 180
Width : 184
Height : 30
Effect : load
Effect Priority : 0
@@ -354,7 +368,7 @@ Text tEntity3
Opacity : 127
x coordinate : 93
y coordinate : 198
Width : 180
Width : 184
Height : 30
Effect : load
Effect Priority : 0
@@ -384,7 +398,7 @@ Text tEntity4
Opacity : 127
x coordinate : 93
y coordinate : 254
Width : 180
Width : 184
Height : 30
Effect : load
Effect Priority : 0
@@ -663,7 +677,7 @@ Picture p0
Slider hSlider1
Attributes
ID : 49
ID : 47
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -706,7 +720,7 @@ Slider hSlider1
Slider hSlider2
Attributes
ID : 50
ID : 48
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -749,7 +763,7 @@ Slider hSlider2
Slider hSlider3
Attributes
ID : 51
ID : 49
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -792,7 +806,7 @@ Slider hSlider3
Slider hSlider4
Attributes
ID : 52
ID : 50
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1023,7 +1037,7 @@ Button bDown4
Button bNext
Attributes
ID : 33
ID : 65
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1055,14 +1069,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1077,7 +1084,7 @@ Button bNext
Button bPrev
Attributes
ID : 32
ID : 66
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1109,14 +1116,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1319,14 +1319,14 @@ Button bStop4
Button bText1
Attributes
ID : 60
ID : 58
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 276
y coordinate : 75
y coordinate : 74
Width : 166
Height : 50
Effect : load
@@ -1366,14 +1366,14 @@ Button bText1
Button bText2
Attributes
ID : 61
ID : 59
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 276
y coordinate : 131
y coordinate : 132
Width : 166
Height : 50
Effect : load
@@ -1413,7 +1413,7 @@ Button bText2
Button bText3
Attributes
ID : 62
ID : 60
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1460,14 +1460,14 @@ Button bText3
Button bText4
Attributes
ID : 63
ID : 61
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 277
y coordinate : 245
y coordinate : 244
Width : 166
Height : 50
Effect : load
@@ -1875,7 +1875,7 @@ Dual-state Button btOnOff4
Hotspot m0
Attributes
ID : 38
ID : 36
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1919,7 +1919,7 @@ Hotspot m0
Hotspot m1
Attributes
ID : 37
ID : 35
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1963,7 +1963,7 @@ Hotspot m1
Hotspot m2
Attributes
ID : 36
ID : 34
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2007,7 +2007,7 @@ Hotspot m2
Hotspot m3
Attributes
ID : 39
ID : 37
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2051,7 +2051,7 @@ Hotspot m3
Hotspot mSpecial
Attributes
ID : 34
ID : 32
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2077,15 +2077,15 @@ Hotspot mSpecial
Hotspot mSwipeNext
Attributes
ID : 57
ID : 55
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 472
x coordinate : 471
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -2097,7 +2097,7 @@ Hotspot mSwipeNext
Hotspot mSwipePrev
Attributes
ID : 59
ID : 57
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2105,7 +2105,7 @@ Hotspot mSwipePrev
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -2117,16 +2117,16 @@ Hotspot mSwipePrev
Hotspot mSwipeUp
Attributes
ID : 58
ID : 56
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 25
x coordinate : 27
y coordinate : 0
Width : 425
Height : 7
Width : 426
Height : 9
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -2191,50 +2191,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,displayName,optionalValue]x4
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis bUp1,0
@@ -2249,14 +2243,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",5
spstr strCommand.txt,tIcon1.txt,"~",16
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
if(type1.txt=="shutter")
@@ -2269,7 +2263,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8
spstr strCommand.txt,tId.txt,"~",19
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2320,7 +2314,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -2337,7 +2331,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="button"||type1.txt=="input_sel")
{
@@ -2352,7 +2346,7 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="number")
{
@@ -2365,7 +2359,7 @@ Timer tmSerial
vis hSlider1,1
vis nNum1,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
//first value is current value
spstr bText1.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2381,9 +2375,9 @@ Timer tmSerial
hSlider1.maxval=sys0
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis bUp2,0
@@ -2398,14 +2392,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",11
spstr strCommand.txt,tIcon2.txt,"~",22
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
if(type2.txt=="shutter")
@@ -2418,7 +2412,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14
spstr strCommand.txt,tId.txt,"~",25
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2469,7 +2463,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",25
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -2486,7 +2480,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="button"||type2.txt=="input_sel")
{
@@ -2501,7 +2495,7 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="number")
{
@@ -2514,7 +2508,7 @@ Timer tmSerial
vis hSlider2,1
vis nNum2,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
//first value is current value
spstr bText2.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2530,9 +2524,9 @@ Timer tmSerial
hSlider2.maxval=sys0
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis bUp3,0
@@ -2547,14 +2541,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon3.txt,"~",17
spstr strCommand.txt,tIcon3.txt,"~",28
vis tIcon3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
tIcon3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
if(type3.txt=="shutter")
@@ -2567,7 +2561,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20
spstr strCommand.txt,tId.txt,"~",31
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2618,7 +2612,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",31
covx tTmp.txt,sys0,0,0
btOnOff3.val=sys0
}
@@ -2635,7 +2629,7 @@ Timer tmSerial
bText3.pco=65535
bText3.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="button"||type3.txt=="input_sel")
{
@@ -2650,7 +2644,7 @@ Timer tmSerial
bText3.pco=1374
bText3.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="number")
{
@@ -2663,7 +2657,7 @@ Timer tmSerial
vis hSlider3,1
vis nNum3,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
//first value is current value
spstr bText3.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2679,9 +2673,9 @@ Timer tmSerial
hSlider3.maxval=sys0
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis bUp4,0
@@ -2696,14 +2690,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon4.txt,"~",23
spstr strCommand.txt,tIcon4.txt,"~",34
vis tIcon4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
tIcon4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
if(type4.txt=="shutter")
@@ -2716,7 +2710,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26
spstr strCommand.txt,tId.txt,"~",37
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2767,7 +2761,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",37
covx tTmp.txt,sys0,0,0
btOnOff4.val=sys0
}
@@ -2784,7 +2778,7 @@ Timer tmSerial
bText4.pco=65535
bText4.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="button"||type4.txt=="input_sel")
{
@@ -2799,7 +2793,7 @@ Timer tmSerial
bText4.pco=1374
bText4.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="number")
{
@@ -2812,7 +2806,7 @@ Timer tmSerial
vis hSlider4,1
vis nNum4,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
//first value is current value
spstr bText4.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2896,6 +2890,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{
@@ -2949,7 +2947,7 @@ Timer tmSerial
Timer tmSleep
Attributes
ID : 35
ID : 33
Scope : local
Period (ms): 1000
Enabled : yes
@@ -2980,7 +2978,7 @@ Timer tmSleep
TouchCap tc0
Attributes
ID : 48
ID : 46
Scope: local
Value: 0

View File

@@ -96,12 +96,26 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 42
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 43
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 500
Max. Text Size: 700
Variable (string) tSend
Attributes
@@ -160,7 +174,7 @@ Text tEntity1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 26
x coordinate : 22
y coordinate : 155
Width : 140
Height : 30
@@ -190,7 +204,7 @@ Text tEntity2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 173
x coordinate : 169
y coordinate : 155
Width : 140
Height : 30
@@ -220,7 +234,7 @@ Text tEntity3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 319
x coordinate : 315
y coordinate : 155
Width : 140
Height : 30
@@ -250,7 +264,7 @@ Text tEntity4
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 26
x coordinate : 16
y coordinate : 274
Width : 140
Height : 30
@@ -280,7 +294,7 @@ Text tEntity5
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 173
x coordinate : 169
y coordinate : 274
Width : 140
Height : 30
@@ -310,7 +324,7 @@ Text tEntity6
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 319
x coordinate : 315
y coordinate : 274
Width : 140
Height : 30
@@ -340,7 +354,7 @@ Text tHeading
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 131
x coordinate : 127
y coordinate : 26
Width : 227
Height : 30
@@ -370,7 +384,7 @@ Text tId
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 131
x coordinate : 111
y coordinate : 290
Width : 39
Height : 30
@@ -400,7 +414,7 @@ Text tInstruction
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
x coordinate : 0
y coordinate : 290
Width : 100
Height : 30
@@ -430,7 +444,7 @@ Text tTmp
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 420
x coordinate : 400
y coordinate : 290
Width : 34
Height : 30
@@ -477,7 +491,7 @@ Button bEntity1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 26
x coordinate : 22
y coordinate : 75
Width : 140
Height : 80
@@ -544,7 +558,7 @@ Button bEntity2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 173
x coordinate : 168
y coordinate : 75
Width : 140
Height : 80
@@ -611,7 +625,7 @@ Button bEntity3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 319
x coordinate : 315
y coordinate : 75
Width : 140
Height : 80
@@ -678,7 +692,7 @@ Button bEntity4
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 26
x coordinate : 22
y coordinate : 194
Width : 140
Height : 80
@@ -745,7 +759,7 @@ Button bEntity5
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 173
x coordinate : 169
y coordinate : 194
Width : 140
Height : 80
@@ -812,7 +826,7 @@ Button bEntity6
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 319
x coordinate : 315
y coordinate : 194
Width : 140
Height : 80
@@ -879,7 +893,7 @@ Button bNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 411
x coordinate : 407
y coordinate : 16
Width : 50
Height : 50
@@ -905,14 +919,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -933,9 +940,9 @@ Button bPrev
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 29
x coordinate : 26
y coordinate : 16
Width : 50
Width : 49
Height : 50
Effect : load
Effect Priority : 0
@@ -959,14 +966,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -987,7 +987,7 @@ Hotspot mSpecial
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 328
x coordinate : 308
y coordinate : 0
Width : 83
Height : 67
@@ -1013,9 +1013,9 @@ Hotspot mSwipeNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 472
x coordinate : 471
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -1035,7 +1035,7 @@ Hotspot mSwipePrev
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 7
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -1053,7 +1053,7 @@ Hotspot mSwipeUp
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 32
x coordinate : 12
y coordinate : 0
Width : 426
Height : 9
@@ -1139,50 +1139,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -1190,20 +1184,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",5
spstr strCommand.txt,bEntity1.txt,"~",16
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -1211,20 +1205,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",11
spstr strCommand.txt,bEntity2.txt,"~",22
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -1232,20 +1226,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",17
spstr strCommand.txt,bEntity3.txt,"~",28
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -1253,20 +1247,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",23
spstr strCommand.txt,bEntity4.txt,"~",34
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",27
spstr strCommand.txt,type5.txt,"~",38
// get internal name
spstr strCommand.txt,entn5.txt,"~",28
spstr strCommand.txt,entn5.txt,"~",39
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -1274,20 +1268,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",29
spstr strCommand.txt,bEntity5.txt,"~",40
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",30
spstr strCommand.txt,tTmp.txt,"~",41
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",31
spstr strCommand.txt,tEntity5.txt,"~",42
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",33
spstr strCommand.txt,type6.txt,"~",44
// get internal name
spstr strCommand.txt,entn6.txt,"~",34
spstr strCommand.txt,entn6.txt,"~",45
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -1295,14 +1289,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",35
spstr strCommand.txt,bEntity6.txt,"~",46
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",37
spstr strCommand.txt,tEntity6.txt,"~",48
vis tEntity6,1
}
}
@@ -1374,6 +1368,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -0,0 +1,866 @@
Page cardLChart
Attributes
ID : 0
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
Width : 480
Effect : load
Effect Priority : 0
Effect Time : 300
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID : disabled
Fill : solid color
Back. Color : 6371
Events
Preinitialize Event
dim=dimValueNormal
vis p0,0
vis tSend,0
vis tInstruction,0
vis tTmp,0
vis tId,0
vis bPrev,0
vis bNext,0
cardLChart.bco=defaultBcoColor
//vis x0,0
//x0.bco=defaultBcoColor
//x0.borderc=defaultBcoColor
for(sys0=0;sys0<32;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==6371)
{
b[sys0].pic=1
b[sys0].pic2=2
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
Variable (string) entn
Attributes
ID : 6
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 32
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 31
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
Scope : local
Text :
Max. Text Size: 512
Variable (string) strTmp
Attributes
ID : 18
Scope : local
Text :
Max. Text Size: 200
Variable (string) tId
Attributes
ID : 14
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 15
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 9
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Attributes
ID : 13
Scope : local
Text :
Max. Text Size: 400
Variable (int32) vNValues
Attributes
ID : 17
Scope: local
Value: 0
Variable (int32) vaBottom
Attributes
ID : 22
Scope: local
Value: 0
Variable (int32) vaColorD
Attributes
ID : 25
Scope: local
Value: 0
Variable (int32) vaColorL
Attributes
ID : 24
Scope: local
Value: 0
Variable (int32) vaLeft
Attributes
ID : 23
Scope: local
Value: 0
Variable (int32) vaMaxX
Attributes
ID : 27
Scope: local
Value: 2147483648
Variable (int32) vaMaxY
Attributes
ID : 26
Scope: local
Value: 0
Variable (int32) vaMinX
Attributes
ID : 29
Scope: local
Value: 2147483647
Variable (int32) vaMinY
Attributes
ID : 30
Scope: local
Value: 2147483647
Variable (int32) vaValue
Attributes
ID : 21
Scope: local
Value: 0
Variable (int32) vaXUnit
Attributes
ID : 20
Scope: local
Value: 0
Variable (int32) vaYUnit
Attributes
ID : 28
Scope: local
Value: 0
Text tHeading
Attributes
ID : 16
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 81
y coordinate : 26
Width : 320
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 :
Max. Text Size : 40
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0
Attributes
ID : 1
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 0
Width : 480
Height : 320
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 0
Button bNext
Attributes
ID : 2
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 406
y coordinate : 16
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 3
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 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,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bPrev
Attributes
ID : 3
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 24
y coordinate : 16
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 3
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 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,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Hotspot m0
Attributes
ID : 19
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 35
y coordinate : 90
Width : 410
Height : 220
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
//fill m0.x,m0.y,m0.w,m0.h,RED
Hotspot mSwipeNext
Attributes
ID : 10
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 471
y coordinate : 5
Width : 9
Height : 310
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bNext,1
Hotspot mSwipePrev
Attributes
ID : 12
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 9
Height : 310
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bPrev,1
Hotspot mSwipeUp
Attributes
ID : 11
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 12
y coordinate : 0
Width : 426
Height : 9
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bPrev,1
Timer tmSerial
Attributes
ID : 4
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
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
}
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
}
//draw m0.x,m0.y,m0.x+m0.w,m0.y+m0.h,RED
// extract color
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
vaColorD.val=sys0*8/10<<11 // store and shift
sys0=vaColorL.val>>5%64 // green
vaColorD.val=sys0*8/10<<5+vaColorD.val // store and shift
sys0=vaColorL.val%32
vaColorD.val=sys0*8/10+vaColorD.val // store and add
//
// detect nValues and maxX/Y
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
while(sya0>0)
{
//tHeading.txt="last value="+tTmp.txt
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxX.val)
{
vaMaxX.val=sya1
}
if(sya1<vaMinX.val)
{
vaMinX.val=sya1
}
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxY.val)
{
vaMaxY.val=sya1
}
if(sya1<vaMinY.val)
{
vaMinY.val=sya1
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
}
// find first given y axis labels
spstr strCommand.txt,tTmp.txt,"~",16 // labels in tTmp.txt
sys0=0 // <= result (here: first label value)
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>vaMinY.val)
{
sys0--
if(sys0>=0)
{
// found a y-tick => take is at min...
spstr tTmp.txt,strTmp.txt,":",sys0
covx strTmp.txt,vaMinY.val,0,0
}
sya0=0
}else
{
// next
sys0++
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
}
}
sys1=sys0+1 // last label
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>=vaMaxY.val)
{
vaMaxY.val=sya1
sya0=0
}else
{
// next
sys1++
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
}
}
// get first given x axis tick
spstr strCommand.txt,strTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
covx strTmp.txt,vaMinX.val,0,0
// covx vaMinX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt+":"
// covx vaMaxX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt
// calculate unit width
vaBottom.val=m0.y+m0.h-24
vaLeft.val=m0.x+25+40*100
sya1=vaMaxX.val-vaMinX.val
vaXUnit.val=m0.w-25-40*100/sya1
sya1=vaMaxY.val-vaMinY.val
vaYUnit.val=m0.h-24*100/sya1
// draw labels
// labels still in tTmp.txt
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+5,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
if(sys0>0)
{
sys0--
}
for(sya0=sys0;sya0<=sys1;sya0++)
{
spstr tTmp.txt,strTmp.txt,":",sya0
covx strTmp.txt,sya1,0,0
sys2=sya1%10
sya1/=10
if(sya1>0)
{
covx sya1,strTmp.txt,0,0
}else
{
strTmp.txt=""
}
if(sys2!=0)
{
covx sys2,tId.txt,0,0
strTmp.txt=strTmp.txt+"."+tId.txt
}
sya1*=10+sys2
sya1-=vaMinY.val
xstr m0.x+28,-1*vaYUnit.val*sya1/100+vaBottom.val-10,20,20,0,defaultFontColor,RED,2,1,3,strTmp.txt
line m0.x+25+40-5,-1*vaYUnit.val*sya1/100+vaBottom.val,m0.x+25+40-15,-1*vaYUnit.val*sya1/100+vaBottom.val,14823
}
// y achis label
spstr strCommand.txt,tTmp.txt,"~",15
strlen tTmp.txt,sys1
sya1=sys1*11+m0.h-48/2
for(sys0=0;sys0<sys1;sys0++)
{
substr tTmp.txt,strTmp.txt,sys0,1
xstr m0.x,sys0*-11+m0.y+sya1,24,20,6,defaultFontColor,RED,2,1,3,strTmp.txt
}
//
// x axis tick/labels
// draw bottom line
line m0.x+25+40,vaBottom.val,m0.x+m0.w,vaBottom.val,14823
spstr strCommand.txt,tTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
//
sys1=0
// extract first tick ~> sya1 contains fist ticks value
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
// loop until current ticks label is smaller than the maximum value observed
while(sya0>0&&sya1<vaMaxX.val)
{
sys2=sya1-vaMinX.val*vaXUnit.val/100+m0.x+25+40
// draw tick line
line sys2,vaBottom.val-5,sys2,vaBottom.val+5,14823
// check for label
spstr strTmp.txt,strTmp.txt,"^",1
strlen strTmp.txt,sya0
if(sya0>0)
{
// label found ~> draw
xstr -6*sya0+sys2,vaBottom.val+2,sya0*12,22,0,defaultFontColor,defaultBcoColor,1,1,3,strTmp.txt
}
// next ~> sya1 contains next ticks label
sys1++
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
}
//
// draw line segments...
sys1=-2147483648
sys2=-2147483648
for(sys0=0;sys0<vNValues.val;sys0++)
{
// extract x:y from "~" separated payload
spstr strCommand.txt,tTmp.txt,"~",sys0+18
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya0,0,0
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
sya0=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
sya1=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
// draw circle
// cir sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,3,vaColorL.val
if(sys1>0&&sys2>0)
{
// this is not the first point as the last one has been stored in (sys1,sys2)
// ~> connect with a line...
//line sys1,sys2,sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,vaColorD.val
line sys1,sys2,sya0,sya1,vaColorD.val
//line sys1-1,sys2-1,sya0-1,sya1-1,vaColorL.val
//line sys1+1,sys2+1,sya0+1,sya1+1,vaColorL.val
}
// store current point to (sys1,sys2)
//sys1=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
//sys2=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
sys1=sya0
sys2=sya1
}
}
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")
{
sleepValue=0
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// 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&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
}
TouchCap tc0
Attributes
ID : 8
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -37,7 +37,7 @@ Page cardMedia
vis bEntity5,0
vis bEntity6,0
cardMedia.bco=defaultBcoColor
for(sys0=0;sys0<34;sys0++)
for(sys0=0;sys0<54;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -101,6 +101,20 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 58
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 57
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
@@ -248,7 +262,7 @@ Text t0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 126
x coordinate : 123
y coordinate : 145
Width : 50
Height : 50
@@ -297,7 +311,7 @@ Text t1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 25
x coordinate : 22
y coordinate : 201
Width : 50
Height : 50
@@ -347,7 +361,7 @@ Text t2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 316
x coordinate : 313
y coordinate : 145
Width : 50
Height : 50
@@ -396,7 +410,7 @@ Text t3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 411
x coordinate : 408
y coordinate : 201
Width : 50
Height : 50
@@ -446,7 +460,7 @@ Text t5
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 411
x coordinate : 408
y coordinate : 145
Width : 50
Height : 50
@@ -495,7 +509,7 @@ Text tAuthor
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 103
x coordinate : 100
y coordinate : 108
Width : 358
Height : 25
@@ -525,7 +539,7 @@ Text tHeading
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 129
x coordinate : 126
y coordinate : 26
Width : 228
Height : 30
@@ -535,7 +549,7 @@ Text tHeading
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Font ID : 2
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
@@ -555,7 +569,7 @@ Text tInstruction
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 296
x coordinate : 311
y coordinate : 0
Width : 100
Height : 20
@@ -585,7 +599,7 @@ Text tPlayPause
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 221
x coordinate : 218
y coordinate : 145
Width : 50
Height : 50
@@ -634,7 +648,7 @@ Text tShuffle
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 31
x coordinate : 28
y coordinate : 145
Width : 50
Height : 50
@@ -683,7 +697,7 @@ Text tTitle
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 102
x coordinate : 99
y coordinate : 78
Width : 358
Height : 25
@@ -730,7 +744,7 @@ Slider hVolume
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 79
x coordinate : 76
y coordinate : 206
Width : 328
Height : 43
@@ -776,7 +790,7 @@ Button bEntity1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 29
x coordinate : 26
y coordinate : 75
Width : 71
Height : 62
@@ -839,7 +853,7 @@ Button bEntity2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 31
x coordinate : 28
y coordinate : 257
Width : 55
Height : 55
@@ -906,7 +920,7 @@ Button bEntity3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 122
x coordinate : 119
y coordinate : 257
Width : 55
Height : 55
@@ -973,7 +987,7 @@ Button bEntity4
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 213
x coordinate : 210
y coordinate : 257
Width : 55
Height : 55
@@ -1040,7 +1054,7 @@ Button bEntity5
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 304
x coordinate : 301
y coordinate : 257
Width : 55
Height : 55
@@ -1107,7 +1121,7 @@ Button bEntity6
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 400
x coordinate : 397
y coordinate : 257
Width : 55
Height : 55
@@ -1174,7 +1188,7 @@ Button bNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 409
x coordinate : 406
y coordinate : 16
Width : 50
Height : 50
@@ -1200,14 +1214,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1228,7 +1235,7 @@ Button bPrev
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 27
x coordinate : 24
y coordinate : 16
Width : 50
Height : 50
@@ -1254,14 +1261,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1282,9 +1282,9 @@ Hotspot mSwipeNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 472
x coordinate : 471
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -1419,72 +1419,66 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//title
spstr strCommand.txt,tTitle.txt,"~",4
spstr strCommand.txt,tTitle.txt,"~",15
//title farbe
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt!="")
{
covx tTmp.txt,tTitle.pco,0,0
}
//author
spstr strCommand.txt,tAuthor.txt,"~",6
spstr strCommand.txt,tAuthor.txt,"~",17
//author farbe
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
if(tTmp.txt!="")
{
covx tTmp.txt,tAuthor.pco,0,0
}
//volume
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
hVolume.val=sys0
//icon
spstr strCommand.txt,tPlayPause.txt,"~",9
spstr strCommand.txt,tPlayPause.txt,"~",20
// on off button
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt=="disable")
{
vis t5,0
@@ -1494,7 +1488,7 @@ Timer tmSerial
covx tTmp.txt,t5.pco,0,0
}
// shuffel btn
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt=="disable")
{
vis tShuffle,0
@@ -1504,9 +1498,9 @@ Timer tmSerial
tShuffle.txt=tTmp.txt
}
// get Type
spstr strCommand.txt,type1.txt,"~",12
spstr strCommand.txt,type1.txt,"~",23
// get internal name
spstr strCommand.txt,entn1.txt,"~",13
spstr strCommand.txt,entn1.txt,"~",24
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -1514,20 +1508,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",14
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",16
spstr strCommand.txt,tEntity1.txt,"~",27
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",18
spstr strCommand.txt,type2.txt,"~",29
// get internal name
spstr strCommand.txt,entn2.txt,"~",19
spstr strCommand.txt,entn2.txt,"~",30
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -1535,20 +1529,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",20
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",21
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",22
spstr strCommand.txt,tEntity2.txt,"~",33
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",24
spstr strCommand.txt,type3.txt,"~",35
// get internal name
spstr strCommand.txt,entn3.txt,"~",25
spstr strCommand.txt,entn3.txt,"~",36
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -1556,20 +1550,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",26
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",27
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",28
spstr strCommand.txt,tEntity3.txt,"~",39
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",30
spstr strCommand.txt,type4.txt,"~",41
// get internal name
spstr strCommand.txt,entn4.txt,"~",31
spstr strCommand.txt,entn4.txt,"~",42
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -1577,20 +1571,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",32
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",33
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",34
spstr strCommand.txt,tEntity4.txt,"~",45
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",36
spstr strCommand.txt,type5.txt,"~",47
// get internal name
spstr strCommand.txt,entn5.txt,"~",37
spstr strCommand.txt,entn5.txt,"~",48
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -1598,20 +1592,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",38
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",39
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",40
spstr strCommand.txt,tEntity5.txt,"~",51
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",42
spstr strCommand.txt,type6.txt,"~",53
// get internal name
spstr strCommand.txt,entn6.txt,"~",43
spstr strCommand.txt,entn6.txt,"~",54
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -1619,14 +1613,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",44
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",45
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",46
spstr strCommand.txt,tEntity6.txt,"~",57
vis tEntity6,1
}
}
@@ -1694,6 +1688,14 @@ Timer tmSerial
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -47,7 +47,7 @@ Page cardPower
vis t4Icon,0
vis t5Icon,0
cardPower.bco=defaultBcoColor
for(sys0=0;sys0<43;sys0++)
for(sys0=0;sys0<48;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -65,6 +65,20 @@ Page cardPower
}
}
Variable (string) nent1
Attributes
ID : 43
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 44
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
@@ -144,7 +158,7 @@ Text t0Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 33
x coordinate : 34
y coordinate : 80
Width : 60
Height : 60
@@ -176,7 +190,7 @@ Text t0u
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 97
x coordinate : 98
y coordinate : 132
Width : 108
Height : 30
@@ -206,7 +220,7 @@ Text t1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 213
x coordinate : 214
y coordinate : 70
Width : 60
Height : 230
@@ -238,7 +252,7 @@ Text t1Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 33
x coordinate : 34
y coordinate : 156
Width : 60
Height : 60
@@ -270,7 +284,7 @@ Text t1u
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 97
x coordinate : 98
y coordinate : 209
Width : 108
Height : 30
@@ -300,7 +314,7 @@ Text t2Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 33
x coordinate : 34
y coordinate : 232
Width : 60
Height : 60
@@ -332,7 +346,7 @@ Text t2u
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 97
x coordinate : 98
y coordinate : 285
Width : 108
Height : 30
@@ -362,7 +376,7 @@ Text t3Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 393
x coordinate : 394
y coordinate : 80
Width : 60
Height : 60
@@ -394,7 +408,7 @@ Text t3u
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 277
x coordinate : 278
y coordinate : 132
Width : 108
Height : 30
@@ -424,7 +438,7 @@ Text t4Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 393
x coordinate : 394
y coordinate : 156
Width : 60
Height : 60
@@ -456,7 +470,7 @@ Text t4u
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 277
x coordinate : 278
y coordinate : 209
Width : 108
Height : 30
@@ -486,7 +500,7 @@ Text t5Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 393
x coordinate : 394
y coordinate : 232
Width : 60
Height : 60
@@ -518,7 +532,7 @@ Text t5u
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 277
x coordinate : 278
y coordinate : 285
Width : 108
Height : 30
@@ -548,7 +562,7 @@ Text tHeading
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 81
x coordinate : 82
y coordinate : 26
Width : 320
Height : 30
@@ -578,10 +592,40 @@ Text tHome
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 215
x coordinate : 216
y coordinate : 214
Width : 56
Height : 81
Height : 54
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : bottom
Input Type : character
Text :
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHome2
Attributes
ID : 45
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 216
y coordinate : 271
Width : 56
Height : 28
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -595,7 +639,67 @@ Text tHome
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHomeO
Attributes
ID : 46
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 216
y coordinate : 73
Width : 56
Height : 54
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : bottom
Input Type : character
Text :
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHomeO2
Attributes
ID : 47
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 216
y coordinate : 130
Width : 56
Height : 28
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
@@ -625,7 +729,7 @@ Slider h0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 93
x coordinate : 94
y coordinate : 88
Width : 120
Height : 44
@@ -638,8 +742,8 @@ Slider h0
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h1
@@ -650,7 +754,7 @@ Slider h1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 93
x coordinate : 94
y coordinate : 165
Width : 120
Height : 44
@@ -663,8 +767,8 @@ Slider h1
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h2
@@ -675,7 +779,7 @@ Slider h2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 93
x coordinate : 94
y coordinate : 241
Width : 120
Height : 44
@@ -688,8 +792,8 @@ Slider h2
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h3
@@ -700,7 +804,7 @@ Slider h3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 273
x coordinate : 274
y coordinate : 88
Width : 120
Height : 44
@@ -713,8 +817,8 @@ Slider h3
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h4
@@ -725,7 +829,7 @@ Slider h4
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 273
x coordinate : 274
y coordinate : 165
Width : 120
Height : 44
@@ -738,8 +842,8 @@ Slider h4
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h5
@@ -750,7 +854,7 @@ Slider h5
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 273
x coordinate : 274
y coordinate : 241
Width : 120
Height : 44
@@ -763,8 +867,8 @@ Slider h5
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Button bNext
@@ -775,7 +879,7 @@ Button bNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 406
x coordinate : 407
y coordinate : 16
Width : 50
Height : 50
@@ -801,14 +905,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardPower,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -829,7 +926,7 @@ Button bPrev
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 24
x coordinate : 25
y coordinate : 16
Width : 50
Height : 50
@@ -855,14 +952,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -883,9 +973,9 @@ Hotspot mSwipeNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 472
x coordinate : 471
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -944,66 +1034,84 @@ Timer tm0
Events
Timer Event
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
if(t0Speed.val!=0)
{
h0.val=h0.minval
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
{
h0.val=h0.minval
}
if(sys0<h0.minval)
{
h0.val=h0.maxval
}
h0.val+=t0Speed.val
}
if(sys0<h0.minval)
if(t1Speed.val!=0)
{
h0.val=h0.maxval
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
{
h1.val=h1.minval
}
if(sys0<h1.minval)
{
h1.val=h1.maxval
}
h1.val+=t1Speed.val
}
h0.val+=t0Speed.val
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
if(t2Speed.val!=0)
{
h1.val=h1.minval
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
{
h2.val=h2.minval
}
if(sys0<h2.minval)
{
h2.val=h2.maxval
}
h2.val+=t2Speed.val
}
if(sys0<h1.minval)
if(t3Speed.val!=0)
{
h1.val=h1.maxval
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
}
h1.val+=t1Speed.val
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
if(t4Speed.val!=0)
{
h2.val=h2.minval
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
}
if(sys0<h2.minval)
if(t5Speed.val!=0)
{
h2.val=h2.maxval
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
}
h2.val+=t2Speed.val
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
Timer tmSerial
Attributes
@@ -1061,63 +1169,75 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// icon color home
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t1.pco,0,0
// icon home
spstr strCommand.txt,t1.txt,"~",4
spstr strCommand.txt,t1.txt,"~",15
// speed 16 ignored
// text home
spstr strCommand.txt,tHome.txt,"~",5
spstr strCommand.txt,tHome.txt,"~",17
spstr tHome.txt,tHome2.txt," ",1
spstr tHome.txt,tHome.txt," ",0
// icon color 18 ignored
// icon 19 ignored
// speed 20 ignored
// text home
spstr strCommand.txt,tHomeO.txt,"~",21
spstr tHomeO.txt,tHomeO2.txt," ",1
spstr tHomeO.txt,tHomeO.txt," ",0
// iconColor
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,t0Icon.pco,0,0
// icon
spstr strCommand.txt,t0Icon.txt,"~",7
spstr strCommand.txt,t0Icon.txt,"~",23
// speed
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,t0Speed.val,0,0
if(t0Speed.val>120)
{
t0Speed.val=120
}
if(t0Speed.val<-120)
{
t0Speed.val=-120
}
// lower text
spstr strCommand.txt,t0u.txt,"~",9
spstr strCommand.txt,t0u.txt,"~",25
if(t0Icon.txt!="")
{
vis t0Icon,1
@@ -1130,15 +1250,23 @@ Timer tmSerial
vis h0,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,t1Icon.pco,0,0
// icon
spstr strCommand.txt,t1Icon.txt,"~",11
spstr strCommand.txt,t1Icon.txt,"~",27
// speed
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,t1Speed.val,0,0
if(t1Speed.val>120)
{
t1Speed.val=120
}
if(t1Speed.val<-120)
{
t1Speed.val=-120
}
// lower text
spstr strCommand.txt,t1u.txt,"~",13
spstr strCommand.txt,t1u.txt,"~",29
if(t1Icon.txt!="")
{
vis t1Icon,1
@@ -1151,15 +1279,23 @@ Timer tmSerial
vis h1,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",30
covx tTmp.txt,t2Icon.pco,0,0
// icon
spstr strCommand.txt,t2Icon.txt,"~",15
spstr strCommand.txt,t2Icon.txt,"~",31
// speed
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,t2Speed.val,0,0
if(t2Speed.val>120)
{
t2Speed.val=120
}
if(t2Speed.val<-120)
{
t2Speed.val=-120
}
// lower text
spstr strCommand.txt,t2u.txt,"~",17
spstr strCommand.txt,t2u.txt,"~",33
if(t2Icon.txt!="")
{
vis t2Icon,1
@@ -1172,15 +1308,23 @@ Timer tmSerial
vis h2,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,t3Icon.pco,0,0
// icon
spstr strCommand.txt,t3Icon.txt,"~",19
spstr strCommand.txt,t3Icon.txt,"~",35
// speed
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",36
covx tTmp.txt,t3Speed.val,0,0
if(t3Speed.val>120)
{
t3Speed.val=120
}
if(t3Speed.val<-120)
{
t3Speed.val=-120
}
// lower text
spstr strCommand.txt,t3u.txt,"~",21
spstr strCommand.txt,t3u.txt,"~",37
if(t3Icon.txt!="")
{
vis t3Icon,1
@@ -1193,15 +1337,23 @@ Timer tmSerial
vis h3,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",22
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,t4Icon.pco,0,0
// icon
spstr strCommand.txt,t4Icon.txt,"~",23
spstr strCommand.txt,t4Icon.txt,"~",39
// speed
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",40
covx tTmp.txt,t4Speed.val,0,0
if(t4Speed.val>120)
{
t4Speed.val=120
}
if(t4Speed.val<-120)
{
t4Speed.val=-120
}
// lower text
spstr strCommand.txt,t4u.txt,"~",25
spstr strCommand.txt,t4u.txt,"~",41
if(t4Icon.txt!="")
{
vis t4Icon,1
@@ -1214,15 +1366,23 @@ Timer tmSerial
vis h4,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",42
covx tTmp.txt,t5Icon.pco,0,0
// icon
spstr strCommand.txt,t5Icon.txt,"~",27
spstr strCommand.txt,t5Icon.txt,"~",43
// speed
spstr strCommand.txt,tTmp.txt,"~",28
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,t5Speed.val,0,0
if(t5Speed.val>120)
{
t5Speed.val=120
}
if(t5Speed.val<-120)
{
t5Speed.val=-120
}
// lower text
spstr strCommand.txt,t5u.txt,"~",29
spstr strCommand.txt,t5u.txt,"~",45
if(t5Icon.txt!="")
{
vis t5Icon,1
@@ -1303,6 +1463,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -81,12 +81,26 @@ Variable (string) entn2
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 32
Scope : local
Text :
Max. Text Size: 50
Variable (string) nent2
Attributes
ID : 33
Scope : local
Text :
Max. Text Size: 50
Variable (string) strCommand
Attributes
ID : 6
Scope : local
Text :
Max. Text Size: 275
Max. Text Size: 400
Variable (string) tId
Attributes
@@ -338,14 +352,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardQR,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -392,14 +399,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -636,9 +636,9 @@ Hotspot mSwipeNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 472
x coordinate : 471
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -657,9 +657,9 @@ Hotspot mSwipePrev
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 9
Height : 310
y coordinate : 0
Width : 7
Height : 315
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -676,7 +676,7 @@ Hotspot mSwipeUp
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 27
x coordinate : 12
y coordinate : 0
Width : 426
Height : 9
@@ -745,52 +745,46 @@ Timer tmSerial
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
//tHeading
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//text qrcode
spstr strCommand.txt,vaQR.txt,"~",3
spstr strCommand.txt,vaQR.txt,"~",14
// get Type
spstr strCommand.txt,type1.txt,"~",4
spstr strCommand.txt,type1.txt,"~",15
// get internal name
spstr strCommand.txt,entn1.txt,"~",5
spstr strCommand.txt,entn1.txt,"~",16
if(type1.txt=="delete"||type1.txt=="")
{
vis btOnOff1,0
@@ -800,14 +794,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",6
spstr strCommand.txt,tIcon1.txt,"~",17
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",8
spstr strCommand.txt,tEntity1.txt,"~",19
vis tEntity1,1
}
if(type1.txt=="light")
@@ -815,7 +809,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -824,7 +818,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -836,7 +830,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
if(type1.txt=="button")
{
@@ -846,12 +840,12 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
// get Type
spstr strCommand.txt,type2.txt,"~",10
spstr strCommand.txt,type2.txt,"~",21
// get internal name
spstr strCommand.txt,entn2.txt,"~",11
spstr strCommand.txt,entn2.txt,"~",22
if(type2.txt=="delete"||type2.txt=="")
{
vis btOnOff2,0
@@ -861,14 +855,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",12
spstr strCommand.txt,tIcon2.txt,"~",23
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",14
spstr strCommand.txt,tEntity2.txt,"~",25
vis tEntity2,1
}
if(type2.txt=="light")
@@ -876,7 +870,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -885,7 +879,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -897,7 +891,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="button")
{
@@ -907,17 +901,17 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
qrcode m1.x,m1.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
qrcode m0.x,m0.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}
if(tInstruction.txt=="time")
@@ -1026,6 +1020,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -72,12 +72,26 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 56
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 55
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 250
Max. Text Size: 750
Variable (string) tId
Attributes
@@ -511,7 +525,7 @@ Text tHeading
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Font ID : 2
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
@@ -634,14 +648,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -688,14 +695,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1386,9 +1386,9 @@ Hotspot mSwipeNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 472
x coordinate : 471
y coordinate : 5
Width : 8
Width : 9
Height : 310
Effect : load
Effect Priority : 0
@@ -1557,64 +1557,58 @@ Timer tmSerial
{
//heading
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//currentTemp
spstr strCommand.txt,tCurTemp.txt,"~",4
spstr strCommand.txt,tCurTemp.txt,"~",15
//dstTemp
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,xTempDest1.val,0,0
xTempDest.val=xTempDest1.val
//status
spstr strCommand.txt,tStatus.txt,"~",6
spstr strCommand.txt,tStatus.txt,"~",17
//minTemp
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,xTempMin1.val,0,0
//maxTemp
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,xTempMax1.val,0,0
//tempStep
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,xTempStep1.val,0,0
// disable all buttons
vis bt0,0
@@ -1626,137 +1620,137 @@ Timer tmSerial
vis bt6,0
vis bt7,0
//bt0
spstr strCommand.txt,bt0.txt,"~",10
spstr strCommand.txt,bt0.txt,"~",21
if(bt0.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,bt0.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,bt0.val,0,0
// save action
spstr strCommand.txt,va0.txt,"~",13
spstr strCommand.txt,va0.txt,"~",24
//enable
vis bt0,1
}
//bt1
spstr strCommand.txt,bt1.txt,"~",14
spstr strCommand.txt,bt1.txt,"~",25
if(bt1.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,bt1.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",27
covx tTmp.txt,bt1.val,0,0
// save action
spstr strCommand.txt,va1.txt,"~",17
spstr strCommand.txt,va1.txt,"~",28
//enable
vis bt1,1
}
//bt2
spstr strCommand.txt,bt2.txt,"~",18
spstr strCommand.txt,bt2.txt,"~",29
if(bt2.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",30
covx tTmp.txt,bt2.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",31
covx tTmp.txt,bt2.val,0,0
// save action
spstr strCommand.txt,va2.txt,"~",21
spstr strCommand.txt,va2.txt,"~",32
//enable
vis bt2,1
}
//bt3
spstr strCommand.txt,bt3.txt,"~",22
spstr strCommand.txt,bt3.txt,"~",33
if(bt3.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",23
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,bt3.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,bt3.val,0,0
// save action
spstr strCommand.txt,va3.txt,"~",25
spstr strCommand.txt,va3.txt,"~",36
//enable
vis bt3,1
}
//bt4
spstr strCommand.txt,bt4.txt,"~",26
spstr strCommand.txt,bt4.txt,"~",37
if(bt4.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",27
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,bt4.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",28
spstr strCommand.txt,tTmp.txt,"~",39
covx tTmp.txt,bt4.val,0,0
// save action
spstr strCommand.txt,va4.txt,"~",29
spstr strCommand.txt,va4.txt,"~",40
//enable
vis bt4,1
}
//bt5
spstr strCommand.txt,bt5.txt,"~",30
spstr strCommand.txt,bt5.txt,"~",41
if(bt5.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",31
spstr strCommand.txt,tTmp.txt,"~",42
covx tTmp.txt,bt5.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",32
spstr strCommand.txt,tTmp.txt,"~",43
covx tTmp.txt,bt5.val,0,0
// save action
spstr strCommand.txt,va5.txt,"~",33
spstr strCommand.txt,va5.txt,"~",44
//enable
vis bt5,1
}
//bt6
spstr strCommand.txt,bt6.txt,"~",34
spstr strCommand.txt,bt6.txt,"~",45
if(bt6.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",35
spstr strCommand.txt,tTmp.txt,"~",46
covx tTmp.txt,bt6.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,bt6.val,0,0
// save action
spstr strCommand.txt,va6.txt,"~",37
spstr strCommand.txt,va6.txt,"~",48
//enable
vis bt6,1
}
//bt7
spstr strCommand.txt,bt7.txt,"~",38
spstr strCommand.txt,bt7.txt,"~",49
if(bt7.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",39
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,bt7.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",40
spstr strCommand.txt,tTmp.txt,"~",51
covx tTmp.txt,bt7.val,0,0
// save action
spstr strCommand.txt,va7.txt,"~",41
spstr strCommand.txt,va7.txt,"~",52
//enable
vis bt7,1
}
//Text tCurTempLbl
spstr strCommand.txt,tCurTempLbl.txt,"~",42
spstr strCommand.txt,tCurTempLbl.txt,"~",53
//Text tStateLbl
spstr strCommand.txt,tStateLbl.txt,"~",43
spstr strCommand.txt,tStateLbl.txt,"~",54
//Text tALbl
//spstr strCommand.txt,tALbl.txt,"~",44
//spstr strCommand.txt,tALbl.txt,"~",55
//Text tCF
spstr strCommand.txt,tCF.txt,"~",45
spstr strCommand.txt,tCF.txt,"~",56
tCF1.txt=tCF.txt
tCF2.txt=tCF.txt
//Second Temperature
spstr strCommand.txt,tTmp.txt,"~",46
spstr strCommand.txt,tTmp.txt,"~",57
if(tTmp.txt!="")
{
covx tTmp.txt,xTempDest2.val,0,0
@@ -1774,8 +1768,8 @@ Timer tmSerial
vis tCF2,1
}
//Show btDetail
spstr strCommand.txt,tTmp.txt,"~",47
if(tTmp.txt=="1")
spstr strCommand.txt,tTmp.txt,"~",58
if(tTmp.txt!="1")
{
vis btDetail,1
}else
@@ -1851,6 +1845,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -1,86 +1,90 @@
Program.s
0 Component(s)
11 Line(s) of event code
11 Unique line(s) of event code
13 Line(s) of event code
13 Unique line(s) of event code
pageIcons
7 Component(s)
0 Line(s) of event code
0 Unique line(s) of event code
pageTest
15 Component(s)
15 Line(s) of event code
15 Unique line(s) of event code
cardChart
31 Component(s)
452 Line(s) of event code
296 Unique line(s) of event code
pageStartup
19 Component(s)
181 Line(s) of event code
129 Unique line(s) of event code
popupNotify
19 Component(s)
257 Line(s) of event code
166 Unique line(s) of event code
popupTimer
42 Component(s)
512 Line(s) of event code
255 Unique line(s) of event code
popupLight
28 Component(s)
408 Line(s) of event code
225 Unique line(s) of event code
popupShutter
25 Component(s)
398 Line(s) of event code
218 Unique line(s) of event code
popupFan
27 Component(s)
351 Line(s) of event code
204 Unique line(s) of event code
cardChart
33 Component(s)
429 Line(s) of event code
292 Unique line(s) of event code
popupInSel
34 Component(s)
617 Line(s) of event code
295 Unique line(s) of event code
cardQR
32 Component(s)
425 Line(s) of event code
244 Unique line(s) of event code
cardGrid
42 Component(s)
538 Line(s) of event code
300 Unique line(s) of event code
screensaver
45 Component(s)
410 Line(s) of event code
298 Unique line(s) of event code
cardAlarm
40 Component(s)
442 Line(s) of event code
262 Unique line(s) of event code
cardPower
43 Component(s)
439 Line(s) of event code
299 Unique line(s) of event code
pageTest
26 Component(s)
68 Line(s) of event code
66 Unique line(s) of event code
popupFan
27 Component(s)
351 Line(s) of event code
204 Unique line(s) of event code
popupThermo
44 Component(s)
519 Line(s) of event code
274 Unique line(s) of event code
cardMedia
57 Component(s)
660 Line(s) of event code
325 Unique line(s) of event code
cardEntities
65 Component(s)
1185 Line(s) of event code
537 Unique line(s) of event code
cardQR
34 Component(s)
402 Line(s) of event code
234 Unique line(s) of event code
cardLChart
33 Component(s)
394 Line(s) of event code
262 Unique line(s) of event code
pageStartup
20 Component(s)
185 Line(s) of event code
131 Unique line(s) of event code
cardGrid
44 Component(s)
515 Line(s) of event code
291 Unique line(s) of event code
popupLight
28 Component(s)
408 Line(s) of event code
225 Unique line(s) of event code
popupTimer
42 Component(s)
512 Line(s) of event code
255 Unique line(s) of event code
cardThermo
55 Component(s)
555 Line(s) of event code
322 Unique line(s) of event code
57 Component(s)
532 Line(s) of event code
315 Unique line(s) of event code
cardMedia
59 Component(s)
641 Line(s) of event code
318 Unique line(s) of event code
cardEntities
67 Component(s)
1162 Line(s) of event code
528 Unique line(s) of event code
cardAlarm
43 Component(s)
492 Line(s) of event code
269 Unique line(s) of event code
cardPower
48 Component(s)
487 Line(s) of event code
326 Unique line(s) of event code
screensaver
46 Component(s)
418 Line(s) of event code
299 Unique line(s) of event code
Total
19 Page(s)
670 Component(s)
8375 Line(s) of event code
2116 Unique line(s) of event code
20 Page(s)
736 Component(s)
8800 Line(s) of event code
2256 Unique line(s) of event code

View File

@@ -101,7 +101,7 @@ Text tTmp3
Send Component ID : disabled
Opacity : 127
x coordinate : 302
y coordinate : 152
y coordinate : 154
Width : 146
Height : 69
Effect : load

View File

@@ -48,6 +48,13 @@ Variable (string) strCommand
Text :
Max. Text Size: 50
Variable (string) strTmp
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 2
Number frame_ptr
Attributes
ID : 10
@@ -373,7 +380,7 @@ Text tTmp
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
@@ -402,7 +409,7 @@ Text tVersion
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text : 46
Text : 49
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
@@ -659,6 +666,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -21,7 +21,97 @@ Page pageTest
Events
Preinitialize Event
vis p0,0
recmod=1
baud=115200
Variable (string) strCommand
Attributes
ID : 17
Scope : local
Text :
Max. Text Size: 20
Variable (string) strTmp
Attributes
ID : 25
Scope : local
Text :
Max. Text Size: 2
Variable (string) tInstruction
Attributes
ID : 16
Scope : local
Text :
Max. Text Size: 30
Variable (string) tSend
Attributes
ID : 18
Scope : local
Text :
Max. Text Size: 40
Text tBench
Attributes
ID : 15
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 288
y coordinate : 90
Width : 152
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 : 24
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 49
y coordinate : 48
Width : 257
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 : test123test123
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0
Attributes
ID : 1
@@ -47,8 +137,8 @@ Button b0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 5
y coordinate : 12
x coordinate : 0
y coordinate : 0
Width : 100
Height : 50
Effect : load
@@ -119,8 +209,8 @@ Button b10
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 115
y coordinate : 128
x coordinate : 100
y coordinate : 98
Width : 100
Height : 50
Effect : load
@@ -155,8 +245,8 @@ Button b11
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 117
y coordinate : 184
x coordinate : 100
y coordinate : 145
Width : 100
Height : 50
Effect : load
@@ -185,14 +275,14 @@ Button b11
Button b12
Attributes
ID : 14
ID : 19
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 115
y coordinate : 244
x coordinate : 0
y coordinate : 242
Width : 100
Height : 50
Effect : load
@@ -209,6 +299,146 @@ Button b12
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : power
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
page cardPower
Button b13
Attributes
ID : 20
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 406
y coordinate : 133
Width : 43
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 : showqq
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
showqq
Button b14
Attributes
ID : 21
Scope : local
Dragging : 0
Disable release event after 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
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 236
y coordinate : 263
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 : cardLchart
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Press Event
page cardLChart
Button b16
Attributes
ID : 23
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 135
y coordinate : 263
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 : chart
Max. Text Size : 10
Word wrap : disabled
@@ -228,7 +458,7 @@ Button b2
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 244
y coordinate : 195
Width : 100
Height : 50
Effect : load
@@ -299,8 +529,8 @@ Button b4
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 7
y coordinate : 120
x coordinate : 0
y coordinate : 96
Width : 100
Height : 50
Effect : load
@@ -335,8 +565,8 @@ Button b5
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 111
y coordinate : 12
x coordinate : 100
y coordinate : 0
Width : 100
Height : 50
Effect : load
@@ -371,8 +601,8 @@ Button b6
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 5
y coordinate : 64
x coordinate : 0
y coordinate : 49
Width : 100
Height : 50
Effect : load
@@ -407,8 +637,8 @@ Button b7
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 113
y coordinate : 72
x coordinate : 100
y coordinate : 49
Width : 100
Height : 50
Effect : load
@@ -480,8 +710,8 @@ Button b9
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 6
y coordinate : 175
x coordinate : 0
y coordinate : 146
Width : 100
Height : 50
Effect : load
@@ -508,3 +738,83 @@ Button b9
Touch Press Event
page popupNotify
Timer tmSerial
Attributes
ID : 14
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
// data available
if(usize>1)
{
bufferPos=0
while(bufferPos<usize)
{
// check for 0x55 0xBB - Command Init Secuence
if(u[bufferPos]==187&&u[bufferPos-1]==85)
{
//remove garbage at the start of the buffer if there's any to free buffer for command
if(u[bufferPos]!=1)
{
udelete bufferPos-1
}
//instruction is now aligned with buffer, because we deleted garbage before instrcution
//get length after init sequence (check if there are more than to bytes in buffer)
if(3<usize)
{
// check if serial buffer has reached the announced length
ucopy payloadLength,2,2,0
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
payloadLength+=3
// payload length does also not contain crc, so we are adding another 2 bytes for crc
payloadLength+=2
if(payloadLength<usize)
{
// calculate crc
crcrest 1,0xFFFF
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
//crcputu 3,u[2]
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
crcputu 0,payloadLength-1
// get recived crc to be able to compare it
ucopy recvCrc,payloadLength-1,2,0
// compare crc with recived value
if(crcval==recvCrc)
{
// crc is okay
// here is the location where acual code should be
// write command to variable strCommand
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="ping")
{
spstr strCommand.txt,tBench.txt,"~",1
tSend.txt="pong,"+tBench.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}

View File

@@ -681,8 +681,8 @@ Button bEffect
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 415
y coordinate : 79
x coordinate : 411
y coordinate : 95
Width : 50
Height : 50
Effect : load
@@ -721,7 +721,7 @@ Dual-state Button btOnOff1
Send Component ID : disabled
Opacity : 127
x coordinate : 356
y coordinate : 79
y coordinate : 95
Width : 50
Height : 50
Effect : load

View File

@@ -90,7 +90,7 @@ Text tHeading
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Font ID : 2
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : left
@@ -364,7 +364,7 @@ Button b1
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Font ID : 2
Back. Color : 6371
Back. Picture ID (Pressed) : 8
Back. Color (Pressed) : 1024
@@ -413,7 +413,7 @@ Button b2
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 1
Font ID : 2
Back. Color : 6371
Back. Picture ID (Pressed) : 8
Back. Color (Pressed) : 1024

View File

@@ -134,7 +134,7 @@ Text tEntity
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 81
x coordinate : 75
y coordinate : 48
Width : 195
Height : 30
@@ -164,7 +164,7 @@ Text tIcon1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
x coordinate : 22
y coordinate : 63
Width : 45
Height : 30
@@ -194,7 +194,7 @@ Text tInfo1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 81
x coordinate : 75
y coordinate : 76
Width : 195
Height : 30
@@ -224,7 +224,7 @@ Text tPosHeading
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 80
x coordinate : 74
y coordinate : 122
Width : 188
Height : 30
@@ -254,7 +254,7 @@ Text tTiltHeading
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 80
x coordinate : 74
y coordinate : 231
Width : 191
Height : 30
@@ -301,7 +301,7 @@ Slider hPosition
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 80
x coordinate : 74
y coordinate : 152
Width : 335
Height : 43
@@ -345,7 +345,7 @@ Slider hTilt
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 80
x coordinate : 74
y coordinate : 261
Width : 335
Height : 43
@@ -389,7 +389,7 @@ Button b0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 413
x coordinate : 407
y coordinate : 8
Width : 50
Height : 50
@@ -436,7 +436,7 @@ Button bDown1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 402
x coordinate : 396
y coordinate : 95
Width : 50
Height : 50
@@ -483,7 +483,7 @@ Button bStop1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 350
x coordinate : 344
y coordinate : 95
Width : 50
Height : 50
@@ -530,7 +530,7 @@ Button bTLeft
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 298
x coordinate : 292
y coordinate : 205
Width : 50
Height : 50
@@ -577,7 +577,7 @@ Button bTRight
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 402
x coordinate : 396
y coordinate : 205
Width : 50
Height : 50
@@ -624,7 +624,7 @@ Button bTStop
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 350
x coordinate : 344
y coordinate : 205
Width : 50
Height : 50
@@ -671,7 +671,7 @@ Button bUp1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 298
x coordinate : 292
y coordinate : 95
Width : 50
Height : 50

View File

@@ -207,7 +207,7 @@ Text heading1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
x coordinate : 26
y coordinate : 69
Width : 262
Height : 30
@@ -237,7 +237,7 @@ Text heading2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
x coordinate : 26
y coordinate : 155
Width : 262
Height : 30
@@ -267,7 +267,7 @@ Text heading3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
x coordinate : 26
y coordinate : 236
Width : 262
Height : 30
@@ -297,7 +297,7 @@ Text tEntity
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 109
x coordinate : 107
y coordinate : 21
Width : 263
Height : 30
@@ -327,7 +327,7 @@ Text tIcon1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
x coordinate : 26
y coordinate : 21
Width : 45
Height : 30
@@ -374,7 +374,7 @@ Button b0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 414
x coordinate : 412
y coordinate : 8
Width : 50
Height : 50
@@ -421,7 +421,7 @@ Button bMode1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
x coordinate : 26
y coordinate : 101
Width : 120
Height : 35
@@ -473,7 +473,7 @@ Button bMode2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 152
x coordinate : 150
y coordinate : 101
Width : 120
Height : 35
@@ -525,7 +525,7 @@ Button bMode3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 276
x coordinate : 274
y coordinate : 101
Width : 120
Height : 35
@@ -577,7 +577,7 @@ Button bModeNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 405
x coordinate : 403
y coordinate : 76
Width : 50
Height : 50
@@ -648,7 +648,7 @@ Button cMode1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
x coordinate : 26
y coordinate : 187
Width : 120
Height : 35
@@ -700,7 +700,7 @@ Button cMode2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 152
x coordinate : 150
y coordinate : 187
Width : 120
Height : 35
@@ -752,7 +752,7 @@ Button cMode3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 276
x coordinate : 274
y coordinate : 187
Width : 120
Height : 35
@@ -804,7 +804,7 @@ Button cModeNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 405
x coordinate : 403
y coordinate : 162
Width : 50
Height : 50
@@ -874,7 +874,7 @@ Button dMode1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 28
x coordinate : 26
y coordinate : 268
Width : 120
Height : 35
@@ -926,7 +926,7 @@ Button dMode2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 152
x coordinate : 150
y coordinate : 268
Width : 120
Height : 35
@@ -978,7 +978,7 @@ Button dMode3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 276
x coordinate : 274
y coordinate : 268
Width : 120
Height : 35
@@ -1030,7 +1030,7 @@ Button dModeNext
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 405
x coordinate : 403
y coordinate : 243
Width : 50
Height : 50

View File

@@ -46,7 +46,14 @@ Variable (string) strCommand
ID : 4
Scope : local
Text :
Max. Text Size: 200
Max. Text Size: 400
Variable (string) strTmp
Attributes
ID : 41
Scope : local
Text :
Max. Text Size: 2
Variable (string) tId
Attributes
@@ -57,21 +64,21 @@ Variable (string) tId
Variable (string) tInstruction
Attributes
ID : 30
ID : 28
Scope : local
Text :
Max. Text Size: 50
Variable (string) tSend
Attributes
ID : 34
ID : 30
Scope : local
Text :
Max. Text Size: 50
Variable (string) tTmp
Attributes
ID : 31
ID : 29
Scope : local
Text :
Max. Text Size: 50
@@ -84,37 +91,37 @@ Variable (int32) vaTap
Variable (int32) xc1
Attributes
ID : 39
ID : 35
Scope: local
Value: 0
Variable (int32) xc2
Attributes
ID : 41
ID : 37
Scope: local
Value: 0
Variable (int32) xcR
Attributes
ID : 44
ID : 40
Scope: local
Value: 0
Variable (int32) yc1
Attributes
ID : 40
ID : 36
Scope: local
Value: 0
Variable (int32) yc2
Attributes
ID : 42
ID : 38
Scope: local
Value: 0
Variable (int32) ycR
Attributes
ID : 43
ID : 39
Scope: local
Value: 0
@@ -126,8 +133,8 @@ Text t10
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 62
y coordinate : 199
x coordinate : 61
y coordinate : 201
Width : 360
Height : 2
Effect : load
@@ -156,7 +163,7 @@ Text tAMPM
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 359
x coordinate : 358
y coordinate : 56
Width : 104
Height : 57
@@ -186,8 +193,8 @@ Text tDate
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 16
y coordinate : 162
x coordinate : 15
y coordinate : 165
Width : 450
Height : 32
Effect : load
@@ -216,8 +223,8 @@ Text tF1Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 162
y coordinate : 243
x coordinate : 161
y coordinate : 245
Width : 40
Height : 35
Effect : load
@@ -246,8 +253,8 @@ Text tF2Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 244
y coordinate : 243
x coordinate : 243
y coordinate : 245
Width : 40
Height : 35
Effect : load
@@ -276,8 +283,8 @@ Text tF3Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 325
y coordinate : 243
x coordinate : 324
y coordinate : 245
Width : 40
Height : 35
Effect : load
@@ -306,8 +313,8 @@ Text tF4Icon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 406
y coordinate : 243
x coordinate : 405
y coordinate : 245
Width : 40
Height : 35
Effect : load
@@ -336,8 +343,8 @@ Text tForecast1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 144
y coordinate : 214
x coordinate : 143
y coordinate : 216
Width : 72
Height : 26
Effect : load
@@ -366,8 +373,8 @@ Text tForecast1Val
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 141
y coordinate : 280
x coordinate : 140
y coordinate : 282
Width : 71
Height : 25
Effect : load
@@ -396,8 +403,8 @@ Text tForecast2
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 228
y coordinate : 214
x coordinate : 227
y coordinate : 216
Width : 72
Height : 25
Effect : load
@@ -426,8 +433,8 @@ Text tForecast2Val
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 228
y coordinate : 281
x coordinate : 227
y coordinate : 283
Width : 72
Height : 25
Effect : load
@@ -456,8 +463,8 @@ Text tForecast3
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 309
y coordinate : 214
x coordinate : 308
y coordinate : 216
Width : 72
Height : 25
Effect : load
@@ -486,8 +493,8 @@ Text tForecast3Val
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 308
y coordinate : 281
x coordinate : 307
y coordinate : 283
Width : 71
Height : 25
Effect : load
@@ -516,8 +523,8 @@ Text tForecast4
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 390
y coordinate : 214
x coordinate : 389
y coordinate : 216
Width : 72
Height : 25
Effect : load
@@ -546,8 +553,8 @@ Text tForecast4Val
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 390
y coordinate : 281
x coordinate : 389
y coordinate : 283
Width : 72
Height : 25
Effect : load
@@ -570,13 +577,13 @@ Text tForecast4Val
Text tIcon1
Attributes
ID : 35
ID : 31
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
x coordinate : 15
y coordinate : 0
Width : 85
Height : 45
@@ -590,7 +597,7 @@ Text tIcon1
Back. Color : 0
Font Color : 17299
Horizontal Alignment : left
Vertical Alignment : center
Vertical Alignment : top
Input Type : character
Text :
Max. Text Size : 10
@@ -600,13 +607,13 @@ Text tIcon1
Text tIcon2
Attributes
ID : 36
ID : 32
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 393
x coordinate : 380
y coordinate : 0
Width : 85
Height : 45
@@ -620,67 +627,7 @@ Text tIcon2
Back. Color : 0
Font Color : 17299
Horizontal Alignment : right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMR
Attributes
ID : 29
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 160
y coordinate : 274
Width : 62
Height : 21
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 65535
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMRIcon
Attributes
ID : 28
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 117
y coordinate : 270
Width : 40
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 0
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Vertical Alignment : top
Input Type : character
Text :
Max. Text Size : 10
@@ -696,8 +643,8 @@ Text tMainIcon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 42
y coordinate : 206
x coordinate : 41
y coordinate : 208
Width : 70
Height : 66
Effect : load
@@ -726,20 +673,50 @@ Text tMainIconAlt
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 16
y coordinate : 225
Width : 100
Height : 66
x coordinate : 26
y coordinate : 216
Width : 54
Height : 45
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 4
Font ID : 3
Back. Color : 0
Font Color : 65535
Horizontal Alignment : center
Horizontal Alignment : right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMainIconAlt2
Attributes
ID : 44
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 26
y coordinate : 265
Width : 54
Height : 45
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 3
Back. Color : 0
Font Color : 65535
Horizontal Alignment : right
Vertical Alignment : center
Input Type : character
Text :
@@ -756,8 +733,8 @@ Text tMainText
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 23
y coordinate : 271
x coordinate : 22
y coordinate : 273
Width : 110
Height : 43
Effect : load
@@ -786,10 +763,10 @@ Text tMainTextAlt
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 120
y coordinate : 214
Width : 106
Height : 42
x coordinate : 84
y coordinate : 215
Width : 135
Height : 45
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -799,7 +776,37 @@ Text tMainTextAlt
Font ID : 3
Back. Color : 0
Font Color : 65535
Horizontal Alignment : left
Horizontal Alignment : right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMainTextAlt2
Attributes
ID : 42
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 84
y coordinate : 265
Width : 135
Height : 45
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 3
Back. Color : 0
Font Color : 65535
Horizontal Alignment : right
Vertical Alignment : center
Input Type : character
Text :
@@ -810,14 +817,14 @@ Text tMainTextAlt
Text tNotifyHead
Attributes
ID : 32
ID : 43
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 16
y coordinate : 205
x coordinate : 15
y coordinate : 207
Width : 450
Height : 58
Effect : load
@@ -840,14 +847,14 @@ Text tNotifyHead
Text tNotifyText
Attributes
ID : 33
ID : 45
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 16
y coordinate : 262
x coordinate : 15
y coordinate : 264
Width : 450
Height : 47
Effect : load
@@ -863,7 +870,7 @@ Text tNotifyText
Vertical Alignment : top
Input Type : character
Text :
Max. Text Size : 80
Max. Text Size : 120
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
@@ -876,7 +883,7 @@ Text tTime
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 53
x coordinate : 52
y coordinate : 25
Width : 376
Height : 112
@@ -900,14 +907,14 @@ Text tTime
Text tTimeAdd
Attributes
ID : 37
ID : 33
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 16
y coordinate : 130
x coordinate : 15
y coordinate : 134
Width : 450
Height : 32
Effect : load
@@ -947,7 +954,7 @@ Picture p0
Timer tm0
Attributes
ID : 38
ID : 34
Scope : local
Period (ms): 50
Enabled : yes
@@ -1014,7 +1021,6 @@ Timer tmSerial
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="wake")
{
//dim=100
click tc0,1
}
if(tInstruction.txt=="dimmode")
@@ -1041,6 +1047,7 @@ Timer tmSerial
}
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
@@ -1059,62 +1066,92 @@ Timer tmSerial
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
tDate.txt=pageIcons.vaDate.txt
}
if(tInstruction.txt=="timeout")
if(tInstruction.txt=="statusUpdate")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
//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=="")
{
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMRIcon,0
vis tMR,0
//tMainIcon
spstr strCommand.txt,tMainIcon.txt,"~",1
spstr strCommand.txt,tMainIcon.txt,"~",3
tMainIconAlt.txt=tMainIcon.txt
//tMainIcon Color
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
//tMainText
spstr strCommand.txt,tMainText.txt,"~",2
spstr strCommand.txt,tMainText.txt,"~",6
tMainTextAlt.txt=tMainText.txt
//tForecast1
spstr strCommand.txt,tForecast1.txt,"~",3
spstr strCommand.txt,tForecast1.txt,"~",11
//tF1Icon
spstr strCommand.txt,tF1Icon.txt,"~",4
spstr strCommand.txt,tF1Icon.txt,"~",9
//tF1Icon Color
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tF1Icon.pco,0,0
//tForecast1Val
spstr strCommand.txt,tForecast1Val.txt,"~",5
spstr strCommand.txt,tForecast1Val.txt,"~",12
//tForecast2
spstr strCommand.txt,tForecast2.txt,"~",6
spstr strCommand.txt,tForecast2.txt,"~",17
//tF2Icon
spstr strCommand.txt,tF2Icon.txt,"~",7
spstr strCommand.txt,tF2Icon.txt,"~",15
//tF2Icon Color
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,tF2Icon.pco,0,0
//tForecast2Val
spstr strCommand.txt,tForecast2Val.txt,"~",8
spstr strCommand.txt,tForecast2Val.txt,"~",18
//tForecast3
spstr strCommand.txt,tForecast3.txt,"~",9
spstr strCommand.txt,tForecast3.txt,"~",23
//tF3Icon
spstr strCommand.txt,tF3Icon.txt,"~",10
spstr strCommand.txt,tF3Icon.txt,"~",21
//tF3Icon Color
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tF3Icon.pco,0,0
//tForecast3Val
spstr strCommand.txt,tForecast3Val.txt,"~",11
spstr strCommand.txt,tForecast3Val.txt,"~",24
//tForecast4
spstr strCommand.txt,tForecast4.txt,"~",12
spstr strCommand.txt,tForecast4.txt,"~",29
//tF4Icon
spstr strCommand.txt,tF4Icon.txt,"~",13
spstr strCommand.txt,tF4Icon.txt,"~",27
//tF4Icon Color
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,tF4Icon.pco,0,0
//tForecast4Val
spstr strCommand.txt,tForecast4Val.txt,"~",14
spstr strCommand.txt,tForecast4Val.txt,"~",30
//alternative layout
//tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!=""&&p0.w!=320)
//tMainTextAlt2
spstr strCommand.txt,tMainTextAlt2.txt,"~",36
//tMainIconAlt2
spstr strCommand.txt,tMainIconAlt2.txt,"~",33
//tMainIconAlt2 Color
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,tMainIconAlt2.pco,0,0
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
//value for tMRIcon, activate alternative layout
vis tMainIcon,0
vis tMainText,0
vis tMainTextAlt,1
vis tMainIconAlt,1
vis tMRIcon,1
vis tMR,1
vis tMainTextAlt2,1
vis tMainIconAlt2,1
vis tForecast1,0
vis tF1Icon,0
vis tForecast1Val,0
@@ -1128,26 +1165,17 @@ Timer tmSerial
tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt
}
//tMR
spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt!="")
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
}else
{
tIcon1.font=3
}
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt!="")
{
tIcon2.font=3
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMainTextAlt2,0
vis tMainIconAlt2,0
}
}
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
@@ -1163,9 +1191,8 @@ Timer tmSerial
tMainText.bco=tTime.bco
tMainIconAlt.bco=tTime.bco
tMainTextAlt.bco=tTime.bco
tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco
tMainTextAlt2.bco=tTime.bco
tMainIconAlt2.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco
@@ -1189,48 +1216,34 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",8
covx tTmp.txt,tForecast3.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",9
covx tTmp.txt,tForecast4.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,tF1Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",12
covx tTmp.txt,tF2Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",13
covx tTmp.txt,tF3Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,tF4Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tForecast1Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,tForecast2Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",12
covx tTmp.txt,tForecast3Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",13
covx tTmp.txt,tForecast4Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
spstr strCommand.txt,tTmp.txt,"~",15
covx tTmp.txt,tMainTextAlt2.pco,0,0
//spstr strCommand.txt,tTmp.txt,"~",16
//covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,tTimeAdd.pco,0,0
if(tMRIcon.txt!=""&&p0.w!=320)
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
tForecast4Val.pco=tForecast3Val.pco
tForecast3Val.pco=tForecast2Val.pco
tForecast2Val.pco=tForecast1Val.pco
@@ -1333,6 +1346,16 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
// end of user code
udelete payloadLength-1

View File

@@ -14,3 +14,6 @@ Program.s
//color vars
int defaultFontColor=65535
int defaultBcoColor=6371
// fix touch offset
lcd_dev fffb 0002 0000 0020
page pageStartup

View File

@@ -38,7 +38,7 @@ Page cardAlarm
vis bPrev,0
vis bNext,0
cardAlarm.bco=defaultBcoColor
for(sys0=0;sys0<40;sys0++)
for(sys0=0;sys0<44;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -63,11 +63,23 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 200
Max. Text Size: 400
Variable (string) tSend
Attributes
@@ -115,6 +127,16 @@ Text tCode
Text :
Max. Text Size : 10
Text tHeading
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 40
Text tIcon
Attributes
Scope : local
@@ -295,6 +317,11 @@ Button b0
Events
Touch Press Event
tCode.txt=tCode.txt+"1"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b1
Attributes
@@ -309,6 +336,11 @@ Button b1
Events
Touch Press Event
tCode.txt=tCode.txt+"2"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b10
Attributes
@@ -323,6 +355,11 @@ Button b10
Events
Touch Press Event
tCode.txt=tCode.txt+"0"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b11
Attributes
@@ -337,6 +374,11 @@ Button b11
Events
Touch Press Event
tCode.txt=""
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b2
Attributes
@@ -351,6 +393,11 @@ Button b2
Events
Touch Press Event
tCode.txt=tCode.txt+"3"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b3
Attributes
@@ -365,6 +412,11 @@ Button b3
Events
Touch Press Event
tCode.txt=tCode.txt+"4"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b4
Attributes
@@ -379,6 +431,11 @@ Button b4
Events
Touch Press Event
tCode.txt=tCode.txt+"5"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b5
Attributes
@@ -393,6 +450,11 @@ Button b5
Events
Touch Press Event
tCode.txt=tCode.txt+"6"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b6
Attributes
@@ -407,6 +469,11 @@ Button b6
Events
Touch Press Event
tCode.txt=tCode.txt+"7"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b7
Attributes
@@ -421,6 +488,11 @@ Button b7
Events
Touch Press Event
tCode.txt=tCode.txt+"8"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b8
Attributes
@@ -435,6 +507,11 @@ Button b8
Events
Touch Press Event
tCode.txt=tCode.txt+"9"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b9
Attributes
@@ -482,14 +559,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -514,14 +584,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -639,87 +702,94 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
//entn
spstr strCommand.txt,entn.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
spstr strCommand.txt,tHeading.txt,"~",1
if(tHeading.txt=="unknown")
{
tHeading.txt=""
}
if(tHeading.txt!="")
{
vis tHeading,1
}else
{
vis tHeading,0
}
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entn
spstr strCommand.txt,entn.txt,"~",14
//text arm1
spstr strCommand.txt,arm1.txt,"~",3
spstr strCommand.txt,arm1.txt,"~",15
if(arm1.txt!="")
{
vis arm1,1
}
//id arm1
spstr strCommand.txt,va1.txt,"~",4
spstr strCommand.txt,va1.txt,"~",16
//text arm2
spstr strCommand.txt,arm2.txt,"~",5
spstr strCommand.txt,arm2.txt,"~",17
if(arm2.txt!="")
{
vis arm2,1
}
//id arm2
spstr strCommand.txt,va2.txt,"~",6
spstr strCommand.txt,va2.txt,"~",18
//text arm3
spstr strCommand.txt,arm3.txt,"~",7
spstr strCommand.txt,arm3.txt,"~",19
if(arm3.txt!="")
{
vis arm3,1
}
//id arm3
spstr strCommand.txt,va3.txt,"~",8
spstr strCommand.txt,va3.txt,"~",20
//text arm4
spstr strCommand.txt,arm4.txt,"~",9
spstr strCommand.txt,arm4.txt,"~",21
if(arm4.txt!="")
{
vis arm4,1
}
//id arm4
spstr strCommand.txt,va4.txt,"~",10
spstr strCommand.txt,va4.txt,"~",22
//icon
spstr strCommand.txt,tIcon.txt,"~",11
spstr strCommand.txt,tIcon.txt,"~",23
//icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon.pco=sys0
//numpad status
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",25
if(tTmp.txt!="disable")
{
vis b0,1
@@ -734,7 +804,13 @@ Timer tmSerial
vis b9,1
vis b10,1
vis b11,1
vis tCode,1
if(tHeading.txt!="")
{
vis tCode,0
}else
{
vis tCode,1
}
}else
{
vis b0,0
@@ -752,7 +828,7 @@ Timer tmSerial
vis tCode,0
}
//flashing status
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",26
if(tTmp.txt=="enable")
{
tmFlash.en=1
@@ -761,13 +837,13 @@ Timer tmSerial
tmFlash.en=0
}
// extra button
spstr strCommand.txt,b9.txt,"~",15
spstr strCommand.txt,b9.txt,"~",27
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
spstr strCommand.txt,vaAddBtn.txt,"~",29
}
}
if(tInstruction.txt=="time")
@@ -876,6 +952,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -49,6 +49,18 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
@@ -179,14 +191,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -211,14 +216,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -399,48 +397,42 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// extract color
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
@@ -452,7 +444,7 @@ Timer tmSerial
//
// detect nValues and maxValue
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
while(sya0>0)
{
@@ -463,7 +455,7 @@ Timer tmSerial
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
}
//
@@ -478,7 +470,7 @@ Timer tmSerial
//
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
spstr strCommand.txt,strTmp.txt,"~",5
spstr strCommand.txt,strTmp.txt,"~",16
sya1=0
spstr strTmp.txt,tTmp.txt,":",sya1
strlen tTmp.txt,sya0
@@ -511,7 +503,7 @@ Timer tmSerial
}
//
// y achis label
spstr strCommand.txt,tTmp.txt,"~",4
spstr strCommand.txt,tTmp.txt,"~",15
// tTmp.txt="Gas [kW]"
strlen tTmp.txt,sys1
sya1=sys1*12+m0.h-48/2
@@ -527,7 +519,7 @@ Timer tmSerial
vaValues.txt+="~"
}
// extract next entry
spstr strCommand.txt,tTmp.txt,"~",sys0+6
spstr strCommand.txt,tTmp.txt,"~",sys0+17
// calculate left
sys1=sys0*5*vaUnit.val
sys1+=vaLeft.val
@@ -693,6 +685,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -66,7 +66,7 @@ Page cardEntities
vis bPrev,0
vis bNext,0
cardEntities.bco=defaultBcoColor
for(sys0=0;sys0<65;sys0++)
for(sys0=0;sys0<67;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==54)
{
@@ -110,6 +110,18 @@ Variable (string) entn4
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
@@ -533,14 +545,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -565,14 +570,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1238,50 +1236,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,displayName,optionalValue]x4
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis bUp1,0
@@ -1296,14 +1288,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",5
spstr strCommand.txt,tIcon1.txt,"~",16
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
if(type1.txt=="shutter")
@@ -1316,7 +1308,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8
spstr strCommand.txt,tId.txt,"~",19
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -1367,7 +1359,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -1384,7 +1376,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="button"||type1.txt=="input_sel")
{
@@ -1399,7 +1391,7 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="number")
{
@@ -1412,7 +1404,7 @@ Timer tmSerial
vis hSlider1,1
vis nNum1,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
//first value is current value
spstr bText1.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -1428,9 +1420,9 @@ Timer tmSerial
hSlider1.maxval=sys0
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis bUp2,0
@@ -1445,14 +1437,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",11
spstr strCommand.txt,tIcon2.txt,"~",22
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
if(type2.txt=="shutter")
@@ -1465,7 +1457,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14
spstr strCommand.txt,tId.txt,"~",25
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -1516,7 +1508,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",25
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -1533,7 +1525,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="button"||type2.txt=="input_sel")
{
@@ -1548,7 +1540,7 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="number")
{
@@ -1561,7 +1553,7 @@ Timer tmSerial
vis hSlider2,1
vis nNum2,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
//first value is current value
spstr bText2.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -1577,9 +1569,9 @@ Timer tmSerial
hSlider2.maxval=sys0
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis bUp3,0
@@ -1594,14 +1586,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon3.txt,"~",17
spstr strCommand.txt,tIcon3.txt,"~",28
vis tIcon3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
tIcon3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
if(type3.txt=="shutter")
@@ -1614,7 +1606,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20
spstr strCommand.txt,tId.txt,"~",31
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -1665,7 +1657,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",31
covx tTmp.txt,sys0,0,0
btOnOff3.val=sys0
}
@@ -1682,7 +1674,7 @@ Timer tmSerial
bText3.pco=65535
bText3.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="button"||type3.txt=="input_sel")
{
@@ -1697,7 +1689,7 @@ Timer tmSerial
bText3.pco=1374
bText3.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="number")
{
@@ -1710,7 +1702,7 @@ Timer tmSerial
vis hSlider3,1
vis nNum3,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
//first value is current value
spstr bText3.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -1726,9 +1718,9 @@ Timer tmSerial
hSlider3.maxval=sys0
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis bUp4,0
@@ -1743,14 +1735,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon4.txt,"~",23
spstr strCommand.txt,tIcon4.txt,"~",34
vis tIcon4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
tIcon4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
if(type4.txt=="shutter")
@@ -1763,7 +1755,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26
spstr strCommand.txt,tId.txt,"~",37
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -1814,7 +1806,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",37
covx tTmp.txt,sys0,0,0
btOnOff4.val=sys0
}
@@ -1831,7 +1823,7 @@ Timer tmSerial
bText4.pco=65535
bText4.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="button"||type4.txt=="input_sel")
{
@@ -1846,7 +1838,7 @@ Timer tmSerial
bText4.pco=1374
bText4.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="number")
{
@@ -1859,7 +1851,7 @@ Timer tmSerial
vis hSlider4,1
vis nNum4,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
//first value is current value
spstr bText4.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -1943,6 +1935,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -82,11 +82,23 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 500
Max. Text Size: 700
Variable (string) tSend
Attributes
@@ -519,14 +531,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -551,14 +556,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -693,50 +691,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -744,20 +736,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",5
spstr strCommand.txt,bEntity1.txt,"~",16
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -765,20 +757,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",11
spstr strCommand.txt,bEntity2.txt,"~",22
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -786,20 +778,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",17
spstr strCommand.txt,bEntity3.txt,"~",28
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -807,20 +799,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",23
spstr strCommand.txt,bEntity4.txt,"~",34
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",27
spstr strCommand.txt,type5.txt,"~",38
// get internal name
spstr strCommand.txt,entn5.txt,"~",28
spstr strCommand.txt,entn5.txt,"~",39
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -828,20 +820,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",29
spstr strCommand.txt,bEntity5.txt,"~",40
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",30
spstr strCommand.txt,tTmp.txt,"~",41
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",31
spstr strCommand.txt,tEntity5.txt,"~",42
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",33
spstr strCommand.txt,type6.txt,"~",44
// get internal name
spstr strCommand.txt,entn6.txt,"~",34
spstr strCommand.txt,entn6.txt,"~",45
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -849,14 +841,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",35
spstr strCommand.txt,bEntity6.txt,"~",46
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",37
spstr strCommand.txt,tEntity6.txt,"~",48
vis tEntity6,1
}
}
@@ -928,6 +920,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -0,0 +1,724 @@
Page cardLChart
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID : disabled
Events
Preinitialize Event
dim=dimValueNormal
vis p0,0
vis tSend,0
vis tInstruction,0
vis tTmp,0
vis tId,0
vis bPrev,0
vis bNext,0
cardLChart.bco=defaultBcoColor
//vis x0,0
//x0.bco=defaultBcoColor
//x0.borderc=defaultBcoColor
for(sys0=0;sys0<32;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==6371)
{
b[sys0].pic=1
b[sys0].pic2=2
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
Variable (string) entn
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 512
Variable (string) strTmp
Attributes
Scope : local
Text :
Max. Text Size: 200
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: 400
Variable (int32) vNValues
Attributes
Scope: local
Value: 0
Variable (int32) vaBottom
Attributes
Scope: local
Value: 0
Variable (int32) vaColorD
Attributes
Scope: local
Value: 0
Variable (int32) vaColorL
Attributes
Scope: local
Value: 0
Variable (int32) vaLeft
Attributes
Scope: local
Value: 0
Variable (int32) vaMaxX
Attributes
Scope: local
Value: 2147483648
Variable (int32) vaMaxY
Attributes
Scope: local
Value: 0
Variable (int32) vaMinX
Attributes
Scope: local
Value: 2147483647
Variable (int32) vaMinY
Attributes
Scope: local
Value: 2147483647
Variable (int32) vaValue
Attributes
Scope: local
Value: 0
Variable (int32) vaXUnit
Attributes
Scope: local
Value: 0
Variable (int32) vaYUnit
Attributes
Scope: local
Value: 0
Text tHeading
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 40
Picture p0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Button bNext
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bPrev
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Hotspot m0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Events
Touch Press Event
//fill m0.x,m0.y,m0.w,m0.h,RED
Hotspot mSwipeNext
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Events
Touch Press Event
click bNext,1
Hotspot mSwipePrev
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Events
Touch Press Event
click bPrev,1
Hotspot mSwipeUp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Events
Touch Press Event
click bPrev,1
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
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
}
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
}
//draw m0.x,m0.y,m0.x+m0.w,m0.y+m0.h,RED
// extract color
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
vaColorD.val=sys0*8/10<<11 // store and shift
sys0=vaColorL.val>>5%64 // green
vaColorD.val=sys0*8/10<<5+vaColorD.val // store and shift
sys0=vaColorL.val%32
vaColorD.val=sys0*8/10+vaColorD.val // store and add
//
// detect nValues and maxX/Y
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
while(sya0>0)
{
//tHeading.txt="last value="+tTmp.txt
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxX.val)
{
vaMaxX.val=sya1
}
if(sya1<vaMinX.val)
{
vaMinX.val=sya1
}
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxY.val)
{
vaMaxY.val=sya1
}
if(sya1<vaMinY.val)
{
vaMinY.val=sya1
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
}
// find first given y axis labels
spstr strCommand.txt,tTmp.txt,"~",16 // labels in tTmp.txt
sys0=0 // <= result (here: first label value)
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>vaMinY.val)
{
sys0--
if(sys0>=0)
{
// found a y-tick => take is at min...
spstr tTmp.txt,strTmp.txt,":",sys0
covx strTmp.txt,vaMinY.val,0,0
}
sya0=0
}else
{
// next
sys0++
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
}
}
sys1=sys0+1 // last label
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>=vaMaxY.val)
{
vaMaxY.val=sya1
sya0=0
}else
{
// next
sys1++
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
}
}
// get first given x axis tick
spstr strCommand.txt,strTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
covx strTmp.txt,vaMinX.val,0,0
// covx vaMinX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt+":"
// covx vaMaxX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt
// calculate unit width
vaBottom.val=m0.y+m0.h-24
vaLeft.val=m0.x+25+40*100
sya1=vaMaxX.val-vaMinX.val
vaXUnit.val=m0.w-25-40*100/sya1
sya1=vaMaxY.val-vaMinY.val
vaYUnit.val=m0.h-24*100/sya1
// draw labels
// labels still in tTmp.txt
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+5,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
if(sys0>0)
{
sys0--
}
for(sya0=sys0;sya0<=sys1;sya0++)
{
spstr tTmp.txt,strTmp.txt,":",sya0
covx strTmp.txt,sya1,0,0
sys2=sya1%10
sya1/=10
if(sya1>0)
{
covx sya1,strTmp.txt,0,0
}else
{
strTmp.txt=""
}
if(sys2!=0)
{
covx sys2,tId.txt,0,0
strTmp.txt=strTmp.txt+"."+tId.txt
}
sya1*=10+sys2
sya1-=vaMinY.val
xstr m0.x+28,-1*vaYUnit.val*sya1/100+vaBottom.val-10,20,20,0,defaultFontColor,RED,2,1,3,strTmp.txt
line m0.x+25+40-5,-1*vaYUnit.val*sya1/100+vaBottom.val,m0.x+25+40-15,-1*vaYUnit.val*sya1/100+vaBottom.val,14823
}
// y achis label
spstr strCommand.txt,tTmp.txt,"~",15
strlen tTmp.txt,sys1
sya1=sys1*11+m0.h-48/2
for(sys0=0;sys0<sys1;sys0++)
{
substr tTmp.txt,strTmp.txt,sys0,1
xstr m0.x,sys0*-11+m0.y+sya1,24,20,6,defaultFontColor,RED,2,1,3,strTmp.txt
}
//
// x axis tick/labels
// draw bottom line
line m0.x+25+40,vaBottom.val,m0.x+m0.w,vaBottom.val,14823
spstr strCommand.txt,tTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
//
sys1=0
// extract first tick ~> sya1 contains fist ticks value
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
// loop until current ticks label is smaller than the maximum value observed
while(sya0>0&&sya1<vaMaxX.val)
{
sys2=sya1-vaMinX.val*vaXUnit.val/100+m0.x+25+40
// draw tick line
line sys2,vaBottom.val-5,sys2,vaBottom.val+5,14823
// check for label
spstr strTmp.txt,strTmp.txt,"^",1
strlen strTmp.txt,sya0
if(sya0>0)
{
// label found ~> draw
xstr -6*sya0+sys2,vaBottom.val+2,sya0*12,22,0,defaultFontColor,defaultBcoColor,1,1,3,strTmp.txt
}
// next ~> sya1 contains next ticks label
sys1++
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
}
//
// draw line segments...
sys1=-2147483648
sys2=-2147483648
for(sys0=0;sys0<vNValues.val;sys0++)
{
// extract x:y from "~" separated payload
spstr strCommand.txt,tTmp.txt,"~",sys0+18
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya0,0,0
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
sya0=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
sya1=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
// draw circle
// cir sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,3,vaColorL.val
if(sys1>0&&sys2>0)
{
// this is not the first point as the last one has been stored in (sys1,sys2)
// ~> connect with a line...
//line sys1,sys2,sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,vaColorD.val
line sys1,sys2,sya0,sya1,vaColorD.val
//line sys1-1,sys2-1,sya0-1,sya1-1,vaColorL.val
//line sys1+1,sys2+1,sya0+1,sya1+1,vaColorL.val
}
// store current point to (sys1,sys2)
//sys1=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
//sys2=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
sys1=sya0
sys2=sya1
}
}
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")
{
sleepValue=0
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}
Timer tmSleep
Attributes
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
}
TouchCap tc0
Attributes
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -29,7 +29,7 @@ Page cardMedia
vis bEntity5,0
vis bEntity6,0
cardMedia.bco=defaultBcoColor
for(sys0=0;sys0<34;sys0++)
for(sys0=0;sys0<54;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -86,6 +86,18 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
@@ -766,14 +778,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -798,14 +803,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -933,72 +931,66 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//title
spstr strCommand.txt,tTitle.txt,"~",4
spstr strCommand.txt,tTitle.txt,"~",15
//title farbe
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt!="")
{
covx tTmp.txt,tTitle.pco,0,0
}
//author
spstr strCommand.txt,tAuthor.txt,"~",6
spstr strCommand.txt,tAuthor.txt,"~",17
//author farbe
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
if(tTmp.txt!="")
{
covx tTmp.txt,tAuthor.pco,0,0
}
//volume
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
hVolume.val=sys0
//icon
spstr strCommand.txt,tPlayPause.txt,"~",9
spstr strCommand.txt,tPlayPause.txt,"~",20
// on off button
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt=="disable")
{
vis t5,0
@@ -1008,7 +1000,7 @@ Timer tmSerial
covx tTmp.txt,t5.pco,0,0
}
// shuffel btn
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt=="disable")
{
vis tShuffle,0
@@ -1018,9 +1010,9 @@ Timer tmSerial
tShuffle.txt=tTmp.txt
}
// get Type
spstr strCommand.txt,type1.txt,"~",12
spstr strCommand.txt,type1.txt,"~",23
// get internal name
spstr strCommand.txt,entn1.txt,"~",13
spstr strCommand.txt,entn1.txt,"~",24
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -1028,20 +1020,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",14
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",16
spstr strCommand.txt,tEntity1.txt,"~",27
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",18
spstr strCommand.txt,type2.txt,"~",29
// get internal name
spstr strCommand.txt,entn2.txt,"~",19
spstr strCommand.txt,entn2.txt,"~",30
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -1049,20 +1041,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",20
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",21
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",22
spstr strCommand.txt,tEntity2.txt,"~",33
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",24
spstr strCommand.txt,type3.txt,"~",35
// get internal name
spstr strCommand.txt,entn3.txt,"~",25
spstr strCommand.txt,entn3.txt,"~",36
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -1070,20 +1062,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",26
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",27
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",28
spstr strCommand.txt,tEntity3.txt,"~",39
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",30
spstr strCommand.txt,type4.txt,"~",41
// get internal name
spstr strCommand.txt,entn4.txt,"~",31
spstr strCommand.txt,entn4.txt,"~",42
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -1091,20 +1083,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",32
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",33
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",34
spstr strCommand.txt,tEntity4.txt,"~",45
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",36
spstr strCommand.txt,type5.txt,"~",47
// get internal name
spstr strCommand.txt,entn5.txt,"~",37
spstr strCommand.txt,entn5.txt,"~",48
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -1112,20 +1104,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",38
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",39
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",40
spstr strCommand.txt,tEntity5.txt,"~",51
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",42
spstr strCommand.txt,type6.txt,"~",53
// get internal name
spstr strCommand.txt,entn6.txt,"~",43
spstr strCommand.txt,entn6.txt,"~",54
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -1133,14 +1125,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",44
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",45
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",46
spstr strCommand.txt,tEntity6.txt,"~",57
vis tEntity6,1
}
}
@@ -1208,6 +1200,14 @@ Timer tmSerial
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -39,7 +39,7 @@ Page cardPower
vis t4Icon,0
vis t5Icon,0
cardPower.bco=defaultBcoColor
for(sys0=0;sys0<43;sys0++)
for(sys0=0;sys0<48;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -57,6 +57,18 @@ Page cardPower
}
}
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
@@ -265,7 +277,37 @@ Text tHome
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Max. Text Size : 10
Text tHome2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tHomeO
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tHomeO2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Picture p0
Attributes
@@ -280,8 +322,8 @@ Slider h0
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h1
@@ -290,8 +332,8 @@ Slider h1
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h2
@@ -300,8 +342,8 @@ Slider h2
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h3
@@ -310,8 +352,8 @@ Slider h3
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h4
@@ -320,8 +362,8 @@ Slider h4
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h5
@@ -330,8 +372,8 @@ Slider h5
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Button bNext
@@ -346,14 +388,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardPower,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -378,14 +413,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -439,66 +467,84 @@ Timer tm0
Events
Timer Event
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
if(t0Speed.val!=0)
{
h0.val=h0.minval
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
{
h0.val=h0.minval
}
if(sys0<h0.minval)
{
h0.val=h0.maxval
}
h0.val+=t0Speed.val
}
if(sys0<h0.minval)
if(t1Speed.val!=0)
{
h0.val=h0.maxval
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
{
h1.val=h1.minval
}
if(sys0<h1.minval)
{
h1.val=h1.maxval
}
h1.val+=t1Speed.val
}
h0.val+=t0Speed.val
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
if(t2Speed.val!=0)
{
h1.val=h1.minval
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
{
h2.val=h2.minval
}
if(sys0<h2.minval)
{
h2.val=h2.maxval
}
h2.val+=t2Speed.val
}
if(sys0<h1.minval)
if(t3Speed.val!=0)
{
h1.val=h1.maxval
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
}
h1.val+=t1Speed.val
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
if(t4Speed.val!=0)
{
h2.val=h2.minval
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
}
if(sys0<h2.minval)
if(t5Speed.val!=0)
{
h2.val=h2.maxval
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
}
h2.val+=t2Speed.val
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
Timer tmSerial
Attributes
@@ -555,63 +601,75 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// icon color home
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t1.pco,0,0
// icon home
spstr strCommand.txt,t1.txt,"~",4
spstr strCommand.txt,t1.txt,"~",15
// speed 16 ignored
// text home
spstr strCommand.txt,tHome.txt,"~",5
spstr strCommand.txt,tHome.txt,"~",17
spstr tHome.txt,tHome2.txt," ",1
spstr tHome.txt,tHome.txt," ",0
// icon color 18 ignored
// icon 19 ignored
// speed 20 ignored
// text home
spstr strCommand.txt,tHomeO.txt,"~",21
spstr tHomeO.txt,tHomeO2.txt," ",1
spstr tHomeO.txt,tHomeO.txt," ",0
// iconColor
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,t0Icon.pco,0,0
// icon
spstr strCommand.txt,t0Icon.txt,"~",7
spstr strCommand.txt,t0Icon.txt,"~",23
// speed
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,t0Speed.val,0,0
if(t0Speed.val>120)
{
t0Speed.val=120
}
if(t0Speed.val<-120)
{
t0Speed.val=-120
}
// lower text
spstr strCommand.txt,t0u.txt,"~",9
spstr strCommand.txt,t0u.txt,"~",25
if(t0Icon.txt!="")
{
vis t0Icon,1
@@ -624,15 +682,23 @@ Timer tmSerial
vis h0,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,t1Icon.pco,0,0
// icon
spstr strCommand.txt,t1Icon.txt,"~",11
spstr strCommand.txt,t1Icon.txt,"~",27
// speed
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,t1Speed.val,0,0
if(t1Speed.val>120)
{
t1Speed.val=120
}
if(t1Speed.val<-120)
{
t1Speed.val=-120
}
// lower text
spstr strCommand.txt,t1u.txt,"~",13
spstr strCommand.txt,t1u.txt,"~",29
if(t1Icon.txt!="")
{
vis t1Icon,1
@@ -645,15 +711,23 @@ Timer tmSerial
vis h1,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",30
covx tTmp.txt,t2Icon.pco,0,0
// icon
spstr strCommand.txt,t2Icon.txt,"~",15
spstr strCommand.txt,t2Icon.txt,"~",31
// speed
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,t2Speed.val,0,0
if(t2Speed.val>120)
{
t2Speed.val=120
}
if(t2Speed.val<-120)
{
t2Speed.val=-120
}
// lower text
spstr strCommand.txt,t2u.txt,"~",17
spstr strCommand.txt,t2u.txt,"~",33
if(t2Icon.txt!="")
{
vis t2Icon,1
@@ -666,15 +740,23 @@ Timer tmSerial
vis h2,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,t3Icon.pco,0,0
// icon
spstr strCommand.txt,t3Icon.txt,"~",19
spstr strCommand.txt,t3Icon.txt,"~",35
// speed
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",36
covx tTmp.txt,t3Speed.val,0,0
if(t3Speed.val>120)
{
t3Speed.val=120
}
if(t3Speed.val<-120)
{
t3Speed.val=-120
}
// lower text
spstr strCommand.txt,t3u.txt,"~",21
spstr strCommand.txt,t3u.txt,"~",37
if(t3Icon.txt!="")
{
vis t3Icon,1
@@ -687,15 +769,23 @@ Timer tmSerial
vis h3,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",22
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,t4Icon.pco,0,0
// icon
spstr strCommand.txt,t4Icon.txt,"~",23
spstr strCommand.txt,t4Icon.txt,"~",39
// speed
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",40
covx tTmp.txt,t4Speed.val,0,0
if(t4Speed.val>120)
{
t4Speed.val=120
}
if(t4Speed.val<-120)
{
t4Speed.val=-120
}
// lower text
spstr strCommand.txt,t4u.txt,"~",25
spstr strCommand.txt,t4u.txt,"~",41
if(t4Icon.txt!="")
{
vis t4Icon,1
@@ -708,15 +798,23 @@ Timer tmSerial
vis h4,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",42
covx tTmp.txt,t5Icon.pco,0,0
// icon
spstr strCommand.txt,t5Icon.txt,"~",27
spstr strCommand.txt,t5Icon.txt,"~",43
// speed
spstr strCommand.txt,tTmp.txt,"~",28
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,t5Speed.val,0,0
if(t5Speed.val>120)
{
t5Speed.val=120
}
if(t5Speed.val<-120)
{
t5Speed.val=-120
}
// lower text
spstr strCommand.txt,t5u.txt,"~",29
spstr strCommand.txt,t5u.txt,"~",45
if(t5Icon.txt!="")
{
vis t5Icon,1
@@ -797,6 +895,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -70,11 +70,23 @@ Variable (string) entn2
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 50
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 50
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 275
Max. Text Size: 400
Variable (string) tId
Attributes
@@ -187,14 +199,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardQR,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -219,14 +224,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -446,52 +444,46 @@ Timer tmSerial
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
//tHeading
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//text qrcode
spstr strCommand.txt,vaQR.txt,"~",3
spstr strCommand.txt,vaQR.txt,"~",14
// get Type
spstr strCommand.txt,type1.txt,"~",4
spstr strCommand.txt,type1.txt,"~",15
// get internal name
spstr strCommand.txt,entn1.txt,"~",5
spstr strCommand.txt,entn1.txt,"~",16
if(type1.txt=="delete"||type1.txt=="")
{
vis btOnOff1,0
@@ -501,14 +493,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",6
spstr strCommand.txt,tIcon1.txt,"~",17
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",8
spstr strCommand.txt,tEntity1.txt,"~",19
vis tEntity1,1
}
if(type1.txt=="light")
@@ -516,7 +508,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -525,7 +517,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -537,7 +529,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
if(type1.txt=="button")
{
@@ -547,12 +539,12 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
// get Type
spstr strCommand.txt,type2.txt,"~",10
spstr strCommand.txt,type2.txt,"~",21
// get internal name
spstr strCommand.txt,entn2.txt,"~",11
spstr strCommand.txt,entn2.txt,"~",22
if(type2.txt=="delete"||type2.txt=="")
{
vis btOnOff2,0
@@ -562,14 +554,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",12
spstr strCommand.txt,tIcon2.txt,"~",23
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",14
spstr strCommand.txt,tEntity2.txt,"~",25
vis tEntity2,1
}
if(type2.txt=="light")
@@ -577,7 +569,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -586,7 +578,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -598,7 +590,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="button")
{
@@ -608,17 +600,17 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
qrcode m1.x,m1.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
qrcode m0.x,m0.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}
if(tInstruction.txt=="time")
@@ -727,6 +719,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -63,11 +63,23 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 250
Max. Text Size: 750
Variable (string) tId
Attributes
@@ -294,14 +306,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -326,14 +331,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -835,64 +833,58 @@ Timer tmSerial
{
//heading
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//currentTemp
spstr strCommand.txt,tCurTemp.txt,"~",4
spstr strCommand.txt,tCurTemp.txt,"~",15
//dstTemp
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,xTempDest1.val,0,0
xTempDest.val=xTempDest1.val
//status
spstr strCommand.txt,tStatus.txt,"~",6
spstr strCommand.txt,tStatus.txt,"~",17
//minTemp
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,xTempMin1.val,0,0
//maxTemp
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,xTempMax1.val,0,0
//tempStep
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,xTempStep1.val,0,0
// disable all buttons
vis bt0,0
@@ -904,137 +896,137 @@ Timer tmSerial
vis bt6,0
vis bt7,0
//bt0
spstr strCommand.txt,bt0.txt,"~",10
spstr strCommand.txt,bt0.txt,"~",21
if(bt0.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,bt0.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,bt0.val,0,0
// save action
spstr strCommand.txt,va0.txt,"~",13
spstr strCommand.txt,va0.txt,"~",24
//enable
vis bt0,1
}
//bt1
spstr strCommand.txt,bt1.txt,"~",14
spstr strCommand.txt,bt1.txt,"~",25
if(bt1.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,bt1.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",27
covx tTmp.txt,bt1.val,0,0
// save action
spstr strCommand.txt,va1.txt,"~",17
spstr strCommand.txt,va1.txt,"~",28
//enable
vis bt1,1
}
//bt2
spstr strCommand.txt,bt2.txt,"~",18
spstr strCommand.txt,bt2.txt,"~",29
if(bt2.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",30
covx tTmp.txt,bt2.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",31
covx tTmp.txt,bt2.val,0,0
// save action
spstr strCommand.txt,va2.txt,"~",21
spstr strCommand.txt,va2.txt,"~",32
//enable
vis bt2,1
}
//bt3
spstr strCommand.txt,bt3.txt,"~",22
spstr strCommand.txt,bt3.txt,"~",33
if(bt3.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",23
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,bt3.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,bt3.val,0,0
// save action
spstr strCommand.txt,va3.txt,"~",25
spstr strCommand.txt,va3.txt,"~",36
//enable
vis bt3,1
}
//bt4
spstr strCommand.txt,bt4.txt,"~",26
spstr strCommand.txt,bt4.txt,"~",37
if(bt4.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",27
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,bt4.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",28
spstr strCommand.txt,tTmp.txt,"~",39
covx tTmp.txt,bt4.val,0,0
// save action
spstr strCommand.txt,va4.txt,"~",29
spstr strCommand.txt,va4.txt,"~",40
//enable
vis bt4,1
}
//bt5
spstr strCommand.txt,bt5.txt,"~",30
spstr strCommand.txt,bt5.txt,"~",41
if(bt5.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",31
spstr strCommand.txt,tTmp.txt,"~",42
covx tTmp.txt,bt5.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",32
spstr strCommand.txt,tTmp.txt,"~",43
covx tTmp.txt,bt5.val,0,0
// save action
spstr strCommand.txt,va5.txt,"~",33
spstr strCommand.txt,va5.txt,"~",44
//enable
vis bt5,1
}
//bt6
spstr strCommand.txt,bt6.txt,"~",34
spstr strCommand.txt,bt6.txt,"~",45
if(bt6.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",35
spstr strCommand.txt,tTmp.txt,"~",46
covx tTmp.txt,bt6.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,bt6.val,0,0
// save action
spstr strCommand.txt,va6.txt,"~",37
spstr strCommand.txt,va6.txt,"~",48
//enable
vis bt6,1
}
//bt7
spstr strCommand.txt,bt7.txt,"~",38
spstr strCommand.txt,bt7.txt,"~",49
if(bt7.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",39
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,bt7.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",40
spstr strCommand.txt,tTmp.txt,"~",51
covx tTmp.txt,bt7.val,0,0
// save action
spstr strCommand.txt,va7.txt,"~",41
spstr strCommand.txt,va7.txt,"~",52
//enable
vis bt7,1
}
//Text tCurTempLbl
spstr strCommand.txt,tCurTempLbl.txt,"~",42
spstr strCommand.txt,tCurTempLbl.txt,"~",53
//Text tStateLbl
spstr strCommand.txt,tStateLbl.txt,"~",43
spstr strCommand.txt,tStateLbl.txt,"~",54
//Text tALbl
//spstr strCommand.txt,tALbl.txt,"~",44
//spstr strCommand.txt,tALbl.txt,"~",55
//Text tCF
spstr strCommand.txt,tCF.txt,"~",45
spstr strCommand.txt,tCF.txt,"~",56
tCF1.txt=tCF.txt
tCF2.txt=tCF.txt
//Second Temperature
spstr strCommand.txt,tTmp.txt,"~",46
spstr strCommand.txt,tTmp.txt,"~",57
if(tTmp.txt!="")
{
covx tTmp.txt,xTempDest2.val,0,0
@@ -1052,8 +1044,8 @@ Timer tmSerial
vis tCF2,1
}
//Show btDetail
spstr strCommand.txt,tTmp.txt,"~",47
if(tTmp.txt=="1")
spstr strCommand.txt,tTmp.txt,"~",58
if(tTmp.txt!="1")
{
vis btDetail,1
}else
@@ -1129,6 +1121,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -39,6 +39,12 @@ Variable (string) strCommand
Text :
Max. Text Size: 50
Variable (string) strTmp
Attributes
Scope : local
Text :
Max. Text Size: 2
Number frame_ptr
Attributes
Scope : local
@@ -143,7 +149,7 @@ Text tTmp
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Max. Text Size : 30
Text tVersion
Attributes
@@ -152,7 +158,7 @@ Text tVersion
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text : 46
Text : 49
Max. Text Size : 10
Picture p0
@@ -364,6 +370,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -13,7 +13,53 @@ Page pageTest
Events
Preinitialize Event
vis p0,0
recmod=1
baud=115200
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 20
Variable (string) strTmp
Attributes
Scope : local
Text :
Max. Text Size: 2
Variable (string) tInstruction
Attributes
Scope : local
Text :
Max. Text Size: 30
Variable (string) tSend
Attributes
Scope : local
Text :
Max. Text Size: 40
Text tBench
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Text tTmp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text : test123test123
Max. Text Size : 30
Picture p0
Attributes
Scope : local
@@ -78,6 +124,58 @@ Button b11
page cardGrid
Button b12
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : power
Max. Text Size : 10
Events
Touch Press Event
page cardPower
Button b13
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : showqq
Max. Text Size : 10
Events
Touch Press Event
showqq
Button b14
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : newtxt
Max. Text Size : 10
Button b15
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : cardLchart
Max. Text Size : 10
Events
Touch Press Event
page cardLChart
Button b16
Attributes
Scope : local
Dragging : 0
@@ -204,3 +302,82 @@ Button b9
Touch Press Event
page popupNotify
Timer tmSerial
Attributes
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
// data available
if(usize>1)
{
bufferPos=0
while(bufferPos<usize)
{
// check for 0x55 0xBB - Command Init Secuence
if(u[bufferPos]==187&&u[bufferPos-1]==85)
{
//remove garbage at the start of the buffer if there's any to free buffer for command
if(u[bufferPos]!=1)
{
udelete bufferPos-1
}
//instruction is now aligned with buffer, because we deleted garbage before instrcution
//get length after init sequence (check if there are more than to bytes in buffer)
if(3<usize)
{
// check if serial buffer has reached the announced length
ucopy payloadLength,2,2,0
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
payloadLength+=3
// payload length does also not contain crc, so we are adding another 2 bytes for crc
payloadLength+=2
if(payloadLength<usize)
{
// calculate crc
crcrest 1,0xFFFF
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
//crcputu 3,u[2]
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
crcputu 0,payloadLength-1
// get recived crc to be able to compare it
ucopy recvCrc,payloadLength-1,2,0
// compare crc with recived value
if(crcval==recvCrc)
{
// crc is okay
// here is the location where acual code should be
// write command to variable strCommand
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="ping")
{
spstr strCommand.txt,tBench.txt,"~",1
tSend.txt="pong,"+tBench.txt
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}

View File

@@ -37,7 +37,13 @@ Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 200
Max. Text Size: 400
Variable (string) strTmp
Attributes
Scope : local
Text :
Max. Text Size: 2
Variable (string) tId
Attributes
@@ -268,26 +274,6 @@ Text tIcon2
Text :
Max. Text Size : 10
Text tMR
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tMRIcon
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tMainIcon
Attributes
Scope : local
@@ -308,6 +294,16 @@ Text tMainIconAlt
Text :
Max. Text Size : 10
Text tMainIconAlt2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tMainText
Attributes
Scope : local
@@ -328,6 +324,16 @@ Text tMainTextAlt
Text :
Max. Text Size : 10
Text tMainTextAlt2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tNotifyHead
Attributes
Scope : local
@@ -346,7 +352,7 @@ Text tNotifyText
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 80
Max. Text Size : 120
Text tTime
Attributes
@@ -442,7 +448,6 @@ Timer tmSerial
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="wake")
{
//dim=100
click tc0,1
}
if(tInstruction.txt=="dimmode")
@@ -469,6 +474,7 @@ Timer tmSerial
}
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
@@ -487,62 +493,92 @@ Timer tmSerial
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
tDate.txt=pageIcons.vaDate.txt
}
if(tInstruction.txt=="timeout")
if(tInstruction.txt=="statusUpdate")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
//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=="")
{
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMRIcon,0
vis tMR,0
//tMainIcon
spstr strCommand.txt,tMainIcon.txt,"~",1
spstr strCommand.txt,tMainIcon.txt,"~",3
tMainIconAlt.txt=tMainIcon.txt
//tMainIcon Color
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
//tMainText
spstr strCommand.txt,tMainText.txt,"~",2
spstr strCommand.txt,tMainText.txt,"~",6
tMainTextAlt.txt=tMainText.txt
//tForecast1
spstr strCommand.txt,tForecast1.txt,"~",3
spstr strCommand.txt,tForecast1.txt,"~",11
//tF1Icon
spstr strCommand.txt,tF1Icon.txt,"~",4
spstr strCommand.txt,tF1Icon.txt,"~",9
//tF1Icon Color
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tF1Icon.pco,0,0
//tForecast1Val
spstr strCommand.txt,tForecast1Val.txt,"~",5
spstr strCommand.txt,tForecast1Val.txt,"~",12
//tForecast2
spstr strCommand.txt,tForecast2.txt,"~",6
spstr strCommand.txt,tForecast2.txt,"~",17
//tF2Icon
spstr strCommand.txt,tF2Icon.txt,"~",7
spstr strCommand.txt,tF2Icon.txt,"~",15
//tF2Icon Color
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,tF2Icon.pco,0,0
//tForecast2Val
spstr strCommand.txt,tForecast2Val.txt,"~",8
spstr strCommand.txt,tForecast2Val.txt,"~",18
//tForecast3
spstr strCommand.txt,tForecast3.txt,"~",9
spstr strCommand.txt,tForecast3.txt,"~",23
//tF3Icon
spstr strCommand.txt,tF3Icon.txt,"~",10
spstr strCommand.txt,tF3Icon.txt,"~",21
//tF3Icon Color
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tF3Icon.pco,0,0
//tForecast3Val
spstr strCommand.txt,tForecast3Val.txt,"~",11
spstr strCommand.txt,tForecast3Val.txt,"~",24
//tForecast4
spstr strCommand.txt,tForecast4.txt,"~",12
spstr strCommand.txt,tForecast4.txt,"~",29
//tF4Icon
spstr strCommand.txt,tF4Icon.txt,"~",13
spstr strCommand.txt,tF4Icon.txt,"~",27
//tF4Icon Color
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,tF4Icon.pco,0,0
//tForecast4Val
spstr strCommand.txt,tForecast4Val.txt,"~",14
spstr strCommand.txt,tForecast4Val.txt,"~",30
//alternative layout
//tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!=""&&p0.w!=320)
//tMainTextAlt2
spstr strCommand.txt,tMainTextAlt2.txt,"~",36
//tMainIconAlt2
spstr strCommand.txt,tMainIconAlt2.txt,"~",33
//tMainIconAlt2 Color
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,tMainIconAlt2.pco,0,0
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
//value for tMRIcon, activate alternative layout
vis tMainIcon,0
vis tMainText,0
vis tMainTextAlt,1
vis tMainIconAlt,1
vis tMRIcon,1
vis tMR,1
vis tMainTextAlt2,1
vis tMainIconAlt2,1
vis tForecast1,0
vis tF1Icon,0
vis tForecast1Val,0
@@ -556,26 +592,17 @@ Timer tmSerial
tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt
}
//tMR
spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt!="")
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
}else
{
tIcon1.font=3
}
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt!="")
{
tIcon2.font=3
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMainTextAlt2,0
vis tMainIconAlt2,0
}
}
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
@@ -591,9 +618,8 @@ Timer tmSerial
tMainText.bco=tTime.bco
tMainIconAlt.bco=tTime.bco
tMainTextAlt.bco=tTime.bco
tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco
tMainTextAlt2.bco=tTime.bco
tMainIconAlt2.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco
@@ -617,48 +643,34 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",8
covx tTmp.txt,tForecast3.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",9
covx tTmp.txt,tForecast4.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,tF1Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",12
covx tTmp.txt,tF2Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",13
covx tTmp.txt,tF3Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,tF4Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tForecast1Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,tForecast2Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",12
covx tTmp.txt,tForecast3Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",13
covx tTmp.txt,tForecast4Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
spstr strCommand.txt,tTmp.txt,"~",15
covx tTmp.txt,tMainTextAlt2.pco,0,0
//spstr strCommand.txt,tTmp.txt,"~",16
//covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,tTimeAdd.pco,0,0
if(tMRIcon.txt!=""&&p0.w!=320)
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
tForecast4Val.pco=tForecast3Val.pco
tForecast3Val.pco=tForecast2Val.pco
tForecast2Val.pco=tForecast1Val.pco
@@ -761,6 +773,16 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
// end of user code
udelete payloadLength-1

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -17,7 +17,7 @@
│ page pageStartup
│ --- HMI/n2t-out/cardEntities.txt
├── +++ HMI/US/portrait/n2t-out/cardEntities.txt
│ @@ -61,14 +61,24 @@
│ @@ -61,16 +61,36 @@
│ vis tIcon4,0
│ vis tEntity4,0
│ vis bText4,0
@@ -35,41 +35,91 @@
│ + vis bText5,0
│ + vis hSlider5,0
│ + vis nNum5,0
│ + //ui e6
│ + vis btOnOff6,0
│ + vis bUp6,0
│ + vis bStop6,0
│ + vis bDown6,0
│ + vis tIcon6,0
│ + vis tEntity6,0
│ + vis bText6,0
│ + vis hSlider6,0
│ + vis nNum6,0
│ cardEntities.bco=defaultBcoColor
for(sys0=0;sys0<65;sys0++)
- for(sys0=0;sys0<67;sys0++)
│ + for(sys0=0;sys0<65;sys0++)
│ {
│ if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==54)
│ {
│ b[sys0].bco=defaultBcoColor
│ b[sys0].pco=defaultFontColor
@@ -106,14 +116,26 @@
}
│ if(b[sys0].type==53&&defaultBcoColor==0)
│ @@ -86,45 +106,57 @@
│ }
│ }
│ Variable (string) entn1
│ Attributes
│ Scope : local
│ Text :
│ - Max. Text Size: 80
│ + Max. Text Size: 65
│ Variable (string) entn2
│ Attributes
│ Scope : local
│ Text :
│ - Max. Text Size: 80
│ + Max. Text Size: 65
│ Variable (string) entn3
│ Attributes
│ Scope : local
│ Text :
│ - Max. Text Size: 80
│ + Max. Text Size: 65
│ Variable (string) entn4
│ Attributes
│ Scope : local
│ Text :
Max. Text Size: 80
- Max. Text Size: 80
+ Max. Text Size: 65
│ +
│ +Variable (string) entn5
│ + Attributes
│ + Scope : local
│ + Text :
│ + Max. Text Size: 80
│ + Max. Text Size: 65
│ +
│ +Variable (string) entn6
│ + Attributes
│ + Scope : local
│ + Text :
│ + Max. Text Size: 80
+
│ + Max. Text Size: 65
│ Variable (string) nent1
│ Attributes
│ Scope : local
│ Text :
│ - Max. Text Size: 80
│ + Max. Text Size: 40
│ Variable (string) nent2
│ Attributes
│ Scope : local
│ Text :
│ - Max. Text Size: 80
│ + Max. Text Size: 40
│ Variable (string) strCommand
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 500
Variable (string) tSend
│ @@ -142,14 +164,26 @@
@@ -154,14 +186,26 @@
│ Variable (string) type4
│ Attributes
@@ -96,7 +146,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -178,14 +212,32 @@
│ @@ -190,14 +234,32 @@
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
@@ -129,7 +179,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -218,14 +270,34 @@
│ @@ -230,14 +292,34 @@
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
@@ -164,7 +214,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -268,14 +340,34 @@
│ @@ -280,14 +362,34 @@
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
@@ -199,7 +249,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -417,14 +509,70 @@
│ @@ -429,14 +531,70 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
@@ -270,7 +320,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ @@ -517,14 +665,64 @@
│ @@ -529,14 +687,64 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
@@ -335,7 +385,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ @@ -681,14 +879,64 @@
│ @@ -679,14 +887,64 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
@@ -400,7 +450,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ @@ -781,14 +1029,64 @@
│ @@ -779,14 +1037,64 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
@@ -465,7 +515,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ @@ -881,14 +1179,64 @@
│ @@ -879,14 +1187,64 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
@@ -530,7 +580,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ State : unpressed
│ @@ -989,14 +1337,68 @@
│ @@ -987,14 +1345,68 @@
│ crcputs tSend.txt,0
│ //send cmd
│ printh 55 bb
@@ -599,7 +649,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -1129,14 +1531,84 @@
│ @@ -1127,14 +1539,84 @@
│ page popupInSel
│ }
│ if(type4.txt=="timer")
@@ -684,7 +734,7 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ @@ -1870,14 +2342,312 @@
│ @@ -1862,14 +2344,312 @@
│ covx tTmp.txt,sys0,0,0
│ hSlider4.minval=sys0
│ //third value is max value
@@ -693,9 +743,9 @@
│ hSlider4.maxval=sys0
│ }
│ + // get Type
│ + spstr strCommand.txt,type5.txt,"~",27
│ + spstr strCommand.txt,type5.txt,"~",38
│ + // get internal name
│ + spstr strCommand.txt,entn5.txt,"~",28
│ + spstr strCommand.txt,entn5.txt,"~",39
│ + if(type5.txt=="delete"||type5.txt=="")
│ + {
│ + vis bUp5,0
@@ -710,14 +760,14 @@
│ + }else
│ + {
│ + // change icon
│ + spstr strCommand.txt,tIcon5.txt,"~",29
│ + spstr strCommand.txt,tIcon5.txt,"~",40
│ + vis tIcon5,1
│ + // change icon color
│ + spstr strCommand.txt,tTmp.txt,"~",30
│ + spstr strCommand.txt,tTmp.txt,"~",41
│ + covx tTmp.txt,sys0,0,0
│ + tIcon5.pco=sys0
│ + // set name
│ + spstr strCommand.txt,tEntity5.txt,"~",31
│ + spstr strCommand.txt,tEntity5.txt,"~",42
│ + vis tEntity5,1
│ + }
│ + if(type5.txt=="shutter")
@@ -730,7 +780,7 @@
│ + vis hSlider5,0
│ + vis nNum5,0
│ + // get Button State (optional Value)
│ + spstr strCommand.txt,tId.txt,"~",32
│ + spstr strCommand.txt,tId.txt,"~",43
│ + // up button
│ + spstr tId.txt,tTmp.txt,"|",3
│ + if(tTmp.txt=="disable")
@@ -781,7 +831,7 @@
│ + vis hSlider5,0
│ + vis nNum5,0
│ + // get Button State (optional Value)
│ + spstr strCommand.txt,tTmp.txt,"~",32
│ + spstr strCommand.txt,tTmp.txt,"~",43
│ + covx tTmp.txt,sys0,0,0
│ + btOnOff5.val=sys0
│ + }
@@ -798,7 +848,7 @@
│ + bText5.pco=65535
│ + bText5.pco2=65535
│ + // get Text (optional Value)
│ + spstr strCommand.txt,bText5.txt,"~",32
│ + spstr strCommand.txt,bText5.txt,"~",43
│ + }
│ + if(type5.txt=="button"||type5.txt=="input_sel")
│ + {
@@ -813,7 +863,7 @@
│ + bText5.pco=1374
│ + bText5.pco2=1374
│ + // get Text (optional Value)
│ + spstr strCommand.txt,bText5.txt,"~",32
│ + spstr strCommand.txt,bText5.txt,"~",43
│ + }
│ + if(type5.txt=="number")
│ + {
@@ -826,7 +876,7 @@
│ + vis hSlider5,1
│ + vis nNum5,1
│ + // get config (optional Value) (use bText as variable)
│ + spstr strCommand.txt,bText5.txt,"~",32
│ + spstr strCommand.txt,bText5.txt,"~",43
│ + //first value is current value
│ + spstr bText5.txt,tTmp.txt,"|",0
│ + covx tTmp.txt,sys0,0,0
@@ -842,9 +892,9 @@
│ + hSlider5.maxval=sys0
│ + }
│ + // get Type
│ + spstr strCommand.txt,type6.txt,"~",33
│ + spstr strCommand.txt,type6.txt,"~",44
│ + // get internal name
│ + spstr strCommand.txt,entn6.txt,"~",34
│ + spstr strCommand.txt,entn6.txt,"~",45
│ + if(type6.txt=="delete"||type6.txt=="")
│ + {
│ + vis bUp6,0
@@ -859,14 +909,14 @@
│ + }else
│ + {
│ + // change icon
│ + spstr strCommand.txt,tIcon6.txt,"~",35
│ + spstr strCommand.txt,tIcon6.txt,"~",46
│ + vis tIcon6,1
│ + // change icon color
│ + spstr strCommand.txt,tTmp.txt,"~",36
│ + spstr strCommand.txt,tTmp.txt,"~",47
│ + covx tTmp.txt,sys0,0,0
│ + tIcon6.pco=sys0
│ + // set name
│ + spstr strCommand.txt,tEntity6.txt,"~",37
│ + spstr strCommand.txt,tEntity6.txt,"~",48
│ + vis tEntity6,1
│ + }
│ + if(type6.txt=="shutter")
@@ -879,7 +929,7 @@
│ + vis hSlider6,0
│ + vis nNum6,0
│ + // get Button State (optional Value)
│ + spstr strCommand.txt,tId.txt,"~",38
│ + spstr strCommand.txt,tId.txt,"~",49
│ + // up button
│ + spstr tId.txt,tTmp.txt,"|",3
│ + if(tTmp.txt=="disable")
@@ -930,7 +980,7 @@
│ + vis hSlider6,0
│ + vis nNum6,0
│ + // get Button State (optional Value)
│ + spstr strCommand.txt,tTmp.txt,"~",38
│ + spstr strCommand.txt,tTmp.txt,"~",49
│ + covx tTmp.txt,sys0,0,0
│ + btOnOff6.val=sys0
│ + }
@@ -947,7 +997,7 @@
│ + bText6.pco=65535
│ + bText6.pco2=65535
│ + // get Text (optional Value)
│ + spstr strCommand.txt,bText6.txt,"~",38
│ + spstr strCommand.txt,bText6.txt,"~",49
│ + }
│ + if(type6.txt=="button"||type6.txt=="input_sel")
│ + {
@@ -962,7 +1012,7 @@
│ + bText6.pco=1374
│ + bText6.pco2=1374
│ + // get Text (optional Value)
│ + spstr strCommand.txt,bText6.txt,"~",38
│ + spstr strCommand.txt,bText6.txt,"~",49
│ + }
│ + if(type6.txt=="number")
│ + {
@@ -975,7 +1025,7 @@
│ + vis hSlider6,1
│ + vis nNum6,1
│ + // get config (optional Value) (use bText as variable)
│ + spstr strCommand.txt,bText6.txt,"~",38
│ + spstr strCommand.txt,bText6.txt,"~",49
│ + //first value is current value
│ + spstr bText6.txt,tTmp.txt,"|",0
│ + covx tTmp.txt,sys0,0,0
@@ -997,29 +1047,30 @@
│ //command format pageType,specialPageName
│ //write name of speical page to tId
│ spstr strCommand.txt,tId.txt,"~",1
│ --- HMI/n2t-out/cardGrid.txt
├── +++ HMI/US/portrait/n2t-out/cardGrid.txt
│ @@ -633,14 +633,18 @@
│ {
│ page popupLight
│ }
│ if(tTmp.txt=="fan")
│ {
│ page popupFan
│ }
│ + if(tTmp.txt=="input_sel")
│ + {
│ + page popupInSel
│ + }
│ Timer tmSerial
│ Attributes
│ Scope : local
│ Period (ms): 50
│ Enabled : yes
│ --- HMI/n2t-out/pageStartup.txt
├── +++ HMI/US/portrait/n2t-out/pageStartup.txt
│ @@ -118,15 +118,15 @@
│ @@ -35,20 +35,14 @@
│ Variable (string) strCommand
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 50
│ -Variable (string) strTmp
│ - Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 2
│ -
│ Number frame_ptr
│ Attributes
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -124,15 +118,15 @@
│ Text tMsg3
│ Attributes
│ Scope : local
@@ -1036,7 +1087,7 @@
│ Scope : local
│ Dragging : 0
│ Disable release event after dragging: 0
│ @@ -173,15 +173,15 @@
│ @@ -179,15 +173,15 @@
│ Max. Text Size : 10
│ Events
@@ -1055,7 +1106,7 @@
│ //send cmd
│ --- HMI/n2t-out/screensaver.txt
├── +++ HMI/US/portrait/n2t-out/screensaver.txt
│ @@ -29,29 +29,20 @@
│ @@ -29,17 +29,14 @@
│ }
│ tDate.txt=pageIcons.vaDate.txt
│ dim=dimValue
@@ -1070,22 +1121,10 @@
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 200
│ Max. Text Size: 400
-Variable (string) strTmp
- Attributes
│ - Scope : local
│ - Text :
│ - Max. Text Size: 2
│ -
│ Variable (string) tId
│ Attributes
│ Scope : local
│ Text :
│ Max. Text Size: 25
│ Variable (string) tInstruction
│ @@ -103,24 +94,14 @@
Variable (string) strTmp
@@ -103,35 +100,14 @@
│ Value: 0
│ Variable (int32) ycR
@@ -1103,6 +1142,17 @@
│ - Text :
│ - Max. Text Size : 10
│ -
│ - Events
│ - Touch Press Event
│ - tTmp.txt="change model conf to us-l/p "
│ - strlen tTmp.txt,sys1
│ - sya1=sys1*11+m0.h-48/2
│ - for(sys0=0;sys0<sys1;sys0++)
│ - {
│ - substr tTmp.txt,strTmp.txt,sys0,1
│ - xstr m0.x-5,sys0*-11+m0.y+sya1,23,20,6,WHITE,RED,2,1,3,strTmp.txt
│ - }
│ -
│ Text t10
│ Attributes
│ Scope : local
@@ -1110,3 +1160,20 @@
│ Disable release event after dragging: 0
│ Send Component ID : disabled
│ Associated Keyboard : none
│ @@ -494,15 +470,15 @@
│ if(tTmp.txt!="")
│ {
│ covx tTmp.txt,defaultFontColor,0,0
│ }
│ }
│ if(tInstruction.txt=="time")
│ {
│ - click m0,1
│ + //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

View File

@@ -1,23 +1,75 @@
+++ /dev/fd/62 2022-12-23 15:58:39.712878570 +0000
+++ /dev/fd/62 2023-01-25 19:09:43.447986033 +0000
+I/n2t-out/Program.s.txt
++ HMI/US/portrait/n2t-out/Program.s.txt
+I/n2t-out/cardEntities.txt
++ HMI/US/portrait/n2t-out/cardEntities.txt
+14 +116,26 @@
+e (string) entn6
+6 +61,36 @@
+ //ui e6
+ vis btOnOff6,0
+ vis bUp6,0
+ vis bStop6,0
+ vis bDown6,0
+ vis tIcon6,0
+ vis tEntity6,0
+ vis bText6,0
+ vis hSlider6,0
+ vis nNum6,0
+ for(sys0=0;sys0<67;sys0++)
+ }
+ if(b[sys0].type==53&&defaultBcoColor==0)
+5 +106,57 @@
+ }
+ }
+
+e (string) entn1
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 80
+ Max. Text Size: 65
+
+14 +164,26 @@
+e (string) entn2
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 80
+ Max. Text Size: 65
+
+e (string) entn3
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 80
+ Max. Text Size: 65
+ Max. Text Size: 65
+ Max. Text Size: 65
+
+e (string) entn6
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 65
+
+e (string) nent1
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 40
+
+e (string) nent2
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 80
+ Max. Text Size: 40
+14 +186,26 @@
+e (string) type6
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 10
+
+14 +212,32 @@
+14 +234,32 @@
+nNum6
+ributes
+ Scope : local
@@ -27,7 +79,7 @@
+ Associated Keyboard : none
+ Value : 0
+
+14 +270,34 @@
+14 +292,34 @@
+ntity6
+ributes
+ Scope : local
@@ -38,7 +90,7 @@
+ Text : tEntity5
+ Max. Text Size : 30
+
+14 +340,34 @@
+14 +362,34 @@
+con6
+ributes
+ Scope : local
@@ -49,7 +101,7 @@
+ Text : 
+ Max. Text Size : 5
+
+14 +509,70 @@
+14 +531,70 @@
+hSlider6
+ributes
+ Scope : local
@@ -78,7 +130,7 @@
+ prints tSend.txt,0
+ prints crcval,2
+
+14 +665,64 @@
+14 +687,64 @@
+bDown6
+ributes
+ Scope : local
@@ -104,7 +156,7 @@
+ prints tSend.txt,0
+ prints crcval,2
+
+14 +879,64 @@
+14 +887,64 @@
+bStop6
+ributes
+ Scope : local
@@ -130,7 +182,7 @@
+ prints tSend.txt,0
+ prints crcval,2
+
+14 +1029,64 @@
+14 +1037,64 @@
+bText6
+ributes
+ Scope : local
@@ -156,7 +208,7 @@
+ prints tSend.txt,0
+ prints crcval,2
+
+14 +1179,64 @@
+14 +1187,64 @@
+bUp6
+ributes
+ Scope : local
@@ -182,7 +234,7 @@
+ prints tSend.txt,0
+ prints crcval,2
+
+14 +1337,68 @@
+14 +1345,68 @@
+ate Button btOnOff6
+ributes
+ Scope : local
@@ -210,7 +262,7 @@
+ prints tSend.txt,0
+ prints crcval,2
+
+,14 +1531,84 @@
+,14 +1539,84 @@
+ page popupInSel
+ if(type4.txt=="timer")
+ page popupTimer
@@ -253,12 +305,22 @@
+ {
+ page popupTimer
+ }
+,14 +2342,312 @@
+,14 +2344,312 @@
+ spstr strCommand.txt,type5.txt,"~",38
+ spstr strCommand.txt,entn5.txt,"~",39
+ spstr strCommand.txt,tIcon5.txt,"~",40
+ spstr strCommand.txt,tTmp.txt,"~",41
+ spstr strCommand.txt,tEntity5.txt,"~",42
+ spstr strCommand.txt,tId.txt,"~",43
+ spstr strCommand.txt,tTmp.txt,"~",43
+ if(type5.txt=="text"||type5.txt=="timer")
+ spstr strCommand.txt,bText5.txt,"~",43
+ spstr strCommand.txt,bText5.txt,"~",43
+ spstr strCommand.txt,bText5.txt,"~",43
+ // get Type
+ spstr strCommand.txt,type6.txt,"~",33
+ spstr strCommand.txt,type6.txt,"~",44
+ // get internal name
+ spstr strCommand.txt,entn6.txt,"~",34
+ spstr strCommand.txt,entn6.txt,"~",45
+ if(type6.txt=="delete"||type6.txt=="")
+ {
+ vis bUp6,0
@@ -273,14 +335,14 @@
+ }else
+ {
+ // change icon
+ spstr strCommand.txt,tIcon6.txt,"~",35
+ spstr strCommand.txt,tIcon6.txt,"~",46
+ vis tIcon6,1
+ // change icon color
+ spstr strCommand.txt,tTmp.txt,"~",36
+ spstr strCommand.txt,tTmp.txt,"~",47
+ covx tTmp.txt,sys0,0,0
+ tIcon6.pco=sys0
+ // set name
+ spstr strCommand.txt,tEntity6.txt,"~",37
+ spstr strCommand.txt,tEntity6.txt,"~",48
+ vis tEntity6,1
+ }
+ if(type6.txt=="shutter")
@@ -293,7 +355,7 @@
+ vis hSlider6,0
+ vis nNum6,0
+ // get Button State (optional Value)
+ spstr strCommand.txt,tId.txt,"~",38
+ spstr strCommand.txt,tId.txt,"~",49
+ // up button
+ spstr tId.txt,tTmp.txt,"|",3
+ if(tTmp.txt=="disable")
@@ -344,7 +406,7 @@
+ vis hSlider6,0
+ vis nNum6,0
+ // get Button State (optional Value)
+ spstr strCommand.txt,tTmp.txt,"~",38
+ spstr strCommand.txt,tTmp.txt,"~",49
+ covx tTmp.txt,sys0,0,0
+ btOnOff6.val=sys0
+ }
@@ -361,7 +423,7 @@
+ bText6.pco=65535
+ bText6.pco2=65535
+ // get Text (optional Value)
+ spstr strCommand.txt,bText6.txt,"~",38
+ spstr strCommand.txt,bText6.txt,"~",49
+ }
+ if(type6.txt=="button"||type6.txt=="input_sel")
+ {
@@ -376,7 +438,7 @@
+ bText6.pco=1374
+ bText6.pco2=1374
+ // get Text (optional Value)
+ spstr strCommand.txt,bText6.txt,"~",38
+ spstr strCommand.txt,bText6.txt,"~",49
+ }
+ if(type6.txt=="number")
+ {
@@ -389,7 +451,7 @@
+ vis hSlider6,1
+ vis nNum6,1
+ // get config (optional Value) (use bText as variable)
+ spstr strCommand.txt,bText6.txt,"~",38
+ spstr strCommand.txt,bText6.txt,"~",49
+ //first value is current value
+ spstr bText6.txt,tTmp.txt,"|",0
+ covx tTmp.txt,sys0,0,0
@@ -404,31 +466,32 @@
+ covx tTmp.txt,sys0,0,0
+ hSlider6.maxval=sys0
+ }
+I/n2t-out/cardGrid.txt
++ HMI/US/portrait/n2t-out/cardGrid.txt
+14 +633,18 @@
+ {
+ page popupLight
+ }
+ if(tTmp.txt=="fan")
+ {
+ page popupFan
+ }
+ if(tTmp.txt=="input_sel")
+ {
+ page popupInSel
+ }
+
+mSerial
+ributes
+ Scope : local
+ Period (ms): 50
+ Enabled : yes
+I/n2t-out/pageStartup.txt
++ HMI/US/portrait/n2t-out/pageStartup.txt
+0 +35,14 @@
+
+e (string) strCommand
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 50
+
+e (string) strTmp
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 2
+
+frame_ptr
+ributes
+ Scope : local
+ Dragging : 0
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+ Associated Keyboard : none
+I/n2t-out/screensaver.txt
++ HMI/US/portrait/n2t-out/screensaver.txt
+9 +29,20 @@
+7 +29,14 @@
+ }
+ tDate.txt=pageIcons.vaDate.txt
+ dim=dimValue
@@ -443,22 +506,10 @@
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 200
+ Max. Text Size: 400
+
+e (string) strTmp
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 2
+
+e (string) tId
+ributes
+ Scope : local
+ Text :
+ Max. Text Size: 25
+
+e (string) tInstruction
+24 +94,14 @@
+35 +100,14 @@
+ Value: 0
+
+e (int32) ycR
@@ -476,6 +527,17 @@
+ Text :
+ Max. Text Size : 10
+
+nts
+ Touch Press Event
+ tTmp.txt="change model conf to us-l/p "
+ strlen tTmp.txt,sys1
+ sya1=sys1*11+m0.h-48/2
+ for(sys0=0;sys0<sys1;sys0++)
+ {
+ substr tTmp.txt,strTmp.txt,sys0,1
+ xstr m0.x-5,sys0*-11+m0.y+sya1,23,20,6,WHITE,RED,2,1,3,strTmp.txt
+ }
+
+0
+ributes
+ Scope : local
@@ -483,3 +545,20 @@
+ Disable release event after dragging: 0
+ Send Component ID : disabled
+ Associated Keyboard : none
+15 +470,15 @@
+ if(tTmp.txt!="")
+ {
+ covx tTmp.txt,defaultFontColor,0,0
+ }
+ }
+ if(tInstruction.txt=="time")
+ {
+ click m0,1
+ //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

View File

@@ -46,7 +46,7 @@ Page cardAlarm
vis bPrev,0
vis bNext,0
cardAlarm.bco=defaultBcoColor
for(sys0=0;sys0<40;sys0++)
for(sys0=0;sys0<44;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -72,12 +72,26 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 41
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 40
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 6
Scope : local
Text :
Max. Text Size: 200
Max. Text Size: 400
Variable (string) tSend
Attributes
@@ -129,8 +143,8 @@ Text tCode
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 68
y coordinate : 17
x coordinate : 23
y coordinate : 73
Width : 192
Height : 49
Effect : load
@@ -151,6 +165,36 @@ Text tCode
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHeading
Attributes
ID : 42
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 68
y coordinate : 26
Width : 184
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 :
Max. Text Size : 40
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tIcon
Attributes
ID : 26
@@ -159,7 +203,7 @@ Text tIcon
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 129
x coordinate : 236
y coordinate : 73
Width : 64
Height : 49
@@ -281,8 +325,8 @@ Picture p0
Opacity : 127
x coordinate : 0
y coordinate : 0
Width : 319
Height : 479
Width : 320
Height : 480
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -513,7 +557,7 @@ Button b0
Send Component ID : disabled
Opacity : 127
x coordinate : 25
y coordinate : 252
y coordinate : 251
Width : 75
Height : 50
Effect : load
@@ -541,6 +585,11 @@ Button b0
Events
Touch Press Event
tCode.txt=tCode.txt+"1"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b1
Attributes
@@ -579,6 +628,11 @@ Button b1
Events
Touch Press Event
tCode.txt=tCode.txt+"2"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b10
Attributes
@@ -617,6 +671,11 @@ Button b10
Events
Touch Press Event
tCode.txt=tCode.txt+"0"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b11
Attributes
@@ -655,6 +714,11 @@ Button b11
Events
Touch Press Event
tCode.txt=""
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b2
Attributes
@@ -693,6 +757,11 @@ Button b2
Events
Touch Press Event
tCode.txt=tCode.txt+"3"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b3
Attributes
@@ -731,6 +800,11 @@ Button b3
Events
Touch Press Event
tCode.txt=tCode.txt+"4"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b4
Attributes
@@ -769,6 +843,11 @@ Button b4
Events
Touch Press Event
tCode.txt=tCode.txt+"5"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b5
Attributes
@@ -807,6 +886,11 @@ Button b5
Events
Touch Press Event
tCode.txt=tCode.txt+"6"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b6
Attributes
@@ -845,6 +929,11 @@ Button b6
Events
Touch Press Event
tCode.txt=tCode.txt+"7"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b7
Attributes
@@ -883,6 +972,11 @@ Button b7
Events
Touch Press Event
tCode.txt=tCode.txt+"8"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b8
Attributes
@@ -921,6 +1015,11 @@ Button b8
Events
Touch Press Event
tCode.txt=tCode.txt+"9"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b9
Attributes
@@ -1014,14 +1113,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1068,14 +1160,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1139,7 +1224,7 @@ Hotspot mSwipeUp
x coordinate : 10
y coordinate : 0
Width : 300
Height : 9
Height : 8
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -1222,87 +1307,94 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
//entn
spstr strCommand.txt,entn.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
spstr strCommand.txt,tHeading.txt,"~",1
if(tHeading.txt=="unknown")
{
tHeading.txt=""
}
if(tHeading.txt!="")
{
vis tHeading,1
}else
{
vis tHeading,0
}
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entn
spstr strCommand.txt,entn.txt,"~",14
//text arm1
spstr strCommand.txt,arm1.txt,"~",3
spstr strCommand.txt,arm1.txt,"~",15
if(arm1.txt!="")
{
vis arm1,1
}
//id arm1
spstr strCommand.txt,va1.txt,"~",4
spstr strCommand.txt,va1.txt,"~",16
//text arm2
spstr strCommand.txt,arm2.txt,"~",5
spstr strCommand.txt,arm2.txt,"~",17
if(arm2.txt!="")
{
vis arm2,1
}
//id arm2
spstr strCommand.txt,va2.txt,"~",6
spstr strCommand.txt,va2.txt,"~",18
//text arm3
spstr strCommand.txt,arm3.txt,"~",7
spstr strCommand.txt,arm3.txt,"~",19
if(arm3.txt!="")
{
vis arm3,1
}
//id arm3
spstr strCommand.txt,va3.txt,"~",8
spstr strCommand.txt,va3.txt,"~",20
//text arm4
spstr strCommand.txt,arm4.txt,"~",9
spstr strCommand.txt,arm4.txt,"~",21
if(arm4.txt!="")
{
vis arm4,1
}
//id arm4
spstr strCommand.txt,va4.txt,"~",10
spstr strCommand.txt,va4.txt,"~",22
//icon
spstr strCommand.txt,tIcon.txt,"~",11
spstr strCommand.txt,tIcon.txt,"~",23
//icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon.pco=sys0
//numpad status
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",25
if(tTmp.txt!="disable")
{
vis b0,1
@@ -1317,7 +1409,13 @@ Timer tmSerial
vis b9,1
vis b10,1
vis b11,1
vis tCode,1
if(tHeading.txt!="")
{
vis tCode,0
}else
{
vis tCode,1
}
}else
{
vis b0,0
@@ -1335,7 +1433,7 @@ Timer tmSerial
vis tCode,0
}
//flashing status
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",26
if(tTmp.txt=="enable")
{
tmFlash.en=1
@@ -1344,13 +1442,13 @@ Timer tmSerial
tmFlash.en=0
}
// extra button
spstr strCommand.txt,b9.txt,"~",15
spstr strCommand.txt,b9.txt,"~",27
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
spstr strCommand.txt,vaAddBtn.txt,"~",29
}
}
if(tInstruction.txt=="time")
@@ -1459,6 +1557,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -58,6 +58,20 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 32
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 31
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 3
@@ -280,14 +294,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -334,14 +341,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -559,48 +559,42 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// extract color
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
@@ -612,7 +606,7 @@ Timer tmSerial
//
// detect nValues and maxValue
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
while(sya0>0)
{
@@ -623,7 +617,7 @@ Timer tmSerial
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
}
//
@@ -638,7 +632,7 @@ Timer tmSerial
//
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
spstr strCommand.txt,strTmp.txt,"~",5
spstr strCommand.txt,strTmp.txt,"~",16
sya1=0
spstr strTmp.txt,tTmp.txt,":",sya1
strlen tTmp.txt,sya0
@@ -671,7 +665,7 @@ Timer tmSerial
}
//
// y achis label
spstr strCommand.txt,tTmp.txt,"~",4
spstr strCommand.txt,tTmp.txt,"~",15
// tTmp.txt="Gas [kW]"
strlen tTmp.txt,sys1
sya1=sys1*12+m0.h-48/2
@@ -687,7 +681,7 @@ Timer tmSerial
vaValues.txt+="~"
}
// extract next entry
spstr strCommand.txt,tTmp.txt,"~",sys0+6
spstr strCommand.txt,tTmp.txt,"~",sys0+17
// calculate left
sys1=sys0*5*vaUnit.val
sys1+=vaLeft.val
@@ -853,6 +847,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -83,6 +83,16 @@ Page cardEntities
vis bText5,0
vis hSlider5,0
vis nNum5,0
//ui e6
vis btOnOff6,0
vis bUp6,0
vis bStop6,0
vis bDown6,0
vis tIcon6,0
vis tEntity6,0
vis bText6,0
vis hSlider6,0
vis nNum6,0
cardEntities.bco=defaultBcoColor
for(sys0=0;sys0<65;sys0++)
{
@@ -109,42 +119,56 @@ Variable (string) entn1
ID : 48
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn2
Attributes
ID : 49
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn3
Attributes
ID : 50
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn4
Attributes
ID : 51
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn5
Attributes
ID : 61
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn6
Attributes
ID : 88
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) nent1
Attributes
ID : 90
Scope : local
Text :
Max. Text Size: 40
Variable (string) nent2
Attributes
ID : 89
Scope : local
Text :
Max. Text Size: 40
Variable (string) strCommand
Attributes
@@ -1453,14 +1477,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1507,14 +1524,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -3049,50 +3059,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,displayName,optionalValue]x4
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis bUp1,0
@@ -3107,14 +3111,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",5
spstr strCommand.txt,tIcon1.txt,"~",16
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
if(type1.txt=="shutter")
@@ -3127,7 +3131,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8
spstr strCommand.txt,tId.txt,"~",19
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -3178,7 +3182,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -3195,7 +3199,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="button"||type1.txt=="input_sel")
{
@@ -3210,7 +3214,7 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="number")
{
@@ -3223,7 +3227,7 @@ Timer tmSerial
vis hSlider1,1
vis nNum1,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
//first value is current value
spstr bText1.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -3239,9 +3243,9 @@ Timer tmSerial
hSlider1.maxval=sys0
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis bUp2,0
@@ -3256,14 +3260,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",11
spstr strCommand.txt,tIcon2.txt,"~",22
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
if(type2.txt=="shutter")
@@ -3276,7 +3280,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14
spstr strCommand.txt,tId.txt,"~",25
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -3327,7 +3331,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",25
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -3344,7 +3348,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="button"||type2.txt=="input_sel")
{
@@ -3359,7 +3363,7 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="number")
{
@@ -3372,7 +3376,7 @@ Timer tmSerial
vis hSlider2,1
vis nNum2,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
//first value is current value
spstr bText2.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -3388,9 +3392,9 @@ Timer tmSerial
hSlider2.maxval=sys0
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis bUp3,0
@@ -3405,14 +3409,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon3.txt,"~",17
spstr strCommand.txt,tIcon3.txt,"~",28
vis tIcon3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
tIcon3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
if(type3.txt=="shutter")
@@ -3425,7 +3429,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20
spstr strCommand.txt,tId.txt,"~",31
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -3476,7 +3480,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",31
covx tTmp.txt,sys0,0,0
btOnOff3.val=sys0
}
@@ -3493,7 +3497,7 @@ Timer tmSerial
bText3.pco=65535
bText3.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="button"||type3.txt=="input_sel")
{
@@ -3508,7 +3512,7 @@ Timer tmSerial
bText3.pco=1374
bText3.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="number")
{
@@ -3521,7 +3525,7 @@ Timer tmSerial
vis hSlider3,1
vis nNum3,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
//first value is current value
spstr bText3.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -3537,9 +3541,9 @@ Timer tmSerial
hSlider3.maxval=sys0
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis bUp4,0
@@ -3554,14 +3558,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon4.txt,"~",23
spstr strCommand.txt,tIcon4.txt,"~",34
vis tIcon4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
tIcon4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
if(type4.txt=="shutter")
@@ -3574,7 +3578,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26
spstr strCommand.txt,tId.txt,"~",37
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -3625,7 +3629,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",37
covx tTmp.txt,sys0,0,0
btOnOff4.val=sys0
}
@@ -3642,7 +3646,7 @@ Timer tmSerial
bText4.pco=65535
bText4.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="button"||type4.txt=="input_sel")
{
@@ -3657,7 +3661,7 @@ Timer tmSerial
bText4.pco=1374
bText4.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="number")
{
@@ -3670,7 +3674,7 @@ Timer tmSerial
vis hSlider4,1
vis nNum4,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
//first value is current value
spstr bText4.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -3686,9 +3690,9 @@ Timer tmSerial
hSlider4.maxval=sys0
}
// get Type
spstr strCommand.txt,type5.txt,"~",27
spstr strCommand.txt,type5.txt,"~",38
// get internal name
spstr strCommand.txt,entn5.txt,"~",28
spstr strCommand.txt,entn5.txt,"~",39
if(type5.txt=="delete"||type5.txt=="")
{
vis bUp5,0
@@ -3703,14 +3707,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon5.txt,"~",29
spstr strCommand.txt,tIcon5.txt,"~",40
vis tIcon5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",30
spstr strCommand.txt,tTmp.txt,"~",41
covx tTmp.txt,sys0,0,0
tIcon5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",31
spstr strCommand.txt,tEntity5.txt,"~",42
vis tEntity5,1
}
if(type5.txt=="shutter")
@@ -3723,7 +3727,7 @@ Timer tmSerial
vis hSlider5,0
vis nNum5,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",32
spstr strCommand.txt,tId.txt,"~",43
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -3774,7 +3778,7 @@ Timer tmSerial
vis hSlider5,0
vis nNum5,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",32
spstr strCommand.txt,tTmp.txt,"~",43
covx tTmp.txt,sys0,0,0
btOnOff5.val=sys0
}
@@ -3791,7 +3795,7 @@ Timer tmSerial
bText5.pco=65535
bText5.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText5.txt,"~",32
spstr strCommand.txt,bText5.txt,"~",43
}
if(type5.txt=="button"||type5.txt=="input_sel")
{
@@ -3806,7 +3810,7 @@ Timer tmSerial
bText5.pco=1374
bText5.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText5.txt,"~",32
spstr strCommand.txt,bText5.txt,"~",43
}
if(type5.txt=="number")
{
@@ -3819,7 +3823,7 @@ Timer tmSerial
vis hSlider5,1
vis nNum5,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText5.txt,"~",32
spstr strCommand.txt,bText5.txt,"~",43
//first value is current value
spstr bText5.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -3835,9 +3839,9 @@ Timer tmSerial
hSlider5.maxval=sys0
}
// get Type
spstr strCommand.txt,type6.txt,"~",33
spstr strCommand.txt,type6.txt,"~",44
// get internal name
spstr strCommand.txt,entn6.txt,"~",34
spstr strCommand.txt,entn6.txt,"~",45
if(type6.txt=="delete"||type6.txt=="")
{
vis bUp6,0
@@ -3852,14 +3856,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon6.txt,"~",35
spstr strCommand.txt,tIcon6.txt,"~",46
vis tIcon6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,sys0,0,0
tIcon6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",37
spstr strCommand.txt,tEntity6.txt,"~",48
vis tEntity6,1
}
if(type6.txt=="shutter")
@@ -3872,7 +3876,7 @@ Timer tmSerial
vis hSlider6,0
vis nNum6,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",38
spstr strCommand.txt,tId.txt,"~",49
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -3923,7 +3927,7 @@ Timer tmSerial
vis hSlider6,0
vis nNum6,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",38
spstr strCommand.txt,tTmp.txt,"~",49
covx tTmp.txt,sys0,0,0
btOnOff6.val=sys0
}
@@ -3940,7 +3944,7 @@ Timer tmSerial
bText6.pco=65535
bText6.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText6.txt,"~",38
spstr strCommand.txt,bText6.txt,"~",49
}
if(type6.txt=="button"||type6.txt=="input_sel")
{
@@ -3955,7 +3959,7 @@ Timer tmSerial
bText6.pco=1374
bText6.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText6.txt,"~",38
spstr strCommand.txt,bText6.txt,"~",49
}
if(type6.txt=="number")
{
@@ -3968,7 +3972,7 @@ Timer tmSerial
vis hSlider6,1
vis nNum6,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText6.txt,"~",38
spstr strCommand.txt,bText6.txt,"~",49
//first value is current value
spstr bText6.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -4052,6 +4056,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -96,12 +96,26 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 43
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 42
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 500
Max. Text Size: 700
Variable (string) tSend
Attributes
@@ -905,14 +919,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -959,14 +966,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1082,10 +1082,6 @@ Timer tmLP
{
page popupFan
}
if(tTmp.txt=="input_sel")
{
page popupInSel
}
Timer tmSerial
Attributes
@@ -1143,50 +1139,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -1194,20 +1184,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",5
spstr strCommand.txt,bEntity1.txt,"~",16
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -1215,20 +1205,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",11
spstr strCommand.txt,bEntity2.txt,"~",22
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -1236,20 +1226,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",17
spstr strCommand.txt,bEntity3.txt,"~",28
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -1257,20 +1247,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",23
spstr strCommand.txt,bEntity4.txt,"~",34
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",27
spstr strCommand.txt,type5.txt,"~",38
// get internal name
spstr strCommand.txt,entn5.txt,"~",28
spstr strCommand.txt,entn5.txt,"~",39
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -1278,20 +1268,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",29
spstr strCommand.txt,bEntity5.txt,"~",40
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",30
spstr strCommand.txt,tTmp.txt,"~",41
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",31
spstr strCommand.txt,tEntity5.txt,"~",42
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",33
spstr strCommand.txt,type6.txt,"~",44
// get internal name
spstr strCommand.txt,entn6.txt,"~",34
spstr strCommand.txt,entn6.txt,"~",45
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -1299,14 +1289,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",35
spstr strCommand.txt,bEntity6.txt,"~",46
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",37
spstr strCommand.txt,tEntity6.txt,"~",48
vis tEntity6,1
}
}
@@ -1378,6 +1368,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -0,0 +1,866 @@
Page cardLChart
Attributes
ID : 0
Scope : local
Dragging : 0
Disable release event after 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
vis p0,0
vis tSend,0
vis tInstruction,0
vis tTmp,0
vis tId,0
vis bPrev,0
vis bNext,0
cardLChart.bco=defaultBcoColor
//vis x0,0
//x0.bco=defaultBcoColor
//x0.borderc=defaultBcoColor
for(sys0=0;sys0<32;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==6371)
{
b[sys0].pic=1
b[sys0].pic2=2
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
Variable (string) entn
Attributes
ID : 6
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 32
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 31
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
Scope : local
Text :
Max. Text Size: 512
Variable (string) strTmp
Attributes
ID : 18
Scope : local
Text :
Max. Text Size: 200
Variable (string) tId
Attributes
ID : 14
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 15
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 9
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Attributes
ID : 13
Scope : local
Text :
Max. Text Size: 400
Variable (int32) vNValues
Attributes
ID : 17
Scope: local
Value: 0
Variable (int32) vaBottom
Attributes
ID : 22
Scope: local
Value: 0
Variable (int32) vaColorD
Attributes
ID : 25
Scope: local
Value: 0
Variable (int32) vaColorL
Attributes
ID : 24
Scope: local
Value: 0
Variable (int32) vaLeft
Attributes
ID : 23
Scope: local
Value: 0
Variable (int32) vaMaxX
Attributes
ID : 27
Scope: local
Value: 2147483648
Variable (int32) vaMaxY
Attributes
ID : 26
Scope: local
Value: 0
Variable (int32) vaMinX
Attributes
ID : 29
Scope: local
Value: 2147483647
Variable (int32) vaMinY
Attributes
ID : 30
Scope: local
Value: 2147483647
Variable (int32) vaValue
Attributes
ID : 21
Scope: local
Value: 0
Variable (int32) vaXUnit
Attributes
ID : 20
Scope: local
Value: 0
Variable (int32) vaYUnit
Attributes
ID : 28
Scope: local
Value: 0
Text tHeading
Attributes
ID : 16
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 66
y coordinate : 26
Width : 184
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 :
Max. Text Size : 40
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0
Attributes
ID : 1
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 0
Width : 319
Height : 479
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 0
Button bNext
Attributes
ID : 2
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 262
y coordinate : 16
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 3
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 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,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bPrev
Attributes
ID : 3
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 9
y coordinate : 16
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 3
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 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,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Hotspot m0
Attributes
ID : 19
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 90
Width : 280
Height : 370
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
//fill m0.x,m0.y,m0.w,m0.h,RED
Hotspot mSwipeNext
Attributes
ID : 10
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 313
y coordinate : 5
Width : 7
Height : 475
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bNext,1
Hotspot mSwipePrev
Attributes
ID : 12
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 9
Height : 310
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bPrev,1
Hotspot mSwipeUp
Attributes
ID : 11
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 12
y coordinate : 0
Width : 300
Height : 9
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bPrev,1
Timer tmSerial
Attributes
ID : 4
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
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
}
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
}
//draw m0.x,m0.y,m0.x+m0.w,m0.y+m0.h,RED
// extract color
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
vaColorD.val=sys0*8/10<<11 // store and shift
sys0=vaColorL.val>>5%64 // green
vaColorD.val=sys0*8/10<<5+vaColorD.val // store and shift
sys0=vaColorL.val%32
vaColorD.val=sys0*8/10+vaColorD.val // store and add
//
// detect nValues and maxX/Y
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
while(sya0>0)
{
//tHeading.txt="last value="+tTmp.txt
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxX.val)
{
vaMaxX.val=sya1
}
if(sya1<vaMinX.val)
{
vaMinX.val=sya1
}
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxY.val)
{
vaMaxY.val=sya1
}
if(sya1<vaMinY.val)
{
vaMinY.val=sya1
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
}
// find first given y axis labels
spstr strCommand.txt,tTmp.txt,"~",16 // labels in tTmp.txt
sys0=0 // <= result (here: first label value)
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>vaMinY.val)
{
sys0--
if(sys0>=0)
{
// found a y-tick => take is at min...
spstr tTmp.txt,strTmp.txt,":",sys0
covx strTmp.txt,vaMinY.val,0,0
}
sya0=0
}else
{
// next
sys0++
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
}
}
sys1=sys0+1 // last label
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>=vaMaxY.val)
{
vaMaxY.val=sya1
sya0=0
}else
{
// next
sys1++
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
}
}
// get first given x axis tick
spstr strCommand.txt,strTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
covx strTmp.txt,vaMinX.val,0,0
// covx vaMinX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt+":"
// covx vaMaxX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt
// calculate unit width
vaBottom.val=m0.y+m0.h-24
vaLeft.val=m0.x+25+40*100
sya1=vaMaxX.val-vaMinX.val
vaXUnit.val=m0.w-25-40*100/sya1
sya1=vaMaxY.val-vaMinY.val
vaYUnit.val=m0.h-24*100/sya1
// draw labels
// labels still in tTmp.txt
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+5,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
if(sys0>0)
{
sys0--
}
for(sya0=sys0;sya0<=sys1;sya0++)
{
spstr tTmp.txt,strTmp.txt,":",sya0
covx strTmp.txt,sya1,0,0
sys2=sya1%10
sya1/=10
if(sya1>0)
{
covx sya1,strTmp.txt,0,0
}else
{
strTmp.txt=""
}
if(sys2!=0)
{
covx sys2,tId.txt,0,0
strTmp.txt=strTmp.txt+"."+tId.txt
}
sya1*=10+sys2
sya1-=vaMinY.val
xstr m0.x+28,-1*vaYUnit.val*sya1/100+vaBottom.val-10,20,20,0,defaultFontColor,RED,2,1,3,strTmp.txt
line m0.x+25+40-5,-1*vaYUnit.val*sya1/100+vaBottom.val,m0.x+25+40-15,-1*vaYUnit.val*sya1/100+vaBottom.val,14823
}
// y achis label
spstr strCommand.txt,tTmp.txt,"~",15
strlen tTmp.txt,sys1
sya1=sys1*11+m0.h-48/2
for(sys0=0;sys0<sys1;sys0++)
{
substr tTmp.txt,strTmp.txt,sys0,1
xstr m0.x,sys0*-11+m0.y+sya1,24,20,6,defaultFontColor,RED,2,1,3,strTmp.txt
}
//
// x axis tick/labels
// draw bottom line
line m0.x+25+40,vaBottom.val,m0.x+m0.w,vaBottom.val,14823
spstr strCommand.txt,tTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
//
sys1=0
// extract first tick ~> sya1 contains fist ticks value
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
// loop until current ticks label is smaller than the maximum value observed
while(sya0>0&&sya1<vaMaxX.val)
{
sys2=sya1-vaMinX.val*vaXUnit.val/100+m0.x+25+40
// draw tick line
line sys2,vaBottom.val-5,sys2,vaBottom.val+5,14823
// check for label
spstr strTmp.txt,strTmp.txt,"^",1
strlen strTmp.txt,sya0
if(sya0>0)
{
// label found ~> draw
xstr -6*sya0+sys2,vaBottom.val+2,sya0*12,22,0,defaultFontColor,defaultBcoColor,1,1,3,strTmp.txt
}
// next ~> sya1 contains next ticks label
sys1++
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
}
//
// draw line segments...
sys1=-2147483648
sys2=-2147483648
for(sys0=0;sys0<vNValues.val;sys0++)
{
// extract x:y from "~" separated payload
spstr strCommand.txt,tTmp.txt,"~",sys0+18
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya0,0,0
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
sya0=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
sya1=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
// draw circle
// cir sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,3,vaColorL.val
if(sys1>0&&sys2>0)
{
// this is not the first point as the last one has been stored in (sys1,sys2)
// ~> connect with a line...
//line sys1,sys2,sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,vaColorD.val
line sys1,sys2,sya0,sya1,vaColorD.val
//line sys1-1,sys2-1,sya0-1,sya1-1,vaColorL.val
//line sys1+1,sys2+1,sya0+1,sya1+1,vaColorL.val
}
// store current point to (sys1,sys2)
//sys1=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
//sys2=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
sys1=sya0
sys2=sya1
}
}
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")
{
sleepValue=0
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// 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&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
}
TouchCap tc0
Attributes
ID : 8
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -37,7 +37,7 @@ Page cardMedia
vis bEntity5,0
vis bEntity6,0
cardMedia.bco=defaultBcoColor
for(sys0=0;sys0<34;sys0++)
for(sys0=0;sys0<54;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -101,6 +101,20 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 58
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 57
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
@@ -1200,14 +1214,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1254,14 +1261,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1419,72 +1419,66 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//title
spstr strCommand.txt,tTitle.txt,"~",4
spstr strCommand.txt,tTitle.txt,"~",15
//title farbe
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt!="")
{
covx tTmp.txt,tTitle.pco,0,0
}
//author
spstr strCommand.txt,tAuthor.txt,"~",6
spstr strCommand.txt,tAuthor.txt,"~",17
//author farbe
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
if(tTmp.txt!="")
{
covx tTmp.txt,tAuthor.pco,0,0
}
//volume
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
hVolume.val=sys0
//icon
spstr strCommand.txt,tPlayPause.txt,"~",9
spstr strCommand.txt,tPlayPause.txt,"~",20
// on off button
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt=="disable")
{
vis t5,0
@@ -1494,7 +1488,7 @@ Timer tmSerial
covx tTmp.txt,t5.pco,0,0
}
// shuffel btn
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt=="disable")
{
vis tShuffle,0
@@ -1504,9 +1498,9 @@ Timer tmSerial
tShuffle.txt=tTmp.txt
}
// get Type
spstr strCommand.txt,type1.txt,"~",12
spstr strCommand.txt,type1.txt,"~",23
// get internal name
spstr strCommand.txt,entn1.txt,"~",13
spstr strCommand.txt,entn1.txt,"~",24
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -1514,20 +1508,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",14
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",16
spstr strCommand.txt,tEntity1.txt,"~",27
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",18
spstr strCommand.txt,type2.txt,"~",29
// get internal name
spstr strCommand.txt,entn2.txt,"~",19
spstr strCommand.txt,entn2.txt,"~",30
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -1535,20 +1529,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",20
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",21
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",22
spstr strCommand.txt,tEntity2.txt,"~",33
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",24
spstr strCommand.txt,type3.txt,"~",35
// get internal name
spstr strCommand.txt,entn3.txt,"~",25
spstr strCommand.txt,entn3.txt,"~",36
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -1556,20 +1550,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",26
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",27
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",28
spstr strCommand.txt,tEntity3.txt,"~",39
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",30
spstr strCommand.txt,type4.txt,"~",41
// get internal name
spstr strCommand.txt,entn4.txt,"~",31
spstr strCommand.txt,entn4.txt,"~",42
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -1577,20 +1571,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",32
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",33
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",34
spstr strCommand.txt,tEntity4.txt,"~",45
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",36
spstr strCommand.txt,type5.txt,"~",47
// get internal name
spstr strCommand.txt,entn5.txt,"~",37
spstr strCommand.txt,entn5.txt,"~",48
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -1598,20 +1592,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",38
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",39
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",40
spstr strCommand.txt,tEntity5.txt,"~",51
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",42
spstr strCommand.txt,type6.txt,"~",53
// get internal name
spstr strCommand.txt,entn6.txt,"~",43
spstr strCommand.txt,entn6.txt,"~",54
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -1619,14 +1613,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",44
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",45
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",46
spstr strCommand.txt,tEntity6.txt,"~",57
vis tEntity6,1
}
}
@@ -1694,6 +1688,14 @@ Timer tmSerial
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -47,7 +47,7 @@ Page cardPower
vis t4Icon,0
vis t5Icon,0
cardPower.bco=defaultBcoColor
for(sys0=0;sys0<43;sys0++)
for(sys0=0;sys0<48;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -65,6 +65,20 @@ Page cardPower
}
}
Variable (string) nent1
Attributes
ID : 44
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 43
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
@@ -578,10 +592,10 @@ Text tHome
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 277
y coordinate : 237
Width : 40
Height : 60
x coordinate : 179
y coordinate : 239
Width : 61
Height : 55
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -595,7 +609,97 @@ Text tHome
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHome2
Attributes
ID : 45
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 239
y coordinate : 239
Width : 35
Height : 55
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHomeO
Attributes
ID : 46
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 48
y coordinate : 240
Width : 61
Height : 55
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHomeO2
Attributes
ID : 47
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 108
y coordinate : 240
Width : 35
Height : 55
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
@@ -638,8 +742,8 @@ Slider h0
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h1
@@ -663,8 +767,8 @@ Slider h1
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h2
@@ -688,8 +792,8 @@ Slider h2
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h3
@@ -713,8 +817,8 @@ Slider h3
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h4
@@ -738,8 +842,8 @@ Slider h4
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h5
@@ -763,8 +867,8 @@ Slider h5
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Button bNext
@@ -801,14 +905,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardPower,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -855,14 +952,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -944,66 +1034,84 @@ Timer tm0
Events
Timer Event
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
if(t0Speed.val!=0)
{
h0.val=h0.minval
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
{
h0.val=h0.minval
}
if(sys0<h0.minval)
{
h0.val=h0.maxval
}
h0.val+=t0Speed.val
}
if(sys0<h0.minval)
if(t1Speed.val!=0)
{
h0.val=h0.maxval
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
{
h1.val=h1.minval
}
if(sys0<h1.minval)
{
h1.val=h1.maxval
}
h1.val+=t1Speed.val
}
h0.val+=t0Speed.val
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
if(t2Speed.val!=0)
{
h1.val=h1.minval
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
{
h2.val=h2.minval
}
if(sys0<h2.minval)
{
h2.val=h2.maxval
}
h2.val+=t2Speed.val
}
if(sys0<h1.minval)
if(t3Speed.val!=0)
{
h1.val=h1.maxval
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
}
h1.val+=t1Speed.val
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
if(t4Speed.val!=0)
{
h2.val=h2.minval
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
}
if(sys0<h2.minval)
if(t5Speed.val!=0)
{
h2.val=h2.maxval
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
}
h2.val+=t2Speed.val
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
Timer tmSerial
Attributes
@@ -1061,63 +1169,75 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// icon color home
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t1.pco,0,0
// icon home
spstr strCommand.txt,t1.txt,"~",4
spstr strCommand.txt,t1.txt,"~",15
// speed 16 ignored
// text home
spstr strCommand.txt,tHome.txt,"~",5
spstr strCommand.txt,tHome.txt,"~",17
spstr tHome.txt,tHome2.txt," ",1
spstr tHome.txt,tHome.txt," ",0
// icon color 18 ignored
// icon 19 ignored
// speed 20 ignored
// text home
spstr strCommand.txt,tHomeO.txt,"~",21
spstr tHomeO.txt,tHomeO2.txt," ",1
spstr tHomeO.txt,tHomeO.txt," ",0
// iconColor
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,t0Icon.pco,0,0
// icon
spstr strCommand.txt,t0Icon.txt,"~",7
spstr strCommand.txt,t0Icon.txt,"~",23
// speed
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,t0Speed.val,0,0
if(t0Speed.val>120)
{
t0Speed.val=120
}
if(t0Speed.val<-120)
{
t0Speed.val=-120
}
// lower text
spstr strCommand.txt,t0u.txt,"~",9
spstr strCommand.txt,t0u.txt,"~",25
if(t0Icon.txt!="")
{
vis t0Icon,1
@@ -1130,15 +1250,23 @@ Timer tmSerial
vis h0,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,t1Icon.pco,0,0
// icon
spstr strCommand.txt,t1Icon.txt,"~",11
spstr strCommand.txt,t1Icon.txt,"~",27
// speed
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,t1Speed.val,0,0
if(t1Speed.val>120)
{
t1Speed.val=120
}
if(t1Speed.val<-120)
{
t1Speed.val=-120
}
// lower text
spstr strCommand.txt,t1u.txt,"~",13
spstr strCommand.txt,t1u.txt,"~",29
if(t1Icon.txt!="")
{
vis t1Icon,1
@@ -1151,15 +1279,23 @@ Timer tmSerial
vis h1,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",30
covx tTmp.txt,t2Icon.pco,0,0
// icon
spstr strCommand.txt,t2Icon.txt,"~",15
spstr strCommand.txt,t2Icon.txt,"~",31
// speed
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,t2Speed.val,0,0
if(t2Speed.val>120)
{
t2Speed.val=120
}
if(t2Speed.val<-120)
{
t2Speed.val=-120
}
// lower text
spstr strCommand.txt,t2u.txt,"~",17
spstr strCommand.txt,t2u.txt,"~",33
if(t2Icon.txt!="")
{
vis t2Icon,1
@@ -1172,15 +1308,23 @@ Timer tmSerial
vis h2,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,t3Icon.pco,0,0
// icon
spstr strCommand.txt,t3Icon.txt,"~",19
spstr strCommand.txt,t3Icon.txt,"~",35
// speed
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",36
covx tTmp.txt,t3Speed.val,0,0
if(t3Speed.val>120)
{
t3Speed.val=120
}
if(t3Speed.val<-120)
{
t3Speed.val=-120
}
// lower text
spstr strCommand.txt,t3u.txt,"~",21
spstr strCommand.txt,t3u.txt,"~",37
if(t3Icon.txt!="")
{
vis t3Icon,1
@@ -1193,15 +1337,23 @@ Timer tmSerial
vis h3,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",22
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,t4Icon.pco,0,0
// icon
spstr strCommand.txt,t4Icon.txt,"~",23
spstr strCommand.txt,t4Icon.txt,"~",39
// speed
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",40
covx tTmp.txt,t4Speed.val,0,0
if(t4Speed.val>120)
{
t4Speed.val=120
}
if(t4Speed.val<-120)
{
t4Speed.val=-120
}
// lower text
spstr strCommand.txt,t4u.txt,"~",25
spstr strCommand.txt,t4u.txt,"~",41
if(t4Icon.txt!="")
{
vis t4Icon,1
@@ -1214,15 +1366,23 @@ Timer tmSerial
vis h4,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",42
covx tTmp.txt,t5Icon.pco,0,0
// icon
spstr strCommand.txt,t5Icon.txt,"~",27
spstr strCommand.txt,t5Icon.txt,"~",43
// speed
spstr strCommand.txt,tTmp.txt,"~",28
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,t5Speed.val,0,0
if(t5Speed.val>120)
{
t5Speed.val=120
}
if(t5Speed.val<-120)
{
t5Speed.val=-120
}
// lower text
spstr strCommand.txt,t5u.txt,"~",29
spstr strCommand.txt,t5u.txt,"~",45
if(t5Icon.txt!="")
{
vis t5Icon,1
@@ -1303,6 +1463,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -81,12 +81,26 @@ Variable (string) entn2
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 33
Scope : local
Text :
Max. Text Size: 50
Variable (string) nent2
Attributes
ID : 32
Scope : local
Text :
Max. Text Size: 50
Variable (string) strCommand
Attributes
ID : 6
Scope : local
Text :
Max. Text Size: 275
Max. Text Size: 400
Variable (string) tId
Attributes
@@ -338,14 +352,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardQR,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -392,14 +399,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -745,52 +745,46 @@ Timer tmSerial
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
//tHeading
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//text qrcode
spstr strCommand.txt,vaQR.txt,"~",3
spstr strCommand.txt,vaQR.txt,"~",14
// get Type
spstr strCommand.txt,type1.txt,"~",4
spstr strCommand.txt,type1.txt,"~",15
// get internal name
spstr strCommand.txt,entn1.txt,"~",5
spstr strCommand.txt,entn1.txt,"~",16
if(type1.txt=="delete"||type1.txt=="")
{
vis btOnOff1,0
@@ -800,14 +794,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",6
spstr strCommand.txt,tIcon1.txt,"~",17
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",8
spstr strCommand.txt,tEntity1.txt,"~",19
vis tEntity1,1
}
if(type1.txt=="light")
@@ -815,7 +809,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -824,7 +818,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -836,7 +830,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
if(type1.txt=="button")
{
@@ -846,12 +840,12 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
// get Type
spstr strCommand.txt,type2.txt,"~",10
spstr strCommand.txt,type2.txt,"~",21
// get internal name
spstr strCommand.txt,entn2.txt,"~",11
spstr strCommand.txt,entn2.txt,"~",22
if(type2.txt=="delete"||type2.txt=="")
{
vis btOnOff2,0
@@ -861,14 +855,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",12
spstr strCommand.txt,tIcon2.txt,"~",23
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",14
spstr strCommand.txt,tEntity2.txt,"~",25
vis tEntity2,1
}
if(type2.txt=="light")
@@ -876,7 +870,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -885,7 +879,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -897,7 +891,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="button")
{
@@ -907,17 +901,17 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
qrcode m1.x,m1.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
qrcode m0.x,m0.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}
if(tInstruction.txt=="time")
@@ -1026,6 +1020,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -72,12 +72,26 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 56
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 55
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 250
Max. Text Size: 750
Variable (string) tId
Attributes
@@ -634,14 +648,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -688,14 +695,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1557,64 +1557,58 @@ Timer tmSerial
{
//heading
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//currentTemp
spstr strCommand.txt,tCurTemp.txt,"~",4
spstr strCommand.txt,tCurTemp.txt,"~",15
//dstTemp
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,xTempDest1.val,0,0
xTempDest.val=xTempDest1.val
//status
spstr strCommand.txt,tStatus.txt,"~",6
spstr strCommand.txt,tStatus.txt,"~",17
//minTemp
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,xTempMin1.val,0,0
//maxTemp
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,xTempMax1.val,0,0
//tempStep
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,xTempStep1.val,0,0
// disable all buttons
vis bt0,0
@@ -1626,137 +1620,137 @@ Timer tmSerial
vis bt6,0
vis bt7,0
//bt0
spstr strCommand.txt,bt0.txt,"~",10
spstr strCommand.txt,bt0.txt,"~",21
if(bt0.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,bt0.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,bt0.val,0,0
// save action
spstr strCommand.txt,va0.txt,"~",13
spstr strCommand.txt,va0.txt,"~",24
//enable
vis bt0,1
}
//bt1
spstr strCommand.txt,bt1.txt,"~",14
spstr strCommand.txt,bt1.txt,"~",25
if(bt1.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,bt1.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",27
covx tTmp.txt,bt1.val,0,0
// save action
spstr strCommand.txt,va1.txt,"~",17
spstr strCommand.txt,va1.txt,"~",28
//enable
vis bt1,1
}
//bt2
spstr strCommand.txt,bt2.txt,"~",18
spstr strCommand.txt,bt2.txt,"~",29
if(bt2.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",30
covx tTmp.txt,bt2.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",31
covx tTmp.txt,bt2.val,0,0
// save action
spstr strCommand.txt,va2.txt,"~",21
spstr strCommand.txt,va2.txt,"~",32
//enable
vis bt2,1
}
//bt3
spstr strCommand.txt,bt3.txt,"~",22
spstr strCommand.txt,bt3.txt,"~",33
if(bt3.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",23
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,bt3.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,bt3.val,0,0
// save action
spstr strCommand.txt,va3.txt,"~",25
spstr strCommand.txt,va3.txt,"~",36
//enable
vis bt3,1
}
//bt4
spstr strCommand.txt,bt4.txt,"~",26
spstr strCommand.txt,bt4.txt,"~",37
if(bt4.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",27
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,bt4.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",28
spstr strCommand.txt,tTmp.txt,"~",39
covx tTmp.txt,bt4.val,0,0
// save action
spstr strCommand.txt,va4.txt,"~",29
spstr strCommand.txt,va4.txt,"~",40
//enable
vis bt4,1
}
//bt5
spstr strCommand.txt,bt5.txt,"~",30
spstr strCommand.txt,bt5.txt,"~",41
if(bt5.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",31
spstr strCommand.txt,tTmp.txt,"~",42
covx tTmp.txt,bt5.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",32
spstr strCommand.txt,tTmp.txt,"~",43
covx tTmp.txt,bt5.val,0,0
// save action
spstr strCommand.txt,va5.txt,"~",33
spstr strCommand.txt,va5.txt,"~",44
//enable
vis bt5,1
}
//bt6
spstr strCommand.txt,bt6.txt,"~",34
spstr strCommand.txt,bt6.txt,"~",45
if(bt6.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",35
spstr strCommand.txt,tTmp.txt,"~",46
covx tTmp.txt,bt6.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,bt6.val,0,0
// save action
spstr strCommand.txt,va6.txt,"~",37
spstr strCommand.txt,va6.txt,"~",48
//enable
vis bt6,1
}
//bt7
spstr strCommand.txt,bt7.txt,"~",38
spstr strCommand.txt,bt7.txt,"~",49
if(bt7.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",39
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,bt7.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",40
spstr strCommand.txt,tTmp.txt,"~",51
covx tTmp.txt,bt7.val,0,0
// save action
spstr strCommand.txt,va7.txt,"~",41
spstr strCommand.txt,va7.txt,"~",52
//enable
vis bt7,1
}
//Text tCurTempLbl
spstr strCommand.txt,tCurTempLbl.txt,"~",42
spstr strCommand.txt,tCurTempLbl.txt,"~",53
//Text tStateLbl
spstr strCommand.txt,tStateLbl.txt,"~",43
spstr strCommand.txt,tStateLbl.txt,"~",54
//Text tALbl
//spstr strCommand.txt,tALbl.txt,"~",44
//spstr strCommand.txt,tALbl.txt,"~",55
//Text tCF
spstr strCommand.txt,tCF.txt,"~",45
spstr strCommand.txt,tCF.txt,"~",56
tCF1.txt=tCF.txt
tCF2.txt=tCF.txt
//Second Temperature
spstr strCommand.txt,tTmp.txt,"~",46
spstr strCommand.txt,tTmp.txt,"~",57
if(tTmp.txt!="")
{
covx tTmp.txt,xTempDest2.val,0,0
@@ -1774,8 +1768,8 @@ Timer tmSerial
vis tCF2,1
}
//Show btDetail
spstr strCommand.txt,tTmp.txt,"~",47
if(tTmp.txt=="1")
spstr strCommand.txt,tTmp.txt,"~",58
if(tTmp.txt!="1")
{
vis btDetail,1
}else
@@ -1851,6 +1845,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -22,18 +22,22 @@ popupFan
27 Component(s)
351 Line(s) of event code
204 Unique line(s) of event code
cardChart
31 Component(s)
452 Line(s) of event code
296 Unique line(s) of event code
cardLChart
33 Component(s)
394 Line(s) of event code
262 Unique line(s) of event code
pageStartup
19 Component(s)
181 Line(s) of event code
129 Unique line(s) of event code
screensaver
45 Component(s)
410 Line(s) of event code
298 Unique line(s) of event code
185 Line(s) of event code
131 Unique line(s) of event code
cardQR
34 Component(s)
402 Line(s) of event code
234 Unique line(s) of event code
cardGrid
44 Component(s)
515 Line(s) of event code
291 Unique line(s) of event code
popupShutter
25 Component(s)
398 Line(s) of event code
@@ -42,45 +46,45 @@ popupThermo
44 Component(s)
519 Line(s) of event code
274 Unique line(s) of event code
cardPower
43 Component(s)
439 Line(s) of event code
299 Unique line(s) of event code
cardGrid
42 Component(s)
542 Line(s) of event code
301 Unique line(s) of event code
cardMedia
cardThermo
57 Component(s)
660 Line(s) of event code
325 Unique line(s) of event code
cardQR
32 Component(s)
425 Line(s) of event code
244 Unique line(s) of event code
532 Line(s) of event code
315 Unique line(s) of event code
cardMedia
59 Component(s)
641 Line(s) of event code
318 Unique line(s) of event code
cardChart
33 Component(s)
429 Line(s) of event code
292 Unique line(s) of event code
screensaver
46 Component(s)
418 Line(s) of event code
299 Unique line(s) of event code
popupTimer
42 Component(s)
512 Line(s) of event code
255 Unique line(s) of event code
cardThermo
55 Component(s)
555 Line(s) of event code
322 Unique line(s) of event code
cardAlarm
43 Component(s)
492 Line(s) of event code
269 Unique line(s) of event code
popupInSel
34 Component(s)
617 Line(s) of event code
295 Unique line(s) of event code
cardAlarm
40 Component(s)
442 Line(s) of event code
262 Unique line(s) of event code
cardPower
48 Component(s)
487 Line(s) of event code
326 Unique line(s) of event code
cardEntities
89 Component(s)
1636 Line(s) of event code
91 Component(s)
1622 Line(s) of event code
701 Unique line(s) of event code
Total
19 Page(s)
693 Component(s)
8830 Line(s) of event code
2253 Unique line(s) of event code
20 Page(s)
747 Component(s)
9205 Line(s) of event code
2383 Unique line(s) of event code

View File

@@ -373,7 +373,7 @@ Text tTmp
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
@@ -402,7 +402,7 @@ Text tVersion
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text : 46
Text : 49
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
@@ -659,6 +659,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -155,9 +155,9 @@ Text t1
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
x coordinate : 60
y coordinate : 374
Width : 240
Width : 251
Height : 30
Effect : load
Effect Priority : 0
@@ -186,7 +186,7 @@ Text t2
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 415
y coordinate : 374
Width : 45
Height : 30
Effect : load
@@ -216,7 +216,7 @@ Text t3
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 307
y coordinate : 267
Width : 45
Height : 30
Effect : load
@@ -245,9 +245,9 @@ Text t4
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 9
y coordinate : 267
Width : 242
x coordinate : 60
y coordinate : 266
Width : 250
Height : 30
Effect : load
Effect Priority : 0
@@ -336,7 +336,7 @@ Text tId
Send Component ID : disabled
Opacity : 127
x coordinate : 100
y coordinate : 417
y coordinate : 450
Width : 100
Height : 30
Effect : load
@@ -366,7 +366,7 @@ Text tInstruction
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 417
y coordinate : 450
Width : 100
Height : 30
Effect : load
@@ -396,7 +396,7 @@ Text tTmp
Send Component ID : disabled
Opacity : 127
x coordinate : 282
y coordinate : 413
y coordinate : 446
Width : 34
Height : 30
Effect : load
@@ -487,9 +487,9 @@ Slider hBrightness
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 61
x coordinate : 12
y coordinate : 409
Width : 250
Width : 300
Height : 44
Effect : load
Effect Priority : 0
@@ -532,9 +532,9 @@ Slider hTempSlider
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 61
x coordinate : 12
y coordinate : 304
Width : 250
Width : 300
Height : 44
Effect : load
Effect Priority : 0

View File

@@ -301,9 +301,9 @@ Slider hPosition
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 12
x coordinate : 11
y coordinate : 213
Width : 250
Width : 300
Height : 44
Effect : load
Effect Priority : 0
@@ -345,9 +345,9 @@ Slider hTilt
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 12
x coordinate : 11
y coordinate : 365
Width : 250
Width : 300
Height : 44
Effect : load
Effect Priority : 0

View File

@@ -46,7 +46,14 @@ Variable (string) strCommand
ID : 4
Scope : local
Text :
Max. Text Size: 200
Max. Text Size: 400
Variable (string) strTmp
Attributes
ID : 45
Scope : local
Text :
Max. Text Size: 2
Variable (string) tId
Attributes
@@ -57,21 +64,21 @@ Variable (string) tId
Variable (string) tInstruction
Attributes
ID : 30
ID : 28
Scope : local
Text :
Max. Text Size: 50
Variable (string) tSend
Attributes
ID : 34
ID : 30
Scope : local
Text :
Max. Text Size: 50
Variable (string) tTmp
Attributes
ID : 31
ID : 29
Scope : local
Text :
Max. Text Size: 50
@@ -84,37 +91,37 @@ Variable (int32) vaTap
Variable (int32) xc1
Attributes
ID : 43
ID : 39
Scope: local
Value: 0
Variable (int32) xc2
Attributes
ID : 41
ID : 37
Scope: local
Value: 0
Variable (int32) xcR
Attributes
ID : 38
ID : 34
Scope: local
Value: 0
Variable (int32) yc1
Attributes
ID : 42
ID : 38
Scope: local
Value: 0
Variable (int32) yc2
Attributes
ID : 40
ID : 36
Scope: local
Value: 0
Variable (int32) ycR
Attributes
ID : 39
ID : 35
Scope: local
Value: 0
@@ -196,7 +203,7 @@ Text tDate
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Font ID : 2
Back. Color : 0
Font Color : 65535
Horizontal Alignment : center
@@ -570,7 +577,7 @@ Text tForecast4Val
Text tIcon1
Attributes
ID : 35
ID : 31
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -600,7 +607,7 @@ Text tIcon1
Text tIcon2
Attributes
ID : 36
ID : 32
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -628,66 +635,6 @@ Text tIcon2
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMR
Attributes
ID : 29
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 224
y coordinate : 329
Width : 61
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 65535
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMRIcon
Attributes
ID : 28
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 182
y coordinate : 324
Width : 40
Height : 34
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 1
Back. Color : 0
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMainIcon
Attributes
ID : 7
@@ -726,10 +673,40 @@ Text tMainIconAlt
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 44
y coordinate : 280
Width : 100
Height : 65
x coordinate : 58
y coordinate : 257
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 4
Back. Color : 0
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMainIconAlt2
Attributes
ID : 42
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 214
y coordinate : 257
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -786,10 +763,40 @@ Text tMainTextAlt
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 184
y coordinate : 269
x coordinate : 30
y coordinate : 314
Width : 105
Height : 41
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 3
Back. Color : 0
Font Color : 65535
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tMainTextAlt2
Attributes
ID : 41
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 187
y coordinate : 314
Width : 105
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -810,7 +817,7 @@ Text tMainTextAlt
Text tNotifyHead
Attributes
ID : 32
ID : 44
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -840,7 +847,7 @@ Text tNotifyHead
Text tNotifyText
Attributes
ID : 33
ID : 43
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -863,7 +870,7 @@ Text tNotifyText
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 80
Max. Text Size : 120
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
@@ -900,7 +907,7 @@ Text tTime
Text tTimeAdd
Attributes
ID : 37
ID : 33
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -947,7 +954,7 @@ Picture p0
Timer tm0
Attributes
ID : 44
ID : 40
Scope : local
Period (ms): 50
Enabled : yes
@@ -1014,7 +1021,6 @@ Timer tmSerial
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="wake")
{
//dim=100
click tc0,1
}
if(tInstruction.txt=="dimmode")
@@ -1041,6 +1047,7 @@ Timer tmSerial
}
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
@@ -1059,62 +1066,92 @@ Timer tmSerial
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
tDate.txt=pageIcons.vaDate.txt
}
if(tInstruction.txt=="timeout")
if(tInstruction.txt=="statusUpdate")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
//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=="")
{
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMRIcon,0
vis tMR,0
//tMainIcon
spstr strCommand.txt,tMainIcon.txt,"~",1
spstr strCommand.txt,tMainIcon.txt,"~",3
tMainIconAlt.txt=tMainIcon.txt
//tMainIcon Color
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
//tMainText
spstr strCommand.txt,tMainText.txt,"~",2
spstr strCommand.txt,tMainText.txt,"~",6
tMainTextAlt.txt=tMainText.txt
//tForecast1
spstr strCommand.txt,tForecast1.txt,"~",3
spstr strCommand.txt,tForecast1.txt,"~",11
//tF1Icon
spstr strCommand.txt,tF1Icon.txt,"~",4
spstr strCommand.txt,tF1Icon.txt,"~",9
//tF1Icon Color
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tF1Icon.pco,0,0
//tForecast1Val
spstr strCommand.txt,tForecast1Val.txt,"~",5
spstr strCommand.txt,tForecast1Val.txt,"~",12
//tForecast2
spstr strCommand.txt,tForecast2.txt,"~",6
spstr strCommand.txt,tForecast2.txt,"~",17
//tF2Icon
spstr strCommand.txt,tF2Icon.txt,"~",7
spstr strCommand.txt,tF2Icon.txt,"~",15
//tF2Icon Color
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,tF2Icon.pco,0,0
//tForecast2Val
spstr strCommand.txt,tForecast2Val.txt,"~",8
spstr strCommand.txt,tForecast2Val.txt,"~",18
//tForecast3
spstr strCommand.txt,tForecast3.txt,"~",9
spstr strCommand.txt,tForecast3.txt,"~",23
//tF3Icon
spstr strCommand.txt,tF3Icon.txt,"~",10
spstr strCommand.txt,tF3Icon.txt,"~",21
//tF3Icon Color
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tF3Icon.pco,0,0
//tForecast3Val
spstr strCommand.txt,tForecast3Val.txt,"~",11
spstr strCommand.txt,tForecast3Val.txt,"~",24
//tForecast4
spstr strCommand.txt,tForecast4.txt,"~",12
spstr strCommand.txt,tForecast4.txt,"~",29
//tF4Icon
spstr strCommand.txt,tF4Icon.txt,"~",13
spstr strCommand.txt,tF4Icon.txt,"~",27
//tF4Icon Color
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,tF4Icon.pco,0,0
//tForecast4Val
spstr strCommand.txt,tForecast4Val.txt,"~",14
spstr strCommand.txt,tForecast4Val.txt,"~",30
//alternative layout
//tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!=""&&p0.w!=320)
//tMainTextAlt2
spstr strCommand.txt,tMainTextAlt2.txt,"~",36
//tMainIconAlt2
spstr strCommand.txt,tMainIconAlt2.txt,"~",33
//tMainIconAlt2 Color
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,tMainIconAlt2.pco,0,0
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
//value for tMRIcon, activate alternative layout
vis tMainIcon,0
vis tMainText,0
vis tMainTextAlt,1
vis tMainIconAlt,1
vis tMRIcon,1
vis tMR,1
vis tMainTextAlt2,1
vis tMainIconAlt2,1
vis tForecast1,0
vis tF1Icon,0
vis tForecast1Val,0
@@ -1128,26 +1165,17 @@ Timer tmSerial
tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt
}
//tMR
spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt!="")
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
}else
{
tIcon1.font=3
}
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt!="")
{
tIcon2.font=3
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMainTextAlt2,0
vis tMainIconAlt2,0
}
}
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
@@ -1163,9 +1191,8 @@ Timer tmSerial
tMainText.bco=tTime.bco
tMainIconAlt.bco=tTime.bco
tMainTextAlt.bco=tTime.bco
tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco
tMainTextAlt2.bco=tTime.bco
tMainIconAlt2.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco
@@ -1189,48 +1216,34 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",8
covx tTmp.txt,tForecast3.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",9
covx tTmp.txt,tForecast4.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,tF1Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",12
covx tTmp.txt,tF2Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",13
covx tTmp.txt,tF3Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,tF4Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tForecast1Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,tForecast2Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",12
covx tTmp.txt,tForecast3Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",13
covx tTmp.txt,tForecast4Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
spstr strCommand.txt,tTmp.txt,"~",15
covx tTmp.txt,tMainTextAlt2.pco,0,0
//spstr strCommand.txt,tTmp.txt,"~",16
//covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,tTimeAdd.pco,0,0
if(tMRIcon.txt!=""&&p0.w!=320)
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
tForecast4Val.pco=tForecast3Val.pco
tForecast3Val.pco=tForecast2Val.pco
tForecast2Val.pco=tForecast1Val.pco
@@ -1333,6 +1346,16 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
// end of user code
udelete payloadLength-1

View File

@@ -38,7 +38,7 @@ Page cardAlarm
vis bPrev,0
vis bNext,0
cardAlarm.bco=defaultBcoColor
for(sys0=0;sys0<40;sys0++)
for(sys0=0;sys0<44;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -63,11 +63,23 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 200
Max. Text Size: 400
Variable (string) tSend
Attributes
@@ -115,6 +127,16 @@ Text tCode
Text :
Max. Text Size : 10
Text tHeading
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 40
Text tIcon
Attributes
Scope : local
@@ -295,6 +317,11 @@ Button b0
Events
Touch Press Event
tCode.txt=tCode.txt+"1"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b1
Attributes
@@ -309,6 +336,11 @@ Button b1
Events
Touch Press Event
tCode.txt=tCode.txt+"2"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b10
Attributes
@@ -323,6 +355,11 @@ Button b10
Events
Touch Press Event
tCode.txt=tCode.txt+"0"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b11
Attributes
@@ -337,6 +374,11 @@ Button b11
Events
Touch Press Event
tCode.txt=""
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b2
Attributes
@@ -351,6 +393,11 @@ Button b2
Events
Touch Press Event
tCode.txt=tCode.txt+"3"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b3
Attributes
@@ -365,6 +412,11 @@ Button b3
Events
Touch Press Event
tCode.txt=tCode.txt+"4"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b4
Attributes
@@ -379,6 +431,11 @@ Button b4
Events
Touch Press Event
tCode.txt=tCode.txt+"5"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b5
Attributes
@@ -393,6 +450,11 @@ Button b5
Events
Touch Press Event
tCode.txt=tCode.txt+"6"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b6
Attributes
@@ -407,6 +469,11 @@ Button b6
Events
Touch Press Event
tCode.txt=tCode.txt+"7"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b7
Attributes
@@ -421,6 +488,11 @@ Button b7
Events
Touch Press Event
tCode.txt=tCode.txt+"8"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b8
Attributes
@@ -435,6 +507,11 @@ Button b8
Events
Touch Press Event
tCode.txt=tCode.txt+"9"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b9
Attributes
@@ -482,14 +559,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -514,14 +584,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -639,87 +702,94 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
//entn
spstr strCommand.txt,entn.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
spstr strCommand.txt,tHeading.txt,"~",1
if(tHeading.txt=="unknown")
{
tHeading.txt=""
}
if(tHeading.txt!="")
{
vis tHeading,1
}else
{
vis tHeading,0
}
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entn
spstr strCommand.txt,entn.txt,"~",14
//text arm1
spstr strCommand.txt,arm1.txt,"~",3
spstr strCommand.txt,arm1.txt,"~",15
if(arm1.txt!="")
{
vis arm1,1
}
//id arm1
spstr strCommand.txt,va1.txt,"~",4
spstr strCommand.txt,va1.txt,"~",16
//text arm2
spstr strCommand.txt,arm2.txt,"~",5
spstr strCommand.txt,arm2.txt,"~",17
if(arm2.txt!="")
{
vis arm2,1
}
//id arm2
spstr strCommand.txt,va2.txt,"~",6
spstr strCommand.txt,va2.txt,"~",18
//text arm3
spstr strCommand.txt,arm3.txt,"~",7
spstr strCommand.txt,arm3.txt,"~",19
if(arm3.txt!="")
{
vis arm3,1
}
//id arm3
spstr strCommand.txt,va3.txt,"~",8
spstr strCommand.txt,va3.txt,"~",20
//text arm4
spstr strCommand.txt,arm4.txt,"~",9
spstr strCommand.txt,arm4.txt,"~",21
if(arm4.txt!="")
{
vis arm4,1
}
//id arm4
spstr strCommand.txt,va4.txt,"~",10
spstr strCommand.txt,va4.txt,"~",22
//icon
spstr strCommand.txt,tIcon.txt,"~",11
spstr strCommand.txt,tIcon.txt,"~",23
//icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon.pco=sys0
//numpad status
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",25
if(tTmp.txt!="disable")
{
vis b0,1
@@ -734,7 +804,13 @@ Timer tmSerial
vis b9,1
vis b10,1
vis b11,1
vis tCode,1
if(tHeading.txt!="")
{
vis tCode,0
}else
{
vis tCode,1
}
}else
{
vis b0,0
@@ -752,7 +828,7 @@ Timer tmSerial
vis tCode,0
}
//flashing status
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",26
if(tTmp.txt=="enable")
{
tmFlash.en=1
@@ -761,13 +837,13 @@ Timer tmSerial
tmFlash.en=0
}
// extra button
spstr strCommand.txt,b9.txt,"~",15
spstr strCommand.txt,b9.txt,"~",27
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
spstr strCommand.txt,vaAddBtn.txt,"~",29
}
}
if(tInstruction.txt=="time")
@@ -876,6 +952,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -49,6 +49,18 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
@@ -179,14 +191,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -211,14 +216,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -399,48 +397,42 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// extract color
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
@@ -452,7 +444,7 @@ Timer tmSerial
//
// detect nValues and maxValue
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
while(sya0>0)
{
@@ -463,7 +455,7 @@ Timer tmSerial
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
}
//
@@ -478,7 +470,7 @@ Timer tmSerial
//
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
spstr strCommand.txt,strTmp.txt,"~",5
spstr strCommand.txt,strTmp.txt,"~",16
sya1=0
spstr strTmp.txt,tTmp.txt,":",sya1
strlen tTmp.txt,sya0
@@ -511,7 +503,7 @@ Timer tmSerial
}
//
// y achis label
spstr strCommand.txt,tTmp.txt,"~",4
spstr strCommand.txt,tTmp.txt,"~",15
// tTmp.txt="Gas [kW]"
strlen tTmp.txt,sys1
sya1=sys1*12+m0.h-48/2
@@ -527,7 +519,7 @@ Timer tmSerial
vaValues.txt+="~"
}
// extract next entry
spstr strCommand.txt,tTmp.txt,"~",sys0+6
spstr strCommand.txt,tTmp.txt,"~",sys0+17
// calculate left
sys1=sys0*5*vaUnit.val
sys1+=vaLeft.val
@@ -693,6 +685,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -75,6 +75,16 @@ Page cardEntities
vis bText5,0
vis hSlider5,0
vis nNum5,0
//ui e6
vis btOnOff6,0
vis bUp6,0
vis bStop6,0
vis bDown6,0
vis tIcon6,0
vis tEntity6,0
vis bText6,0
vis hSlider6,0
vis nNum6,0
cardEntities.bco=defaultBcoColor
for(sys0=0;sys0<65;sys0++)
{
@@ -100,37 +110,49 @@ Variable (string) entn1
Attributes
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn2
Attributes
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn3
Attributes
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn4
Attributes
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn5
Attributes
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) entn6
Attributes
Scope : local
Text :
Max. Text Size: 80
Max. Text Size: 65
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 40
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 40
Variable (string) strCommand
Attributes
@@ -731,14 +753,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -763,14 +778,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1710,50 +1718,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,displayName,optionalValue]x4
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis bUp1,0
@@ -1768,14 +1770,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",5
spstr strCommand.txt,tIcon1.txt,"~",16
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
if(type1.txt=="shutter")
@@ -1788,7 +1790,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8
spstr strCommand.txt,tId.txt,"~",19
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -1839,7 +1841,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -1856,7 +1858,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="button"||type1.txt=="input_sel")
{
@@ -1871,7 +1873,7 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="number")
{
@@ -1884,7 +1886,7 @@ Timer tmSerial
vis hSlider1,1
vis nNum1,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
//first value is current value
spstr bText1.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -1900,9 +1902,9 @@ Timer tmSerial
hSlider1.maxval=sys0
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis bUp2,0
@@ -1917,14 +1919,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",11
spstr strCommand.txt,tIcon2.txt,"~",22
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
if(type2.txt=="shutter")
@@ -1937,7 +1939,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14
spstr strCommand.txt,tId.txt,"~",25
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -1988,7 +1990,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",25
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -2005,7 +2007,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="button"||type2.txt=="input_sel")
{
@@ -2020,7 +2022,7 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="number")
{
@@ -2033,7 +2035,7 @@ Timer tmSerial
vis hSlider2,1
vis nNum2,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
//first value is current value
spstr bText2.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2049,9 +2051,9 @@ Timer tmSerial
hSlider2.maxval=sys0
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis bUp3,0
@@ -2066,14 +2068,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon3.txt,"~",17
spstr strCommand.txt,tIcon3.txt,"~",28
vis tIcon3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
tIcon3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
if(type3.txt=="shutter")
@@ -2086,7 +2088,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20
spstr strCommand.txt,tId.txt,"~",31
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2137,7 +2139,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",31
covx tTmp.txt,sys0,0,0
btOnOff3.val=sys0
}
@@ -2154,7 +2156,7 @@ Timer tmSerial
bText3.pco=65535
bText3.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="button"||type3.txt=="input_sel")
{
@@ -2169,7 +2171,7 @@ Timer tmSerial
bText3.pco=1374
bText3.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="number")
{
@@ -2182,7 +2184,7 @@ Timer tmSerial
vis hSlider3,1
vis nNum3,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
//first value is current value
spstr bText3.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2198,9 +2200,9 @@ Timer tmSerial
hSlider3.maxval=sys0
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis bUp4,0
@@ -2215,14 +2217,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon4.txt,"~",23
spstr strCommand.txt,tIcon4.txt,"~",34
vis tIcon4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
tIcon4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
if(type4.txt=="shutter")
@@ -2235,7 +2237,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26
spstr strCommand.txt,tId.txt,"~",37
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2286,7 +2288,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",37
covx tTmp.txt,sys0,0,0
btOnOff4.val=sys0
}
@@ -2303,7 +2305,7 @@ Timer tmSerial
bText4.pco=65535
bText4.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="button"||type4.txt=="input_sel")
{
@@ -2318,7 +2320,7 @@ Timer tmSerial
bText4.pco=1374
bText4.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="number")
{
@@ -2331,7 +2333,7 @@ Timer tmSerial
vis hSlider4,1
vis nNum4,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
//first value is current value
spstr bText4.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2347,9 +2349,9 @@ Timer tmSerial
hSlider4.maxval=sys0
}
// get Type
spstr strCommand.txt,type5.txt,"~",27
spstr strCommand.txt,type5.txt,"~",38
// get internal name
spstr strCommand.txt,entn5.txt,"~",28
spstr strCommand.txt,entn5.txt,"~",39
if(type5.txt=="delete"||type5.txt=="")
{
vis bUp5,0
@@ -2364,14 +2366,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon5.txt,"~",29
spstr strCommand.txt,tIcon5.txt,"~",40
vis tIcon5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",30
spstr strCommand.txt,tTmp.txt,"~",41
covx tTmp.txt,sys0,0,0
tIcon5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",31
spstr strCommand.txt,tEntity5.txt,"~",42
vis tEntity5,1
}
if(type5.txt=="shutter")
@@ -2384,7 +2386,7 @@ Timer tmSerial
vis hSlider5,0
vis nNum5,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",32
spstr strCommand.txt,tId.txt,"~",43
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2435,7 +2437,7 @@ Timer tmSerial
vis hSlider5,0
vis nNum5,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",32
spstr strCommand.txt,tTmp.txt,"~",43
covx tTmp.txt,sys0,0,0
btOnOff5.val=sys0
}
@@ -2452,7 +2454,7 @@ Timer tmSerial
bText5.pco=65535
bText5.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText5.txt,"~",32
spstr strCommand.txt,bText5.txt,"~",43
}
if(type5.txt=="button"||type5.txt=="input_sel")
{
@@ -2467,7 +2469,7 @@ Timer tmSerial
bText5.pco=1374
bText5.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText5.txt,"~",32
spstr strCommand.txt,bText5.txt,"~",43
}
if(type5.txt=="number")
{
@@ -2480,7 +2482,7 @@ Timer tmSerial
vis hSlider5,1
vis nNum5,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText5.txt,"~",32
spstr strCommand.txt,bText5.txt,"~",43
//first value is current value
spstr bText5.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2496,9 +2498,9 @@ Timer tmSerial
hSlider5.maxval=sys0
}
// get Type
spstr strCommand.txt,type6.txt,"~",33
spstr strCommand.txt,type6.txt,"~",44
// get internal name
spstr strCommand.txt,entn6.txt,"~",34
spstr strCommand.txt,entn6.txt,"~",45
if(type6.txt=="delete"||type6.txt=="")
{
vis bUp6,0
@@ -2513,14 +2515,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon6.txt,"~",35
spstr strCommand.txt,tIcon6.txt,"~",46
vis tIcon6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,sys0,0,0
tIcon6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",37
spstr strCommand.txt,tEntity6.txt,"~",48
vis tEntity6,1
}
if(type6.txt=="shutter")
@@ -2533,7 +2535,7 @@ Timer tmSerial
vis hSlider6,0
vis nNum6,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",38
spstr strCommand.txt,tId.txt,"~",49
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2584,7 +2586,7 @@ Timer tmSerial
vis hSlider6,0
vis nNum6,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",38
spstr strCommand.txt,tTmp.txt,"~",49
covx tTmp.txt,sys0,0,0
btOnOff6.val=sys0
}
@@ -2601,7 +2603,7 @@ Timer tmSerial
bText6.pco=65535
bText6.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText6.txt,"~",38
spstr strCommand.txt,bText6.txt,"~",49
}
if(type6.txt=="button"||type6.txt=="input_sel")
{
@@ -2616,7 +2618,7 @@ Timer tmSerial
bText6.pco=1374
bText6.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText6.txt,"~",38
spstr strCommand.txt,bText6.txt,"~",49
}
if(type6.txt=="number")
{
@@ -2629,7 +2631,7 @@ Timer tmSerial
vis hSlider6,1
vis nNum6,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText6.txt,"~",38
spstr strCommand.txt,bText6.txt,"~",49
//first value is current value
spstr bText6.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2713,6 +2715,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -82,11 +82,23 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 500
Max. Text Size: 700
Variable (string) tSend
Attributes
@@ -519,14 +531,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -551,14 +556,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -637,10 +635,6 @@ Timer tmLP
{
page popupFan
}
if(tTmp.txt=="input_sel")
{
page popupInSel
}
Timer tmSerial
Attributes
@@ -697,50 +691,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -748,20 +736,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",5
spstr strCommand.txt,bEntity1.txt,"~",16
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -769,20 +757,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",11
spstr strCommand.txt,bEntity2.txt,"~",22
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -790,20 +778,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",17
spstr strCommand.txt,bEntity3.txt,"~",28
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -811,20 +799,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",23
spstr strCommand.txt,bEntity4.txt,"~",34
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",27
spstr strCommand.txt,type5.txt,"~",38
// get internal name
spstr strCommand.txt,entn5.txt,"~",28
spstr strCommand.txt,entn5.txt,"~",39
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -832,20 +820,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",29
spstr strCommand.txt,bEntity5.txt,"~",40
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",30
spstr strCommand.txt,tTmp.txt,"~",41
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",31
spstr strCommand.txt,tEntity5.txt,"~",42
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",33
spstr strCommand.txt,type6.txt,"~",44
// get internal name
spstr strCommand.txt,entn6.txt,"~",34
spstr strCommand.txt,entn6.txt,"~",45
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -853,14 +841,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",35
spstr strCommand.txt,bEntity6.txt,"~",46
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",37
spstr strCommand.txt,tEntity6.txt,"~",48
vis tEntity6,1
}
}
@@ -932,6 +920,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -0,0 +1,724 @@
Page cardLChart
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID : disabled
Events
Preinitialize Event
dim=dimValueNormal
vis p0,0
vis tSend,0
vis tInstruction,0
vis tTmp,0
vis tId,0
vis bPrev,0
vis bNext,0
cardLChart.bco=defaultBcoColor
//vis x0,0
//x0.bco=defaultBcoColor
//x0.borderc=defaultBcoColor
for(sys0=0;sys0<32;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==6371)
{
b[sys0].pic=1
b[sys0].pic2=2
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
Variable (string) entn
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 512
Variable (string) strTmp
Attributes
Scope : local
Text :
Max. Text Size: 200
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: 400
Variable (int32) vNValues
Attributes
Scope: local
Value: 0
Variable (int32) vaBottom
Attributes
Scope: local
Value: 0
Variable (int32) vaColorD
Attributes
Scope: local
Value: 0
Variable (int32) vaColorL
Attributes
Scope: local
Value: 0
Variable (int32) vaLeft
Attributes
Scope: local
Value: 0
Variable (int32) vaMaxX
Attributes
Scope: local
Value: 2147483648
Variable (int32) vaMaxY
Attributes
Scope: local
Value: 0
Variable (int32) vaMinX
Attributes
Scope: local
Value: 2147483647
Variable (int32) vaMinY
Attributes
Scope: local
Value: 2147483647
Variable (int32) vaValue
Attributes
Scope: local
Value: 0
Variable (int32) vaXUnit
Attributes
Scope: local
Value: 0
Variable (int32) vaYUnit
Attributes
Scope: local
Value: 0
Text tHeading
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 40
Picture p0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Button bNext
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bPrev
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
State : unpressed
Text : 
Max. Text Size : 10
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Hotspot m0
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Events
Touch Press Event
//fill m0.x,m0.y,m0.w,m0.h,RED
Hotspot mSwipeNext
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Events
Touch Press Event
click bNext,1
Hotspot mSwipePrev
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Events
Touch Press Event
click bPrev,1
Hotspot mSwipeUp
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Events
Touch Press Event
click bPrev,1
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
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
}
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
}
//draw m0.x,m0.y,m0.x+m0.w,m0.y+m0.h,RED
// extract color
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
vaColorD.val=sys0*8/10<<11 // store and shift
sys0=vaColorL.val>>5%64 // green
vaColorD.val=sys0*8/10<<5+vaColorD.val // store and shift
sys0=vaColorL.val%32
vaColorD.val=sys0*8/10+vaColorD.val // store and add
//
// detect nValues and maxX/Y
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
while(sya0>0)
{
//tHeading.txt="last value="+tTmp.txt
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxX.val)
{
vaMaxX.val=sya1
}
if(sya1<vaMinX.val)
{
vaMinX.val=sya1
}
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxY.val)
{
vaMaxY.val=sya1
}
if(sya1<vaMinY.val)
{
vaMinY.val=sya1
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
}
// find first given y axis labels
spstr strCommand.txt,tTmp.txt,"~",16 // labels in tTmp.txt
sys0=0 // <= result (here: first label value)
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>vaMinY.val)
{
sys0--
if(sys0>=0)
{
// found a y-tick => take is at min...
spstr tTmp.txt,strTmp.txt,":",sys0
covx strTmp.txt,vaMinY.val,0,0
}
sya0=0
}else
{
// next
sys0++
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
}
}
sys1=sys0+1 // last label
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>=vaMaxY.val)
{
vaMaxY.val=sya1
sya0=0
}else
{
// next
sys1++
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
}
}
// get first given x axis tick
spstr strCommand.txt,strTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
covx strTmp.txt,vaMinX.val,0,0
// covx vaMinX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt+":"
// covx vaMaxX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt
// calculate unit width
vaBottom.val=m0.y+m0.h-24
vaLeft.val=m0.x+25+40*100
sya1=vaMaxX.val-vaMinX.val
vaXUnit.val=m0.w-25-40*100/sya1
sya1=vaMaxY.val-vaMinY.val
vaYUnit.val=m0.h-24*100/sya1
// draw labels
// labels still in tTmp.txt
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+5,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
if(sys0>0)
{
sys0--
}
for(sya0=sys0;sya0<=sys1;sya0++)
{
spstr tTmp.txt,strTmp.txt,":",sya0
covx strTmp.txt,sya1,0,0
sys2=sya1%10
sya1/=10
if(sya1>0)
{
covx sya1,strTmp.txt,0,0
}else
{
strTmp.txt=""
}
if(sys2!=0)
{
covx sys2,tId.txt,0,0
strTmp.txt=strTmp.txt+"."+tId.txt
}
sya1*=10+sys2
sya1-=vaMinY.val
xstr m0.x+28,-1*vaYUnit.val*sya1/100+vaBottom.val-10,20,20,0,defaultFontColor,RED,2,1,3,strTmp.txt
line m0.x+25+40-5,-1*vaYUnit.val*sya1/100+vaBottom.val,m0.x+25+40-15,-1*vaYUnit.val*sya1/100+vaBottom.val,14823
}
// y achis label
spstr strCommand.txt,tTmp.txt,"~",15
strlen tTmp.txt,sys1
sya1=sys1*11+m0.h-48/2
for(sys0=0;sys0<sys1;sys0++)
{
substr tTmp.txt,strTmp.txt,sys0,1
xstr m0.x,sys0*-11+m0.y+sya1,24,20,6,defaultFontColor,RED,2,1,3,strTmp.txt
}
//
// x axis tick/labels
// draw bottom line
line m0.x+25+40,vaBottom.val,m0.x+m0.w,vaBottom.val,14823
spstr strCommand.txt,tTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
//
sys1=0
// extract first tick ~> sya1 contains fist ticks value
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
// loop until current ticks label is smaller than the maximum value observed
while(sya0>0&&sya1<vaMaxX.val)
{
sys2=sya1-vaMinX.val*vaXUnit.val/100+m0.x+25+40
// draw tick line
line sys2,vaBottom.val-5,sys2,vaBottom.val+5,14823
// check for label
spstr strTmp.txt,strTmp.txt,"^",1
strlen strTmp.txt,sya0
if(sya0>0)
{
// label found ~> draw
xstr -6*sya0+sys2,vaBottom.val+2,sya0*12,22,0,defaultFontColor,defaultBcoColor,1,1,3,strTmp.txt
}
// next ~> sya1 contains next ticks label
sys1++
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
}
//
// draw line segments...
sys1=-2147483648
sys2=-2147483648
for(sys0=0;sys0<vNValues.val;sys0++)
{
// extract x:y from "~" separated payload
spstr strCommand.txt,tTmp.txt,"~",sys0+18
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya0,0,0
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
sya0=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
sya1=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
// draw circle
// cir sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,3,vaColorL.val
if(sys1>0&&sys2>0)
{
// this is not the first point as the last one has been stored in (sys1,sys2)
// ~> connect with a line...
//line sys1,sys2,sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,vaColorD.val
line sys1,sys2,sya0,sya1,vaColorD.val
//line sys1-1,sys2-1,sya0-1,sya1-1,vaColorL.val
//line sys1+1,sys2+1,sya0+1,sya1+1,vaColorL.val
}
// store current point to (sys1,sys2)
//sys1=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
//sys2=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
sys1=sya0
sys2=sya1
}
}
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")
{
sleepValue=0
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}
Timer tmSleep
Attributes
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
if(sleepTimeout!=0&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
}
TouchCap tc0
Attributes
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -29,7 +29,7 @@ Page cardMedia
vis bEntity5,0
vis bEntity6,0
cardMedia.bco=defaultBcoColor
for(sys0=0;sys0<34;sys0++)
for(sys0=0;sys0<54;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -86,6 +86,18 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
@@ -766,14 +778,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -798,14 +803,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -933,72 +931,66 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//title
spstr strCommand.txt,tTitle.txt,"~",4
spstr strCommand.txt,tTitle.txt,"~",15
//title farbe
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt!="")
{
covx tTmp.txt,tTitle.pco,0,0
}
//author
spstr strCommand.txt,tAuthor.txt,"~",6
spstr strCommand.txt,tAuthor.txt,"~",17
//author farbe
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
if(tTmp.txt!="")
{
covx tTmp.txt,tAuthor.pco,0,0
}
//volume
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
hVolume.val=sys0
//icon
spstr strCommand.txt,tPlayPause.txt,"~",9
spstr strCommand.txt,tPlayPause.txt,"~",20
// on off button
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt=="disable")
{
vis t5,0
@@ -1008,7 +1000,7 @@ Timer tmSerial
covx tTmp.txt,t5.pco,0,0
}
// shuffel btn
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt=="disable")
{
vis tShuffle,0
@@ -1018,9 +1010,9 @@ Timer tmSerial
tShuffle.txt=tTmp.txt
}
// get Type
spstr strCommand.txt,type1.txt,"~",12
spstr strCommand.txt,type1.txt,"~",23
// get internal name
spstr strCommand.txt,entn1.txt,"~",13
spstr strCommand.txt,entn1.txt,"~",24
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -1028,20 +1020,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",14
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",16
spstr strCommand.txt,tEntity1.txt,"~",27
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",18
spstr strCommand.txt,type2.txt,"~",29
// get internal name
spstr strCommand.txt,entn2.txt,"~",19
spstr strCommand.txt,entn2.txt,"~",30
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -1049,20 +1041,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",20
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",21
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",22
spstr strCommand.txt,tEntity2.txt,"~",33
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",24
spstr strCommand.txt,type3.txt,"~",35
// get internal name
spstr strCommand.txt,entn3.txt,"~",25
spstr strCommand.txt,entn3.txt,"~",36
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -1070,20 +1062,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",26
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",27
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",28
spstr strCommand.txt,tEntity3.txt,"~",39
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",30
spstr strCommand.txt,type4.txt,"~",41
// get internal name
spstr strCommand.txt,entn4.txt,"~",31
spstr strCommand.txt,entn4.txt,"~",42
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -1091,20 +1083,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",32
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",33
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",34
spstr strCommand.txt,tEntity4.txt,"~",45
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",36
spstr strCommand.txt,type5.txt,"~",47
// get internal name
spstr strCommand.txt,entn5.txt,"~",37
spstr strCommand.txt,entn5.txt,"~",48
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -1112,20 +1104,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",38
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",39
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",40
spstr strCommand.txt,tEntity5.txt,"~",51
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",42
spstr strCommand.txt,type6.txt,"~",53
// get internal name
spstr strCommand.txt,entn6.txt,"~",43
spstr strCommand.txt,entn6.txt,"~",54
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -1133,14 +1125,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",44
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",45
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",46
spstr strCommand.txt,tEntity6.txt,"~",57
vis tEntity6,1
}
}
@@ -1208,6 +1200,14 @@ Timer tmSerial
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -39,7 +39,7 @@ Page cardPower
vis t4Icon,0
vis t5Icon,0
cardPower.bco=defaultBcoColor
for(sys0=0;sys0<43;sys0++)
for(sys0=0;sys0<48;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -57,6 +57,18 @@ Page cardPower
}
}
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
@@ -265,7 +277,37 @@ Text tHome
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 20
Max. Text Size : 10
Text tHome2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tHomeO
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tHomeO2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Picture p0
Attributes
@@ -280,8 +322,8 @@ Slider h0
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h1
@@ -290,8 +332,8 @@ Slider h1
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h2
@@ -300,8 +342,8 @@ Slider h2
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h3
@@ -310,8 +352,8 @@ Slider h3
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h4
@@ -320,8 +362,8 @@ Slider h4
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h5
@@ -330,8 +372,8 @@ Slider h5
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Button bNext
@@ -346,14 +388,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardPower,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -378,14 +413,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -439,66 +467,84 @@ Timer tm0
Events
Timer Event
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
if(t0Speed.val!=0)
{
h0.val=h0.minval
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
{
h0.val=h0.minval
}
if(sys0<h0.minval)
{
h0.val=h0.maxval
}
h0.val+=t0Speed.val
}
if(sys0<h0.minval)
if(t1Speed.val!=0)
{
h0.val=h0.maxval
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
{
h1.val=h1.minval
}
if(sys0<h1.minval)
{
h1.val=h1.maxval
}
h1.val+=t1Speed.val
}
h0.val+=t0Speed.val
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
if(t2Speed.val!=0)
{
h1.val=h1.minval
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
{
h2.val=h2.minval
}
if(sys0<h2.minval)
{
h2.val=h2.maxval
}
h2.val+=t2Speed.val
}
if(sys0<h1.minval)
if(t3Speed.val!=0)
{
h1.val=h1.maxval
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
}
h1.val+=t1Speed.val
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
if(t4Speed.val!=0)
{
h2.val=h2.minval
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
}
if(sys0<h2.minval)
if(t5Speed.val!=0)
{
h2.val=h2.maxval
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
}
h2.val+=t2Speed.val
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
Timer tmSerial
Attributes
@@ -555,63 +601,75 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// icon color home
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t1.pco,0,0
// icon home
spstr strCommand.txt,t1.txt,"~",4
spstr strCommand.txt,t1.txt,"~",15
// speed 16 ignored
// text home
spstr strCommand.txt,tHome.txt,"~",5
spstr strCommand.txt,tHome.txt,"~",17
spstr tHome.txt,tHome2.txt," ",1
spstr tHome.txt,tHome.txt," ",0
// icon color 18 ignored
// icon 19 ignored
// speed 20 ignored
// text home
spstr strCommand.txt,tHomeO.txt,"~",21
spstr tHomeO.txt,tHomeO2.txt," ",1
spstr tHomeO.txt,tHomeO.txt," ",0
// iconColor
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,t0Icon.pco,0,0
// icon
spstr strCommand.txt,t0Icon.txt,"~",7
spstr strCommand.txt,t0Icon.txt,"~",23
// speed
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,t0Speed.val,0,0
if(t0Speed.val>120)
{
t0Speed.val=120
}
if(t0Speed.val<-120)
{
t0Speed.val=-120
}
// lower text
spstr strCommand.txt,t0u.txt,"~",9
spstr strCommand.txt,t0u.txt,"~",25
if(t0Icon.txt!="")
{
vis t0Icon,1
@@ -624,15 +682,23 @@ Timer tmSerial
vis h0,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,t1Icon.pco,0,0
// icon
spstr strCommand.txt,t1Icon.txt,"~",11
spstr strCommand.txt,t1Icon.txt,"~",27
// speed
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,t1Speed.val,0,0
if(t1Speed.val>120)
{
t1Speed.val=120
}
if(t1Speed.val<-120)
{
t1Speed.val=-120
}
// lower text
spstr strCommand.txt,t1u.txt,"~",13
spstr strCommand.txt,t1u.txt,"~",29
if(t1Icon.txt!="")
{
vis t1Icon,1
@@ -645,15 +711,23 @@ Timer tmSerial
vis h1,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",30
covx tTmp.txt,t2Icon.pco,0,0
// icon
spstr strCommand.txt,t2Icon.txt,"~",15
spstr strCommand.txt,t2Icon.txt,"~",31
// speed
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,t2Speed.val,0,0
if(t2Speed.val>120)
{
t2Speed.val=120
}
if(t2Speed.val<-120)
{
t2Speed.val=-120
}
// lower text
spstr strCommand.txt,t2u.txt,"~",17
spstr strCommand.txt,t2u.txt,"~",33
if(t2Icon.txt!="")
{
vis t2Icon,1
@@ -666,15 +740,23 @@ Timer tmSerial
vis h2,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,t3Icon.pco,0,0
// icon
spstr strCommand.txt,t3Icon.txt,"~",19
spstr strCommand.txt,t3Icon.txt,"~",35
// speed
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",36
covx tTmp.txt,t3Speed.val,0,0
if(t3Speed.val>120)
{
t3Speed.val=120
}
if(t3Speed.val<-120)
{
t3Speed.val=-120
}
// lower text
spstr strCommand.txt,t3u.txt,"~",21
spstr strCommand.txt,t3u.txt,"~",37
if(t3Icon.txt!="")
{
vis t3Icon,1
@@ -687,15 +769,23 @@ Timer tmSerial
vis h3,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",22
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,t4Icon.pco,0,0
// icon
spstr strCommand.txt,t4Icon.txt,"~",23
spstr strCommand.txt,t4Icon.txt,"~",39
// speed
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",40
covx tTmp.txt,t4Speed.val,0,0
if(t4Speed.val>120)
{
t4Speed.val=120
}
if(t4Speed.val<-120)
{
t4Speed.val=-120
}
// lower text
spstr strCommand.txt,t4u.txt,"~",25
spstr strCommand.txt,t4u.txt,"~",41
if(t4Icon.txt!="")
{
vis t4Icon,1
@@ -708,15 +798,23 @@ Timer tmSerial
vis h4,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",42
covx tTmp.txt,t5Icon.pco,0,0
// icon
spstr strCommand.txt,t5Icon.txt,"~",27
spstr strCommand.txt,t5Icon.txt,"~",43
// speed
spstr strCommand.txt,tTmp.txt,"~",28
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,t5Speed.val,0,0
if(t5Speed.val>120)
{
t5Speed.val=120
}
if(t5Speed.val<-120)
{
t5Speed.val=-120
}
// lower text
spstr strCommand.txt,t5u.txt,"~",29
spstr strCommand.txt,t5u.txt,"~",45
if(t5Icon.txt!="")
{
vis t5Icon,1
@@ -797,6 +895,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -70,11 +70,23 @@ Variable (string) entn2
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 50
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 50
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 275
Max. Text Size: 400
Variable (string) tId
Attributes
@@ -187,14 +199,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardQR,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -219,14 +224,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -446,52 +444,46 @@ Timer tmSerial
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
//tHeading
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//text qrcode
spstr strCommand.txt,vaQR.txt,"~",3
spstr strCommand.txt,vaQR.txt,"~",14
// get Type
spstr strCommand.txt,type1.txt,"~",4
spstr strCommand.txt,type1.txt,"~",15
// get internal name
spstr strCommand.txt,entn1.txt,"~",5
spstr strCommand.txt,entn1.txt,"~",16
if(type1.txt=="delete"||type1.txt=="")
{
vis btOnOff1,0
@@ -501,14 +493,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",6
spstr strCommand.txt,tIcon1.txt,"~",17
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",8
spstr strCommand.txt,tEntity1.txt,"~",19
vis tEntity1,1
}
if(type1.txt=="light")
@@ -516,7 +508,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -525,7 +517,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -537,7 +529,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
if(type1.txt=="button")
{
@@ -547,12 +539,12 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
// get Type
spstr strCommand.txt,type2.txt,"~",10
spstr strCommand.txt,type2.txt,"~",21
// get internal name
spstr strCommand.txt,entn2.txt,"~",11
spstr strCommand.txt,entn2.txt,"~",22
if(type2.txt=="delete"||type2.txt=="")
{
vis btOnOff2,0
@@ -562,14 +554,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",12
spstr strCommand.txt,tIcon2.txt,"~",23
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",14
spstr strCommand.txt,tEntity2.txt,"~",25
vis tEntity2,1
}
if(type2.txt=="light")
@@ -577,7 +569,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -586,7 +578,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -598,7 +590,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="button")
{
@@ -608,17 +600,17 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
qrcode m1.x,m1.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
qrcode m0.x,m0.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}
if(tInstruction.txt=="time")
@@ -727,6 +719,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -63,11 +63,23 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 250
Max. Text Size: 750
Variable (string) tId
Attributes
@@ -294,14 +306,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -326,14 +331,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardThermo,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -835,64 +833,58 @@ Timer tmSerial
{
//heading
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//currentTemp
spstr strCommand.txt,tCurTemp.txt,"~",4
spstr strCommand.txt,tCurTemp.txt,"~",15
//dstTemp
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,xTempDest1.val,0,0
xTempDest.val=xTempDest1.val
//status
spstr strCommand.txt,tStatus.txt,"~",6
spstr strCommand.txt,tStatus.txt,"~",17
//minTemp
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,xTempMin1.val,0,0
//maxTemp
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,xTempMax1.val,0,0
//tempStep
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,xTempStep1.val,0,0
// disable all buttons
vis bt0,0
@@ -904,137 +896,137 @@ Timer tmSerial
vis bt6,0
vis bt7,0
//bt0
spstr strCommand.txt,bt0.txt,"~",10
spstr strCommand.txt,bt0.txt,"~",21
if(bt0.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,bt0.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,bt0.val,0,0
// save action
spstr strCommand.txt,va0.txt,"~",13
spstr strCommand.txt,va0.txt,"~",24
//enable
vis bt0,1
}
//bt1
spstr strCommand.txt,bt1.txt,"~",14
spstr strCommand.txt,bt1.txt,"~",25
if(bt1.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,bt1.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",27
covx tTmp.txt,bt1.val,0,0
// save action
spstr strCommand.txt,va1.txt,"~",17
spstr strCommand.txt,va1.txt,"~",28
//enable
vis bt1,1
}
//bt2
spstr strCommand.txt,bt2.txt,"~",18
spstr strCommand.txt,bt2.txt,"~",29
if(bt2.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",30
covx tTmp.txt,bt2.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",31
covx tTmp.txt,bt2.val,0,0
// save action
spstr strCommand.txt,va2.txt,"~",21
spstr strCommand.txt,va2.txt,"~",32
//enable
vis bt2,1
}
//bt3
spstr strCommand.txt,bt3.txt,"~",22
spstr strCommand.txt,bt3.txt,"~",33
if(bt3.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",23
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,bt3.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,bt3.val,0,0
// save action
spstr strCommand.txt,va3.txt,"~",25
spstr strCommand.txt,va3.txt,"~",36
//enable
vis bt3,1
}
//bt4
spstr strCommand.txt,bt4.txt,"~",26
spstr strCommand.txt,bt4.txt,"~",37
if(bt4.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",27
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,bt4.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",28
spstr strCommand.txt,tTmp.txt,"~",39
covx tTmp.txt,bt4.val,0,0
// save action
spstr strCommand.txt,va4.txt,"~",29
spstr strCommand.txt,va4.txt,"~",40
//enable
vis bt4,1
}
//bt5
spstr strCommand.txt,bt5.txt,"~",30
spstr strCommand.txt,bt5.txt,"~",41
if(bt5.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",31
spstr strCommand.txt,tTmp.txt,"~",42
covx tTmp.txt,bt5.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",32
spstr strCommand.txt,tTmp.txt,"~",43
covx tTmp.txt,bt5.val,0,0
// save action
spstr strCommand.txt,va5.txt,"~",33
spstr strCommand.txt,va5.txt,"~",44
//enable
vis bt5,1
}
//bt6
spstr strCommand.txt,bt6.txt,"~",34
spstr strCommand.txt,bt6.txt,"~",45
if(bt6.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",35
spstr strCommand.txt,tTmp.txt,"~",46
covx tTmp.txt,bt6.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,bt6.val,0,0
// save action
spstr strCommand.txt,va6.txt,"~",37
spstr strCommand.txt,va6.txt,"~",48
//enable
vis bt6,1
}
//bt7
spstr strCommand.txt,bt7.txt,"~",38
spstr strCommand.txt,bt7.txt,"~",49
if(bt7.txt!="")
{
// set text color on active state
spstr strCommand.txt,tTmp.txt,"~",39
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,bt7.pco2,0,0
// set state
spstr strCommand.txt,tTmp.txt,"~",40
spstr strCommand.txt,tTmp.txt,"~",51
covx tTmp.txt,bt7.val,0,0
// save action
spstr strCommand.txt,va7.txt,"~",41
spstr strCommand.txt,va7.txt,"~",52
//enable
vis bt7,1
}
//Text tCurTempLbl
spstr strCommand.txt,tCurTempLbl.txt,"~",42
spstr strCommand.txt,tCurTempLbl.txt,"~",53
//Text tStateLbl
spstr strCommand.txt,tStateLbl.txt,"~",43
spstr strCommand.txt,tStateLbl.txt,"~",54
//Text tALbl
//spstr strCommand.txt,tALbl.txt,"~",44
//spstr strCommand.txt,tALbl.txt,"~",55
//Text tCF
spstr strCommand.txt,tCF.txt,"~",45
spstr strCommand.txt,tCF.txt,"~",56
tCF1.txt=tCF.txt
tCF2.txt=tCF.txt
//Second Temperature
spstr strCommand.txt,tTmp.txt,"~",46
spstr strCommand.txt,tTmp.txt,"~",57
if(tTmp.txt!="")
{
covx tTmp.txt,xTempDest2.val,0,0
@@ -1052,8 +1044,8 @@ Timer tmSerial
vis tCF2,1
}
//Show btDetail
spstr strCommand.txt,tTmp.txt,"~",47
if(tTmp.txt=="1")
spstr strCommand.txt,tTmp.txt,"~",58
if(tTmp.txt!="1")
{
vis btDetail,1
}else
@@ -1129,6 +1121,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -143,7 +143,7 @@ Text tTmp
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Max. Text Size : 30
Text tVersion
Attributes
@@ -152,7 +152,7 @@ Text tVersion
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text : 46
Text : 49
Max. Text Size : 10
Picture p0
@@ -364,6 +364,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -37,7 +37,13 @@ Variable (string) strCommand
Attributes
Scope : local
Text :
Max. Text Size: 200
Max. Text Size: 400
Variable (string) strTmp
Attributes
Scope : local
Text :
Max. Text Size: 2
Variable (string) tId
Attributes
@@ -268,26 +274,6 @@ Text tIcon2
Text :
Max. Text Size : 10
Text tMR
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tMRIcon
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tMainIcon
Attributes
Scope : local
@@ -308,6 +294,16 @@ Text tMainIconAlt
Text :
Max. Text Size : 10
Text tMainIconAlt2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tMainText
Attributes
Scope : local
@@ -328,6 +324,16 @@ Text tMainTextAlt
Text :
Max. Text Size : 10
Text tMainTextAlt2
Attributes
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 10
Text tNotifyHead
Attributes
Scope : local
@@ -346,7 +352,7 @@ Text tNotifyText
Send Component ID : disabled
Associated Keyboard : none
Text :
Max. Text Size : 80
Max. Text Size : 120
Text tTime
Attributes
@@ -442,7 +448,6 @@ Timer tmSerial
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="wake")
{
//dim=100
click tc0,1
}
if(tInstruction.txt=="dimmode")
@@ -469,6 +474,7 @@ Timer tmSerial
}
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
@@ -487,62 +493,92 @@ Timer tmSerial
spstr strCommand.txt,pageIcons.vaDate.txt,"~",1
tDate.txt=pageIcons.vaDate.txt
}
if(tInstruction.txt=="timeout")
if(tInstruction.txt=="statusUpdate")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
//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=="")
{
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMRIcon,0
vis tMR,0
//tMainIcon
spstr strCommand.txt,tMainIcon.txt,"~",1
spstr strCommand.txt,tMainIcon.txt,"~",3
tMainIconAlt.txt=tMainIcon.txt
//tMainIcon Color
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
//tMainText
spstr strCommand.txt,tMainText.txt,"~",2
spstr strCommand.txt,tMainText.txt,"~",6
tMainTextAlt.txt=tMainText.txt
//tForecast1
spstr strCommand.txt,tForecast1.txt,"~",3
spstr strCommand.txt,tForecast1.txt,"~",11
//tF1Icon
spstr strCommand.txt,tF1Icon.txt,"~",4
spstr strCommand.txt,tF1Icon.txt,"~",9
//tF1Icon Color
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tF1Icon.pco,0,0
//tForecast1Val
spstr strCommand.txt,tForecast1Val.txt,"~",5
spstr strCommand.txt,tForecast1Val.txt,"~",12
//tForecast2
spstr strCommand.txt,tForecast2.txt,"~",6
spstr strCommand.txt,tForecast2.txt,"~",17
//tF2Icon
spstr strCommand.txt,tF2Icon.txt,"~",7
spstr strCommand.txt,tF2Icon.txt,"~",15
//tF2Icon Color
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,tF2Icon.pco,0,0
//tForecast2Val
spstr strCommand.txt,tForecast2Val.txt,"~",8
spstr strCommand.txt,tForecast2Val.txt,"~",18
//tForecast3
spstr strCommand.txt,tForecast3.txt,"~",9
spstr strCommand.txt,tForecast3.txt,"~",23
//tF3Icon
spstr strCommand.txt,tF3Icon.txt,"~",10
spstr strCommand.txt,tF3Icon.txt,"~",21
//tF3Icon Color
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tF3Icon.pco,0,0
//tForecast3Val
spstr strCommand.txt,tForecast3Val.txt,"~",11
spstr strCommand.txt,tForecast3Val.txt,"~",24
//tForecast4
spstr strCommand.txt,tForecast4.txt,"~",12
spstr strCommand.txt,tForecast4.txt,"~",29
//tF4Icon
spstr strCommand.txt,tF4Icon.txt,"~",13
spstr strCommand.txt,tF4Icon.txt,"~",27
//tF4Icon Color
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,tF4Icon.pco,0,0
//tForecast4Val
spstr strCommand.txt,tForecast4Val.txt,"~",14
spstr strCommand.txt,tForecast4Val.txt,"~",30
//alternative layout
//tMRIcon
spstr strCommand.txt,tMRIcon.txt,"~",15
if(tMRIcon.txt!=""&&p0.w!=320)
//tMainTextAlt2
spstr strCommand.txt,tMainTextAlt2.txt,"~",36
//tMainIconAlt2
spstr strCommand.txt,tMainIconAlt2.txt,"~",33
//tMainIconAlt2 Color
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,tMainIconAlt2.pco,0,0
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
//value for tMRIcon, activate alternative layout
vis tMainIcon,0
vis tMainText,0
vis tMainTextAlt,1
vis tMainIconAlt,1
vis tMRIcon,1
vis tMR,1
vis tMainTextAlt2,1
vis tMainIconAlt2,1
vis tForecast1,0
vis tF1Icon,0
vis tForecast1Val,0
@@ -556,26 +592,17 @@ Timer tmSerial
tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt
}
//tMR
spstr strCommand.txt,tMR.txt,"~",16
//statusIcon1
spstr strCommand.txt,tIcon1.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,tIcon1.pco,0,0
//statusIcon2
spstr strCommand.txt,tIcon2.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tIcon2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt!="")
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
}else
{
tIcon1.font=3
}
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt!="")
{
tIcon2.font=3
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMainTextAlt2,0
vis tMainIconAlt2,0
}
}
if(tInstruction.txt=="color"&&tNotifyHead.txt==""&&tNotifyText.txt=="")
@@ -591,9 +618,8 @@ Timer tmSerial
tMainText.bco=tTime.bco
tMainIconAlt.bco=tTime.bco
tMainTextAlt.bco=tTime.bco
tMRIcon.bco=tTime.bco
tMR.bco=tTime.bco
tMRIcon.bco=tTime.bco
tMainTextAlt2.bco=tTime.bco
tMainIconAlt2.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco
@@ -617,48 +643,34 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tDate.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tMainText.pco,0,0
tMainTextAlt.pco=tMainText.pco
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",6
covx tTmp.txt,tForecast1.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",7
covx tTmp.txt,tForecast2.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",8
covx tTmp.txt,tForecast3.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",9
covx tTmp.txt,tForecast4.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,tF1Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",12
covx tTmp.txt,tF2Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",13
covx tTmp.txt,tF3Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,tF4Icon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tForecast1Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,tForecast2Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
spstr strCommand.txt,tTmp.txt,"~",12
covx tTmp.txt,tForecast3Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",13
covx tTmp.txt,tForecast4Val.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",19
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t10.bco,0,0
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,tMRIcon.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",21
covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",22
spstr strCommand.txt,tTmp.txt,"~",15
covx tTmp.txt,tMainTextAlt2.pco,0,0
//spstr strCommand.txt,tTmp.txt,"~",16
//covx tTmp.txt,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,tTimeAdd.pco,0,0
if(tMRIcon.txt!=""&&p0.w!=320)
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
tF4Icon.pco=tF3Icon.pco
tF3Icon.pco=tF2Icon.pco
tF2Icon.pco=tF1Icon.pco
tForecast4Val.pco=tForecast3Val.pco
tForecast3Val.pco=tForecast2Val.pco
tForecast2Val.pco=tForecast1Val.pco
@@ -761,6 +773,16 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
// end of user code
udelete payloadLength-1

Binary file not shown.

Binary file not shown.

View File

@@ -6,8 +6,8 @@ head = sharedhead + """
spstr strCommand.txt,tHeading.txt,"~",1
""" + navigation
print(head)
start = 3
for i in range(1,7):
start = 14
for i in range(1,5):
idxstart = start + (i-1)*6
item = f"""
// get Type

View File

@@ -6,7 +6,7 @@ head = sharedhead + """
spstr strCommand.txt,tHeading.txt,"~",1
""" + navigation
print(head)
start = 3
start = 14
for i in range(1,7):
idxstart = start + (i-1)*6
item = f"""

View File

@@ -8,31 +8,31 @@ head = sharedhead + """
print(head)
print("""
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//title
spstr strCommand.txt,tTitle.txt,"~",4
spstr strCommand.txt,tTitle.txt,"~",15
//title farbe
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt!="")
{
covx tTmp.txt,tTitle.pco,0,0
}
//author
spstr strCommand.txt,tAuthor.txt,"~",6
spstr strCommand.txt,tAuthor.txt,"~",17
//author farbe
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
if(tTmp.txt!="")
{
covx tTmp.txt,tAuthor.pco,0,0
}
//volume
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
hVolume.val=sys0
//icon
spstr strCommand.txt,tPlayPause.txt,"~",9
spstr strCommand.txt,tPlayPause.txt,"~",20
// on off button
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt=="disable")
{
vis t5,0
@@ -42,7 +42,7 @@ print("""
covx tTmp.txt,t5.pco,0,0
}
// shuffel btn
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt=="disable")
{
vis tShuffle,0
@@ -54,7 +54,7 @@ print("""
""")
start = 12
start = 23
for i in range(1,7):
idxstart = start + (i-1)*6
item = f"""

View File

@@ -5,16 +5,26 @@ head = sharedhead + """
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
spstr strCommand.txt,tHeading.txt,"~",1
""" + navigation + """
// icon color home
spstr strCommand.txt,tTmp.txt,"~",3
covx tTmp.txt,t1.pco,0,0
// icon home
spstr strCommand.txt,t1.txt,"~",4
// text home
spstr strCommand.txt,tHome.txt,"~",5
// icon color home
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t1.pco,0,0
// icon home
spstr strCommand.txt,t1.txt,"~",15
// speed 16 ignored
// text home
spstr strCommand.txt,tHome.txt,"~",17
spstr tHome.txt,tHome2.txt," ",1
spstr tHome.txt,tHome.txt," ",0
// icon color 18 ignored
// icon 19 ignored
// speed 20 ignored
// text home
spstr strCommand.txt,tHomeO.txt,"~",21
spstr tHomeO.txt,tHomeO2.txt," ",1
spstr tHomeO.txt,tHomeO.txt," ",0
"""
print(head)
start = 6
start = 22
for i in range(0,6):
idxstart = start + (i)*4
item = f"""
@@ -26,6 +36,14 @@ for i in range(0,6):
// speed
spstr strCommand.txt,tTmp.txt,"~",{idxstart+2}
covx tTmp.txt,t{i}Speed.val,0,0
if(t{i}Speed.val>120)
{{
t{i}Speed.val=120
}}
if(t{i}Speed.val<-120)
{{
t{i}Speed.val=-120
}}
// lower text
spstr strCommand.txt,t{i}u.txt,"~",{idxstart+3}

View File

@@ -8,23 +8,23 @@ text = sharedhead + """
text += """
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//currentTemp
spstr strCommand.txt,tCurTemp.txt,"~",4
spstr strCommand.txt,tCurTemp.txt,"~",15
//dstTemp
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,xTempDest1.val,0,0
xTempDest.val=xTempDest1.val
//status
spstr strCommand.txt,tStatus.txt,"~",6
spstr strCommand.txt,tStatus.txt,"~",17
//minTemp
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,xTempMin1.val,0,0
//maxTemp
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,xTempMax1.val,0,0
//tempStep
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,xTempStep1.val,0,0
// disable all buttons
vis bt0,0
@@ -37,7 +37,7 @@ text += """
vis bt7,0
"""
start = 10
start = 21
for i in range(0,8):
idxstart = start + i*4
text += f"""
@@ -59,17 +59,17 @@ for i in range(0,8):
text += """
//Text tCurTempLbl
spstr strCommand.txt,tCurTempLbl.txt,"~",42
spstr strCommand.txt,tCurTempLbl.txt,"~",53
//Text tStateLbl
spstr strCommand.txt,tStateLbl.txt,"~",43
spstr strCommand.txt,tStateLbl.txt,"~",54
//Text tALbl
spstr strCommand.txt,tALbl.txt,"~",44
spstr strCommand.txt,tALbl.txt,"~",55
//Text tCF
spstr strCommand.txt,tCF.txt,"~",45
spstr strCommand.txt,tCF.txt,"~",56
tCF1.txt=tCF.txt
tCF2.txt=tCF.txt
//Second Temperature
spstr strCommand.txt,tTmp.txt,"~",46
spstr strCommand.txt,tTmp.txt,"~",57
if(tTmp.txt!="")
{
covx tTmp.txt,xTempDest2.val,0,0
@@ -87,7 +87,7 @@ text += """
vis tCF2,1
}
//Show btDetail
spstr strCommand.txt,tTmp.txt,"~",47
spstr strCommand.txt,tTmp.txt,"~",58
if(tTmp.txt!="1")
{
vis btDetail,1

402
HMI/code_gen/pages/out.txt Normal file
View File

@@ -0,0 +1,402 @@
// data available
if(usize>1)
{
bufferPos=0
while(bufferPos<usize)
{
// check for 0x55 0xBB - Command Init Secuence
if(u[bufferPos]==187&&u[bufferPos-1]==85)
{
//remove garbage at the start of the buffer if there's any to free buffer for command
if(u[bufferPos]!=1)
{
udelete bufferPos-1
}
//instruction is now aligned with buffer, because we deleted garbage before instrcution
//get length after init sequence (check if there are more than to bytes in buffer)
if(3<usize)
{
// check if serial buffer has reached the announced length
ucopy payloadLength,2,2,0
// we are only checking payload length so we have to skip first 3 bytes (init+payload length) (-1 because of < instead of <=)
payloadLength+=3
// payload length does also not contain crc, so we are adding another 2 bytes for crc
payloadLength+=2
if(payloadLength<usize)
{
// calculate crc
crcrest 1,0xFFFF
// u[2] contains payload legth at 3rd pos in buffer, we are calculating crc from 3rd pos with number of bytes from payload length
//crcputu 3,u[2]
// u[2] cotnains payload length, we are calculating a crc over the whole message, so we have to add 3 to the length from u[2]
crcputu 0,payloadLength-1
// get recived crc to be able to compare it
ucopy recvCrc,payloadLength-1,2,0
// compare crc with recived value
if(crcval==recvCrc)
{
// crc is okay
// here is the location where acual code should be
// write command to variable strCommand
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="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=="")
{
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMainTextAlt2,0
vis tMainIconAlt2,0
//tMainIcon
spstr strCommand.txt,tMainIcon.txt,"~",3
tMainIconAlt.txt=tMainIcon.txt
//tMainIcon Color
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
//tMainText
spstr strCommand.txt,tMainText.txt,"~",6
tMainTextAlt.txt=tMainText.txt
//tForecast1
spstr strCommand.txt,tForecast1.txt,"~",11
//tF1Icon
spstr strCommand.txt,tF1Icon.txt,"~",9
//tF1Icon Color
spstr strCommand.txt,tTmp.txt,"~",10
covx tTmp.txt,tF1Icon.pco,0,0
//tForecast1Val
spstr strCommand.txt,tForecast1Val.txt,"~",12
//tForecast2
spstr strCommand.txt,tForecast2.txt,"~",17
//tF2Icon
spstr strCommand.txt,tF2Icon.txt,"~",15
//tF2Icon Color
spstr strCommand.txt,tTmp.txt,"~",16
covx tTmp.txt,tF2Icon.pco,0,0
//tForecast2Val
spstr strCommand.txt,tForecast2Val.txt,"~",18
//tForecast3
spstr strCommand.txt,tForecast3.txt,"~",23
//tF3Icon
spstr strCommand.txt,tF3Icon.txt,"~",21
//tF3Icon Color
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,tF3Icon.pco,0,0
//tForecast3Val
spstr strCommand.txt,tForecast3Val.txt,"~",24
//tForecast4
spstr strCommand.txt,tForecast4.txt,"~",29
//tF4Icon
spstr strCommand.txt,tF4Icon.txt,"~",27
//tF4Icon Color
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,tF4Icon.pco,0,0
//tForecast4Val
spstr strCommand.txt,tForecast4Val.txt,"~",30
//alternative layout
//tMainTextAlt2
spstr strCommand.txt,tMainTextAlt2.txt,"~",36
//tMainIconAlt2
spstr strCommand.txt,tMainIconAlt2.txt,"~",33
//tMainIconAlt2 Color
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,tMainIconAlt2.pco,0,0
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
//value for tMRIcon, activate alternative layout
vis tMainIcon,0
vis tMainText,0
vis tMainTextAlt,1
vis tMainIconAlt,1
vis tMainTextAlt2,1
vis tMainIconAlt2,1
vis tForecast1,0
vis tF1Icon,0
vis tForecast1Val,0
//move forecast values to the right
tForecast4.txt=tForecast3.txt
tForecast3.txt=tForecast2.txt
tForecast2.txt=tForecast1.txt
tForecast4Val.txt=tForecast3Val.txt
tForecast3Val.txt=tForecast2Val.txt
tForecast2Val.txt=tForecast1Val.txt
tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt
}
}
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)
{
screensaver.bco=tTime.bco
tAMPM.bco=tTime.bco
tDate.bco=tTime.bco
tMainIcon.bco=tTime.bco
tMainText.bco=tTime.bco
tMainIconAlt.bco=tTime.bco
tMainTextAlt.bco=tTime.bco
tMainTextAlt2.bco=tTime.bco
tMainIconAlt2.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco
tForecast1Val.bco=tTime.bco
tF1Icon.bco=tTime.bco
tForecast2.bco=tTime.bco
tForecast2Val.bco=tTime.bco
tF2Icon.bco=tTime.bco
tForecast3.bco=tTime.bco
tForecast3Val.bco=tTime.bco
tF3Icon.bco=tTime.bco
tForecast4.bco=tTime.bco
tForecast4Val.bco=tTime.bco
tF4Icon.bco=tTime.bco
tTimeAdd.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
tMainTextAlt.pco=tMainText.pco
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,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,tTimeAdd.pco,0,0
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
tForecast4Val.pco=tForecast3Val.pco
tForecast3Val.pco=tForecast2Val.pco
tForecast2Val.pco=tForecast1Val.pco
tForecast4.pco=tForecast3.pco
tForecast3.pco=tForecast2.pco
tForecast2.pco=tForecast1.pco
}
}
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
}
}
if(tInstruction.txt=="pageType")
{
dim=100
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
}
if(tInstruction.txt=="timeout")
{
//set timeout to global var
spstr strCommand.txt,tTmp.txt,"~",1
covx tTmp.txt,sleepTimeout,0,0
}
// end of user code
udelete payloadLength-1
bufferPos=0
}
}
}
}
// next character
bufferPos++
}
}

View File

@@ -0,0 +1,313 @@
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=="")
{
vis tMainIcon,1
vis tMainIconAlt,0
vis tMainText,1
vis tMainTextAlt,0
vis tMainTextAlt2,0
vis tMainIconAlt2,0
//tMainIcon
spstr strCommand.txt,tMainIcon.txt,"~",3
tMainIconAlt.txt=tMainIcon.txt
//tMainIcon Color
spstr strCommand.txt,tTmp.txt,"~",4
covx tTmp.txt,tMainIcon.pco,0,0
tMainIconAlt.pco=tMainIcon.pco
//tMainText
spstr strCommand.txt,tMainText.txt,"~",6
tMainTextAlt.txt=tMainText.txt
"""
start = 7
for i in range(1,5):
idxstart = start + (i-1)*6
item = f"""
//tForecast{i}
spstr strCommand.txt,tForecast{i}.txt,"~",{idxstart+4}
//tF{i}Icon
spstr strCommand.txt,tF{i}Icon.txt,"~",{idxstart+2}
//tF{i}Icon Color
spstr strCommand.txt,tTmp.txt,"~",{idxstart+3}
covx tTmp.txt,tF{i}Icon.pco,0,0
//tForecast{i}Val
spstr strCommand.txt,tForecast{i}Val.txt,"~",{idxstart+5}
"""
head = head + item
head = head + """
//alternative layout
//tMainTextAlt2
spstr strCommand.txt,tMainTextAlt2.txt,"~",36
//tMainIconAlt2
spstr strCommand.txt,tMainIconAlt2.txt,"~",33
//tMainIconAlt2 Color
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,tMainIconAlt2.pco,0,0
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
//value for tMRIcon, activate alternative layout
vis tMainIcon,0
vis tMainText,0
vis tMainTextAlt,1
vis tMainIconAlt,1
vis tMainTextAlt2,1
vis tMainIconAlt2,1
vis tForecast1,0
vis tF1Icon,0
vis tForecast1Val,0
//move forecast values to the right
tForecast4.txt=tForecast3.txt
tForecast3.txt=tForecast2.txt
tForecast2.txt=tForecast1.txt
tForecast4Val.txt=tForecast3Val.txt
tForecast3Val.txt=tForecast2Val.txt
tForecast2Val.txt=tForecast1Val.txt
tF4Icon.txt=tF3Icon.txt
tF3Icon.txt=tF2Icon.txt
tF2Icon.txt=tF1Icon.txt
}
}
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)
{
screensaver.bco=tTime.bco
tAMPM.bco=tTime.bco
tDate.bco=tTime.bco
tMainIcon.bco=tTime.bco
tMainText.bco=tTime.bco
tMainIconAlt.bco=tTime.bco
tMainTextAlt.bco=tTime.bco
tMainTextAlt2.bco=tTime.bco
tMainIconAlt2.bco=tTime.bco
tIcon1.bco=tTime.bco
tIcon2.bco=tTime.bco
tForecast1.bco=tTime.bco
tForecast1Val.bco=tTime.bco
tF1Icon.bco=tTime.bco
tForecast2.bco=tTime.bco
tForecast2Val.bco=tTime.bco
tF2Icon.bco=tTime.bco
tForecast3.bco=tTime.bco
tForecast3Val.bco=tTime.bco
tF3Icon.bco=tTime.bco
tForecast4.bco=tTime.bco
tForecast4Val.bco=tTime.bco
tF4Icon.bco=tTime.bco
tTimeAdd.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
tMainTextAlt.pco=tMainText.pco
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,tMR.pco,0,0
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,tTimeAdd.pco,0,0
if(tMainTextAlt2.txt!=""&&p0.w!=320)
{
tForecast4Val.pco=tForecast3Val.pco
tForecast3Val.pco=tForecast2Val.pco
tForecast2Val.pco=tForecast1Val.pco
tForecast4.pco=tForecast3.pco
tForecast3.pco=tForecast2.pco
tForecast2.pco=tForecast1.pco
}
}
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)

View File

@@ -166,44 +166,39 @@ sharedfoot = """
"""
navigation = """
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
"""

Binary file not shown.

Binary file not shown.

View File

@@ -4,7 +4,7 @@ unicode_ranges+="0100-017F," #Latin Extended-A
unicode_ranges+="0180-024F," #Latin Extended-B
#unicode_ranges+="0250-02AF," #IPA Extensions
#unicode_ranges+="02B0-02FF," #Spacing Modifier Letters
#unicode_ranges+="0300-036F," #Combining Diacritical Marks
unicode_ranges+="0300-036F," #Combining Diacritical Marks
unicode_ranges+="0370-03FF," #Greek/Coptic
unicode_ranges+="0400-04FF," #Cyrillic
#unicode_ranges+="0500-052F," #Cyrillic Supplement
@@ -55,7 +55,7 @@ unicode_ranges+="1E00-1EFF," #Latin Extended Additional
#unicode_ranges+="1F00-1FFF," #Greek Extended
#unicode_ranges+="2000-206F," #General Punctuation
#unicode_ranges+="2070-209F," #Superscripts and Subscripts
#unicode_ranges+="20A0-20CF," #Currency Symbols
unicode_ranges+="20A0-20CF," #Currency Symbols
#unicode_ranges+="20D0-20FF," #Combining Diacritical Marks for Symbols
#unicode_ranges+="2100-214F," #Letterlike Symbols
#unicode_ranges+="2150-218F," #Number Forms

BIN
HMI/fonts/test.zi Normal file

Binary file not shown.

View File

@@ -46,7 +46,7 @@ Page cardAlarm
vis bPrev,0
vis bNext,0
cardAlarm.bco=defaultBcoColor
for(sys0=0;sys0<40;sys0++)
for(sys0=0;sys0<44;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -72,12 +72,26 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 41
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 40
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 6
Scope : local
Text :
Max. Text Size: 200
Max. Text Size: 400
Variable (string) tSend
Attributes
@@ -151,6 +165,36 @@ Text tCode
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHeading
Attributes
ID : 42
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 65
y coordinate : 24
Width : 227
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 :
Max. Text Size : 40
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tIcon
Attributes
ID : 26
@@ -541,6 +585,11 @@ Button b0
Events
Touch Press Event
tCode.txt=tCode.txt+"1"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b1
Attributes
@@ -579,6 +628,11 @@ Button b1
Events
Touch Press Event
tCode.txt=tCode.txt+"2"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b10
Attributes
@@ -617,6 +671,11 @@ Button b10
Events
Touch Press Event
tCode.txt=tCode.txt+"0"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b11
Attributes
@@ -655,6 +714,11 @@ Button b11
Events
Touch Press Event
tCode.txt=""
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b2
Attributes
@@ -693,6 +757,11 @@ Button b2
Events
Touch Press Event
tCode.txt=tCode.txt+"3"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b3
Attributes
@@ -731,6 +800,11 @@ Button b3
Events
Touch Press Event
tCode.txt=tCode.txt+"4"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b4
Attributes
@@ -769,6 +843,11 @@ Button b4
Events
Touch Press Event
tCode.txt=tCode.txt+"5"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b5
Attributes
@@ -807,6 +886,11 @@ Button b5
Events
Touch Press Event
tCode.txt=tCode.txt+"6"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b6
Attributes
@@ -845,6 +929,11 @@ Button b6
Events
Touch Press Event
tCode.txt=tCode.txt+"7"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b7
Attributes
@@ -883,6 +972,11 @@ Button b7
Events
Touch Press Event
tCode.txt=tCode.txt+"8"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b8
Attributes
@@ -921,6 +1015,11 @@ Button b8
Events
Touch Press Event
tCode.txt=tCode.txt+"9"
vis tCode,1
if(p0.w!=320)
{
vis tHeading,0
}
Button b9
Attributes
@@ -1014,14 +1113,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1068,14 +1160,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1222,87 +1307,94 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
//entn
spstr strCommand.txt,entn.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
spstr strCommand.txt,tHeading.txt,"~",1
if(tHeading.txt=="unknown")
{
tHeading.txt=""
}
if(tHeading.txt!="")
{
vis tHeading,1
}else
{
vis tHeading,0
}
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entn
spstr strCommand.txt,entn.txt,"~",14
//text arm1
spstr strCommand.txt,arm1.txt,"~",3
spstr strCommand.txt,arm1.txt,"~",15
if(arm1.txt!="")
{
vis arm1,1
}
//id arm1
spstr strCommand.txt,va1.txt,"~",4
spstr strCommand.txt,va1.txt,"~",16
//text arm2
spstr strCommand.txt,arm2.txt,"~",5
spstr strCommand.txt,arm2.txt,"~",17
if(arm2.txt!="")
{
vis arm2,1
}
//id arm2
spstr strCommand.txt,va2.txt,"~",6
spstr strCommand.txt,va2.txt,"~",18
//text arm3
spstr strCommand.txt,arm3.txt,"~",7
spstr strCommand.txt,arm3.txt,"~",19
if(arm3.txt!="")
{
vis arm3,1
}
//id arm3
spstr strCommand.txt,va3.txt,"~",8
spstr strCommand.txt,va3.txt,"~",20
//text arm4
spstr strCommand.txt,arm4.txt,"~",9
spstr strCommand.txt,arm4.txt,"~",21
if(arm4.txt!="")
{
vis arm4,1
}
//id arm4
spstr strCommand.txt,va4.txt,"~",10
spstr strCommand.txt,va4.txt,"~",22
//icon
spstr strCommand.txt,tIcon.txt,"~",11
spstr strCommand.txt,tIcon.txt,"~",23
//icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon.pco=sys0
//numpad status
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",25
if(tTmp.txt!="disable")
{
vis b0,1
@@ -1317,7 +1409,13 @@ Timer tmSerial
vis b9,1
vis b10,1
vis b11,1
vis tCode,1
if(tHeading.txt!="")
{
vis tCode,0
}else
{
vis tCode,1
}
}else
{
vis b0,0
@@ -1335,7 +1433,7 @@ Timer tmSerial
vis tCode,0
}
//flashing status
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",26
if(tTmp.txt=="enable")
{
tmFlash.en=1
@@ -1344,13 +1442,13 @@ Timer tmSerial
tmFlash.en=0
}
// extra button
spstr strCommand.txt,b9.txt,"~",15
spstr strCommand.txt,b9.txt,"~",27
if(b9.txt!="")
{
vis b9,1
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,b9.pco,0,0
spstr strCommand.txt,vaAddBtn.txt,"~",17
spstr strCommand.txt,vaAddBtn.txt,"~",29
}
}
if(tInstruction.txt=="time")
@@ -1459,6 +1557,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -58,6 +58,20 @@ Variable (string) entn
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 32
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 31
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
@@ -280,14 +294,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -334,14 +341,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardChart,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -559,48 +559,42 @@ Timer tmSerial
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// extract color
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
@@ -612,7 +606,7 @@ Timer tmSerial
//
// detect nValues and maxValue
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
while(sya0>0)
{
@@ -623,7 +617,7 @@ Timer tmSerial
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+6
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+17
strlen tTmp.txt,sya0
}
//
@@ -638,7 +632,7 @@ Timer tmSerial
//
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+10,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
spstr strCommand.txt,strTmp.txt,"~",5
spstr strCommand.txt,strTmp.txt,"~",16
sya1=0
spstr strTmp.txt,tTmp.txt,":",sya1
strlen tTmp.txt,sya0
@@ -671,7 +665,7 @@ Timer tmSerial
}
//
// y achis label
spstr strCommand.txt,tTmp.txt,"~",4
spstr strCommand.txt,tTmp.txt,"~",15
// tTmp.txt="Gas [kW]"
strlen tTmp.txt,sys1
sya1=sys1*12+m0.h-48/2
@@ -687,7 +681,7 @@ Timer tmSerial
vaValues.txt+="~"
}
// extract next entry
spstr strCommand.txt,tTmp.txt,"~",sys0+6
spstr strCommand.txt,tTmp.txt,"~",sys0+17
// calculate left
sys1=sys0*5*vaUnit.val
sys1+=vaLeft.val
@@ -853,6 +847,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

View File

@@ -74,7 +74,7 @@ Page cardEntities
vis bPrev,0
vis bNext,0
cardEntities.bco=defaultBcoColor
for(sys0=0;sys0<65;sys0++)
for(sys0=0;sys0<67;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==54)
{
@@ -96,28 +96,42 @@ Page cardEntities
Variable (string) entn1
Attributes
ID : 44
ID : 42
Scope : local
Text :
Max. Text Size: 80
Variable (string) entn2
Attributes
ID : 45
ID : 43
Scope : local
Text :
Max. Text Size: 80
Variable (string) entn3
Attributes
ID : 46
ID : 44
Scope : local
Text :
Max. Text Size: 80
Variable (string) entn4
Attributes
ID : 47
ID : 45
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 63
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 64
Scope : local
Text :
Max. Text Size: 80
@@ -131,42 +145,42 @@ Variable (string) strCommand
Variable (string) tSend
Attributes
ID : 64
ID : 62
Scope : local
Text :
Max. Text Size: 200
Variable (string) type1
Attributes
ID : 40
ID : 38
Scope : local
Text :
Max. Text Size: 10
Variable (string) type2
Attributes
ID : 41
ID : 39
Scope : local
Text :
Max. Text Size: 10
Variable (string) type3
Attributes
ID : 42
ID : 40
Scope : local
Text :
Max. Text Size: 10
Variable (string) type4
Attributes
ID : 43
ID : 41
Scope : local
Text :
Max. Text Size: 10
Number nNum1
Attributes
ID : 53
ID : 51
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -196,7 +210,7 @@ Number nNum1
Number nNum2
Attributes
ID : 54
ID : 52
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -226,7 +240,7 @@ Number nNum2
Number nNum3
Attributes
ID : 55
ID : 53
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -256,7 +270,7 @@ Number nNum3
Number nNum4
Attributes
ID : 56
ID : 54
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -663,7 +677,7 @@ Picture p0
Slider hSlider1
Attributes
ID : 49
ID : 47
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -706,7 +720,7 @@ Slider hSlider1
Slider hSlider2
Attributes
ID : 50
ID : 48
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -749,7 +763,7 @@ Slider hSlider2
Slider hSlider3
Attributes
ID : 51
ID : 49
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -792,7 +806,7 @@ Slider hSlider3
Slider hSlider4
Attributes
ID : 52
ID : 50
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1023,7 +1037,7 @@ Button bDown4
Button bNext
Attributes
ID : 33
ID : 65
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1055,14 +1069,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1077,7 +1084,7 @@ Button bNext
Button bPrev
Attributes
ID : 32
ID : 66
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1109,14 +1116,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardEntities,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1319,7 +1319,7 @@ Button bStop4
Button bText1
Attributes
ID : 60
ID : 58
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1366,7 +1366,7 @@ Button bText1
Button bText2
Attributes
ID : 61
ID : 59
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1413,7 +1413,7 @@ Button bText2
Button bText3
Attributes
ID : 62
ID : 60
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1460,7 +1460,7 @@ Button bText3
Button bText4
Attributes
ID : 63
ID : 61
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1875,7 +1875,7 @@ Dual-state Button btOnOff4
Hotspot m0
Attributes
ID : 38
ID : 36
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1919,7 +1919,7 @@ Hotspot m0
Hotspot m1
Attributes
ID : 37
ID : 35
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -1963,7 +1963,7 @@ Hotspot m1
Hotspot m2
Attributes
ID : 36
ID : 34
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2007,7 +2007,7 @@ Hotspot m2
Hotspot m3
Attributes
ID : 39
ID : 37
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2051,7 +2051,7 @@ Hotspot m3
Hotspot mSpecial
Attributes
ID : 34
ID : 32
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2077,7 +2077,7 @@ Hotspot mSpecial
Hotspot mSwipeNext
Attributes
ID : 57
ID : 55
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2097,7 +2097,7 @@ Hotspot mSwipeNext
Hotspot mSwipePrev
Attributes
ID : 59
ID : 57
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2117,7 +2117,7 @@ Hotspot mSwipePrev
Hotspot mSwipeUp
Attributes
ID : 58
ID : 56
Scope : local
Dragging : 0
Disable release event after dragging: 0
@@ -2191,50 +2191,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,displayName,optionalValue]x4
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis bUp1,0
@@ -2249,14 +2243,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",5
spstr strCommand.txt,tIcon1.txt,"~",16
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
if(type1.txt=="shutter")
@@ -2269,7 +2263,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",8
spstr strCommand.txt,tId.txt,"~",19
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2320,7 +2314,7 @@ Timer tmSerial
vis hSlider1,0
vis nNum1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -2337,7 +2331,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="button"||type1.txt=="input_sel")
{
@@ -2352,7 +2346,7 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
}
if(type1.txt=="number")
{
@@ -2365,7 +2359,7 @@ Timer tmSerial
vis hSlider1,1
vis nNum1,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText1.txt,"~",8
spstr strCommand.txt,bText1.txt,"~",19
//first value is current value
spstr bText1.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2381,9 +2375,9 @@ Timer tmSerial
hSlider1.maxval=sys0
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis bUp2,0
@@ -2398,14 +2392,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",11
spstr strCommand.txt,tIcon2.txt,"~",22
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
if(type2.txt=="shutter")
@@ -2418,7 +2412,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",14
spstr strCommand.txt,tId.txt,"~",25
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2469,7 +2463,7 @@ Timer tmSerial
vis hSlider2,0
vis nNum2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",25
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -2486,7 +2480,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="button"||type2.txt=="input_sel")
{
@@ -2501,7 +2495,7 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
}
if(type2.txt=="number")
{
@@ -2514,7 +2508,7 @@ Timer tmSerial
vis hSlider2,1
vis nNum2,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText2.txt,"~",14
spstr strCommand.txt,bText2.txt,"~",25
//first value is current value
spstr bText2.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2530,9 +2524,9 @@ Timer tmSerial
hSlider2.maxval=sys0
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis bUp3,0
@@ -2547,14 +2541,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon3.txt,"~",17
spstr strCommand.txt,tIcon3.txt,"~",28
vis tIcon3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
tIcon3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
if(type3.txt=="shutter")
@@ -2567,7 +2561,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",20
spstr strCommand.txt,tId.txt,"~",31
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2618,7 +2612,7 @@ Timer tmSerial
vis hSlider3,0
vis nNum3,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",31
covx tTmp.txt,sys0,0,0
btOnOff3.val=sys0
}
@@ -2635,7 +2629,7 @@ Timer tmSerial
bText3.pco=65535
bText3.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="button"||type3.txt=="input_sel")
{
@@ -2650,7 +2644,7 @@ Timer tmSerial
bText3.pco=1374
bText3.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
}
if(type3.txt=="number")
{
@@ -2663,7 +2657,7 @@ Timer tmSerial
vis hSlider3,1
vis nNum3,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText3.txt,"~",20
spstr strCommand.txt,bText3.txt,"~",31
//first value is current value
spstr bText3.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2679,9 +2673,9 @@ Timer tmSerial
hSlider3.maxval=sys0
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis bUp4,0
@@ -2696,14 +2690,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon4.txt,"~",23
spstr strCommand.txt,tIcon4.txt,"~",34
vis tIcon4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
tIcon4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
if(type4.txt=="shutter")
@@ -2716,7 +2710,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tId.txt,"~",26
spstr strCommand.txt,tId.txt,"~",37
// up button
spstr tId.txt,tTmp.txt,"|",3
if(tTmp.txt=="disable")
@@ -2767,7 +2761,7 @@ Timer tmSerial
vis hSlider4,0
vis nNum4,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",37
covx tTmp.txt,sys0,0,0
btOnOff4.val=sys0
}
@@ -2784,7 +2778,7 @@ Timer tmSerial
bText4.pco=65535
bText4.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="button"||type4.txt=="input_sel")
{
@@ -2799,7 +2793,7 @@ Timer tmSerial
bText4.pco=1374
bText4.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
}
if(type4.txt=="number")
{
@@ -2812,7 +2806,7 @@ Timer tmSerial
vis hSlider4,1
vis nNum4,1
// get config (optional Value) (use bText as variable)
spstr strCommand.txt,bText4.txt,"~",26
spstr strCommand.txt,bText4.txt,"~",37
//first value is current value
spstr bText4.txt,tTmp.txt,"|",0
covx tTmp.txt,sys0,0,0
@@ -2896,6 +2890,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{
@@ -2949,7 +2947,7 @@ Timer tmSerial
Timer tmSleep
Attributes
ID : 35
ID : 33
Scope : local
Period (ms): 1000
Enabled : yes
@@ -2980,7 +2978,7 @@ Timer tmSleep
TouchCap tc0
Attributes
ID : 48
ID : 46
Scope: local
Value: 0

View File

@@ -96,12 +96,26 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 42
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 43
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 500
Max. Text Size: 700
Variable (string) tSend
Attributes
@@ -905,14 +919,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -933,9 +940,9 @@ Button bPrev
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 9
x coordinate : 10
y coordinate : 16
Width : 50
Width : 49
Height : 50
Effect : load
Effect Priority : 0
@@ -959,14 +966,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardGrid,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1139,50 +1139,44 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// get Type
spstr strCommand.txt,type1.txt,"~",3
spstr strCommand.txt,type1.txt,"~",14
// get internal name
spstr strCommand.txt,entn1.txt,"~",4
spstr strCommand.txt,entn1.txt,"~",15
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -1190,20 +1184,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",5
spstr strCommand.txt,bEntity1.txt,"~",16
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",17
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",7
spstr strCommand.txt,tEntity1.txt,"~",18
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",9
spstr strCommand.txt,type2.txt,"~",20
// get internal name
spstr strCommand.txt,entn2.txt,"~",10
spstr strCommand.txt,entn2.txt,"~",21
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -1211,20 +1205,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",11
spstr strCommand.txt,bEntity2.txt,"~",22
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",23
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",13
spstr strCommand.txt,tEntity2.txt,"~",24
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",15
spstr strCommand.txt,type3.txt,"~",26
// get internal name
spstr strCommand.txt,entn3.txt,"~",16
spstr strCommand.txt,entn3.txt,"~",27
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -1232,20 +1226,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",17
spstr strCommand.txt,bEntity3.txt,"~",28
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",29
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",19
spstr strCommand.txt,tEntity3.txt,"~",30
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",21
spstr strCommand.txt,type4.txt,"~",32
// get internal name
spstr strCommand.txt,entn4.txt,"~",22
spstr strCommand.txt,entn4.txt,"~",33
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -1253,20 +1247,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",23
spstr strCommand.txt,bEntity4.txt,"~",34
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",35
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",25
spstr strCommand.txt,tEntity4.txt,"~",36
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",27
spstr strCommand.txt,type5.txt,"~",38
// get internal name
spstr strCommand.txt,entn5.txt,"~",28
spstr strCommand.txt,entn5.txt,"~",39
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -1274,20 +1268,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",29
spstr strCommand.txt,bEntity5.txt,"~",40
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",30
spstr strCommand.txt,tTmp.txt,"~",41
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",31
spstr strCommand.txt,tEntity5.txt,"~",42
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",33
spstr strCommand.txt,type6.txt,"~",44
// get internal name
spstr strCommand.txt,entn6.txt,"~",34
spstr strCommand.txt,entn6.txt,"~",45
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -1295,14 +1289,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",35
spstr strCommand.txt,bEntity6.txt,"~",46
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",36
spstr strCommand.txt,tTmp.txt,"~",47
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",37
spstr strCommand.txt,tEntity6.txt,"~",48
vis tEntity6,1
}
}
@@ -1374,6 +1368,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -0,0 +1,866 @@
Page cardLChart
Attributes
ID : 0
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
Width : 480
Effect : load
Effect Priority : 0
Effect Time : 300
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID : disabled
Fill : solid color
Back. Color : 6371
Events
Preinitialize Event
dim=dimValueNormal
vis p0,0
vis tSend,0
vis tInstruction,0
vis tTmp,0
vis tId,0
vis bPrev,0
vis bNext,0
cardLChart.bco=defaultBcoColor
//vis x0,0
//x0.bco=defaultBcoColor
//x0.borderc=defaultBcoColor
for(sys0=0;sys0<32;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
}
if(b[sys0].type==53&&defaultBcoColor==6371)
{
b[sys0].pic=1
b[sys0].pic2=2
}
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
Variable (string) entn
Attributes
ID : 6
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 32
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 31
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
Scope : local
Text :
Max. Text Size: 512
Variable (string) strTmp
Attributes
ID : 18
Scope : local
Text :
Max. Text Size: 200
Variable (string) tId
Attributes
ID : 14
Scope : local
Text :
Max. Text Size: 20
Variable (string) tInstruction
Attributes
ID : 15
Scope : local
Text :
Max. Text Size: 20
Variable (string) tSend
Attributes
ID : 9
Scope : local
Text :
Max. Text Size: 200
Variable (string) tTmp
Attributes
ID : 13
Scope : local
Text :
Max. Text Size: 400
Variable (int32) vNValues
Attributes
ID : 17
Scope: local
Value: 0
Variable (int32) vaBottom
Attributes
ID : 22
Scope: local
Value: 0
Variable (int32) vaColorD
Attributes
ID : 25
Scope: local
Value: 0
Variable (int32) vaColorL
Attributes
ID : 24
Scope: local
Value: 0
Variable (int32) vaLeft
Attributes
ID : 23
Scope: local
Value: 0
Variable (int32) vaMaxX
Attributes
ID : 27
Scope: local
Value: 2147483648
Variable (int32) vaMaxY
Attributes
ID : 26
Scope: local
Value: 0
Variable (int32) vaMinX
Attributes
ID : 29
Scope: local
Value: 2147483647
Variable (int32) vaMinY
Attributes
ID : 30
Scope: local
Value: 2147483647
Variable (int32) vaValue
Attributes
ID : 21
Scope: local
Value: 0
Variable (int32) vaXUnit
Attributes
ID : 20
Scope: local
Value: 0
Variable (int32) vaYUnit
Attributes
ID : 28
Scope: local
Value: 0
Text tHeading
Attributes
ID : 16
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 66
y coordinate : 26
Width : 320
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 :
Max. Text Size : 40
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture p0
Attributes
ID : 1
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 0
Width : 480
Height : 320
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 0
Button bNext
Attributes
ID : 2
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 391
y coordinate : 16
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 3
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 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,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Button bPrev
Attributes
ID : 3
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 9
y coordinate : 16
Width : 50
Height : 50
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Font ID : 3
Back. Color : 6371
Back. Picture ID (Pressed) : 65535
Back. Color (Pressed) : 14823
Font Color (Unpressed) : 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,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
Hotspot m0
Attributes
ID : 19
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 90
Width : 410
Height : 220
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
//fill m0.x,m0.y,m0.w,m0.h,RED
Hotspot mSwipeNext
Attributes
ID : 10
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 440
y coordinate : 5
Width : 39
Height : 310
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bNext,1
Hotspot mSwipePrev
Attributes
ID : 12
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 9
Height : 310
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bPrev,1
Hotspot mSwipeUp
Attributes
ID : 11
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 12
y coordinate : 0
Width : 426
Height : 9
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
click bPrev,1
Timer tmSerial
Attributes
ID : 4
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
ucopy strCommand.txt,4,payloadLength-5,0
// write instruction to tInstuction (debug output, but used as variable here, ui elements will be disabled by default)
spstr strCommand.txt,tInstruction.txt,"~",0
if(tInstruction.txt=="entityUpd")
{
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
}
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
}
//draw m0.x,m0.y,m0.x+m0.w,m0.y+m0.h,RED
// extract color
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,vaColorL.val,0,0
// prepare dark color
sys0=vaColorL.val>>11 // red
vaColorD.val=sys0*8/10<<11 // store and shift
sys0=vaColorL.val>>5%64 // green
vaColorD.val=sys0*8/10<<5+vaColorD.val // store and shift
sys0=vaColorL.val%32
vaColorD.val=sys0*8/10+vaColorD.val // store and add
//
// detect nValues and maxX/Y
vNValues.val=0
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
while(sya0>0)
{
//tHeading.txt="last value="+tTmp.txt
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxX.val)
{
vaMaxX.val=sya1
}
if(sya1<vaMinX.val)
{
vaMinX.val=sya1
}
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
if(sya1>vaMaxY.val)
{
vaMaxY.val=sya1
}
if(sya1<vaMinY.val)
{
vaMinY.val=sya1
}
// next
vNValues.val++
spstr strCommand.txt,tTmp.txt,"~",vNValues.val+18
strlen tTmp.txt,sya0
}
// find first given y axis labels
spstr strCommand.txt,tTmp.txt,"~",16 // labels in tTmp.txt
sys0=0 // <= result (here: first label value)
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>vaMinY.val)
{
sys0--
if(sys0>=0)
{
// found a y-tick => take is at min...
spstr tTmp.txt,strTmp.txt,":",sys0
covx strTmp.txt,vaMinY.val,0,0
}
sya0=0
}else
{
// next
sys0++
spstr tTmp.txt,strTmp.txt,":",sys0
strlen strTmp.txt,sya0
}
}
sys1=sys0+1 // last label
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
while(sya0>0)
{
covx strTmp.txt,sya1,0,0
if(sya1>=vaMaxY.val)
{
vaMaxY.val=sya1
sya0=0
}else
{
// next
sys1++
spstr tTmp.txt,strTmp.txt,":",sys1
strlen strTmp.txt,sya0
}
}
// get first given x axis tick
spstr strCommand.txt,strTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
covx strTmp.txt,vaMinX.val,0,0
// covx vaMinX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt+":"
// covx vaMaxX.val,strTmp.txt,0,0
// tHeading.txt+=strTmp.txt
// calculate unit width
vaBottom.val=m0.y+m0.h-24
vaLeft.val=m0.x+25+40*100
sya1=vaMaxX.val-vaMinX.val
vaXUnit.val=m0.w-25-40*100/sya1
sya1=vaMaxY.val-vaMinY.val
vaYUnit.val=m0.h-24*100/sya1
// draw labels
// labels still in tTmp.txt
line m0.x+25+40-10,m0.y,m0.x+25+40-10,vaBottom.val+5,14823
line m0.x+25+40-5,vaBottom.val,m0.x+25+40-15,vaBottom.val,14823
if(sys0>0)
{
sys0--
}
for(sya0=sys0;sya0<=sys1;sya0++)
{
spstr tTmp.txt,strTmp.txt,":",sya0
covx strTmp.txt,sya1,0,0
sys2=sya1%10
sya1/=10
if(sya1>0)
{
covx sya1,strTmp.txt,0,0
}else
{
strTmp.txt=""
}
if(sys2!=0)
{
covx sys2,tId.txt,0,0
strTmp.txt=strTmp.txt+"."+tId.txt
}
sya1*=10+sys2
sya1-=vaMinY.val
xstr m0.x+28,-1*vaYUnit.val*sya1/100+vaBottom.val-10,20,20,0,defaultFontColor,RED,2,1,3,strTmp.txt
line m0.x+25+40-5,-1*vaYUnit.val*sya1/100+vaBottom.val,m0.x+25+40-15,-1*vaYUnit.val*sya1/100+vaBottom.val,14823
}
// y achis label
spstr strCommand.txt,tTmp.txt,"~",15
strlen tTmp.txt,sys1
sya1=sys1*11+m0.h-48/2
for(sys0=0;sys0<sys1;sys0++)
{
substr tTmp.txt,strTmp.txt,sys0,1
xstr m0.x,sys0*-11+m0.y+sya1,24,20,6,defaultFontColor,RED,2,1,3,strTmp.txt
}
//
// x axis tick/labels
// draw bottom line
line m0.x+25+40,vaBottom.val,m0.x+m0.w,vaBottom.val,14823
spstr strCommand.txt,tTmp.txt,"~",17 // X-Axis ticks & labels in strTmp.txt
//
sys1=0
// extract first tick ~> sya1 contains fist ticks value
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
// loop until current ticks label is smaller than the maximum value observed
while(sya0>0&&sya1<vaMaxX.val)
{
sys2=sya1-vaMinX.val*vaXUnit.val/100+m0.x+25+40
// draw tick line
line sys2,vaBottom.val-5,sys2,vaBottom.val+5,14823
// check for label
spstr strTmp.txt,strTmp.txt,"^",1
strlen strTmp.txt,sya0
if(sya0>0)
{
// label found ~> draw
xstr -6*sya0+sys2,vaBottom.val+2,sya0*12,22,0,defaultFontColor,defaultBcoColor,1,1,3,strTmp.txt
}
// next ~> sya1 contains next ticks label
sys1++
spstr tTmp.txt,strTmp.txt,"+",sys1
strlen strTmp.txt,sya0
covx strTmp.txt,sya1,0,0
}
//
// draw line segments...
sys1=-2147483648
sys2=-2147483648
for(sys0=0;sys0<vNValues.val;sys0++)
{
// extract x:y from "~" separated payload
spstr strCommand.txt,tTmp.txt,"~",sys0+18
spstr tTmp.txt,strTmp.txt,":",0
covx strTmp.txt,sya0,0,0
spstr tTmp.txt,strTmp.txt,":",1
covx strTmp.txt,sya1,0,0
sya0=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
sya1=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
// draw circle
// cir sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,3,vaColorL.val
if(sys1>0&&sys2>0)
{
// this is not the first point as the last one has been stored in (sys1,sys2)
// ~> connect with a line...
//line sys1,sys2,sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40,sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val,vaColorD.val
line sys1,sys2,sya0,sya1,vaColorD.val
//line sys1-1,sys2-1,sya0-1,sya1-1,vaColorL.val
//line sys1+1,sys2+1,sya0+1,sya1+1,vaColorL.val
}
// store current point to (sys1,sys2)
//sys1=sya0-vaMinX.val*vaXUnit.val/100+m0.x+25+40
//sys2=sya1-vaMinY.val*vaYUnit.val/-100+vaBottom.val
sys1=sya0
sys2=sya1
}
}
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")
{
sleepValue=0
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,"~",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,"~",2
//save third arg if there's one
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete payloadLength-1
bufferPos=0
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="screensaver")
{
page screensaver
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardGrid")
{
page cardGrid
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="popupShutter")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupShutter
}
if(tId.txt=="popupNotify")
{
page popupNotify
}
if(tId.txt=="cardThermo")
{
page cardThermo
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="cardAlarm")
{
page cardAlarm
}
if(tId.txt=="cardQR")
{
page cardQR
}
if(tId.txt=="cardPower")
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// 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&&dimValue!=dim)
{
sleepValue+=1
if(sleepTimeout<=sleepValue)
{
sleepValue=0
dim=dimValue
tSend.txt="event,sleepReached,cardAlarm"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
crcputh 55 bb
crcputs sys0,2
crcputs tSend.txt,0
//send cmd
printh 55 bb
prints sys0,2
prints tSend.txt,0
prints crcval,2
}
}
TouchCap tc0
Attributes
ID : 8
Scope: local
Value: 0
Events
Touch Press Event
sleepValue=0

View File

@@ -37,7 +37,7 @@ Page cardMedia
vis bEntity5,0
vis bEntity6,0
cardMedia.bco=defaultBcoColor
for(sys0=0;sys0<34;sys0++)
for(sys0=0;sys0<54;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -101,6 +101,20 @@ Variable (string) entn6
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 58
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 57
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
@@ -1200,14 +1214,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1254,14 +1261,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardMedia,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -1419,72 +1419,66 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//entity name
spstr strCommand.txt,entn.txt,"~",3
spstr strCommand.txt,entn.txt,"~",14
//title
spstr strCommand.txt,tTitle.txt,"~",4
spstr strCommand.txt,tTitle.txt,"~",15
//title farbe
spstr strCommand.txt,tTmp.txt,"~",5
spstr strCommand.txt,tTmp.txt,"~",16
if(tTmp.txt!="")
{
covx tTmp.txt,tTitle.pco,0,0
}
//author
spstr strCommand.txt,tAuthor.txt,"~",6
spstr strCommand.txt,tAuthor.txt,"~",17
//author farbe
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
if(tTmp.txt!="")
{
covx tTmp.txt,tAuthor.pco,0,0
}
//volume
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",19
covx tTmp.txt,sys0,0,0
hVolume.val=sys0
//icon
spstr strCommand.txt,tPlayPause.txt,"~",9
spstr strCommand.txt,tPlayPause.txt,"~",20
// on off button
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",21
if(tTmp.txt=="disable")
{
vis t5,0
@@ -1494,7 +1488,7 @@ Timer tmSerial
covx tTmp.txt,t5.pco,0,0
}
// shuffel btn
spstr strCommand.txt,tTmp.txt,"~",11
spstr strCommand.txt,tTmp.txt,"~",22
if(tTmp.txt=="disable")
{
vis tShuffle,0
@@ -1504,9 +1498,9 @@ Timer tmSerial
tShuffle.txt=tTmp.txt
}
// get Type
spstr strCommand.txt,type1.txt,"~",12
spstr strCommand.txt,type1.txt,"~",23
// get internal name
spstr strCommand.txt,entn1.txt,"~",13
spstr strCommand.txt,entn1.txt,"~",24
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
@@ -1514,20 +1508,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity1.txt,"~",14
spstr strCommand.txt,bEntity1.txt,"~",25
vis bEntity1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
bEntity1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",16
spstr strCommand.txt,tEntity1.txt,"~",27
vis tEntity1,1
}
// get Type
spstr strCommand.txt,type2.txt,"~",18
spstr strCommand.txt,type2.txt,"~",29
// get internal name
spstr strCommand.txt,entn2.txt,"~",19
spstr strCommand.txt,entn2.txt,"~",30
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
@@ -1535,20 +1529,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity2.txt,"~",20
spstr strCommand.txt,bEntity2.txt,"~",31
vis bEntity2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",21
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,sys0,0,0
bEntity2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",22
spstr strCommand.txt,tEntity2.txt,"~",33
vis tEntity2,1
}
// get Type
spstr strCommand.txt,type3.txt,"~",24
spstr strCommand.txt,type3.txt,"~",35
// get internal name
spstr strCommand.txt,entn3.txt,"~",25
spstr strCommand.txt,entn3.txt,"~",36
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
@@ -1556,20 +1550,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity3.txt,"~",26
spstr strCommand.txt,bEntity3.txt,"~",37
vis bEntity3,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",27
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,sys0,0,0
bEntity3.pco=sys0
// set name
spstr strCommand.txt,tEntity3.txt,"~",28
spstr strCommand.txt,tEntity3.txt,"~",39
vis tEntity3,1
}
// get Type
spstr strCommand.txt,type4.txt,"~",30
spstr strCommand.txt,type4.txt,"~",41
// get internal name
spstr strCommand.txt,entn4.txt,"~",31
spstr strCommand.txt,entn4.txt,"~",42
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
@@ -1577,20 +1571,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity4.txt,"~",32
spstr strCommand.txt,bEntity4.txt,"~",43
vis bEntity4,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",33
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,sys0,0,0
bEntity4.pco=sys0
// set name
spstr strCommand.txt,tEntity4.txt,"~",34
spstr strCommand.txt,tEntity4.txt,"~",45
vis tEntity4,1
}
// get Type
spstr strCommand.txt,type5.txt,"~",36
spstr strCommand.txt,type5.txt,"~",47
// get internal name
spstr strCommand.txt,entn5.txt,"~",37
spstr strCommand.txt,entn5.txt,"~",48
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
@@ -1598,20 +1592,20 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity5.txt,"~",38
spstr strCommand.txt,bEntity5.txt,"~",49
vis bEntity5,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",39
spstr strCommand.txt,tTmp.txt,"~",50
covx tTmp.txt,sys0,0,0
bEntity5.pco=sys0
// set name
spstr strCommand.txt,tEntity5.txt,"~",40
spstr strCommand.txt,tEntity5.txt,"~",51
vis tEntity5,1
}
// get Type
spstr strCommand.txt,type6.txt,"~",42
spstr strCommand.txt,type6.txt,"~",53
// get internal name
spstr strCommand.txt,entn6.txt,"~",43
spstr strCommand.txt,entn6.txt,"~",54
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
@@ -1619,14 +1613,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,bEntity6.txt,"~",44
spstr strCommand.txt,bEntity6.txt,"~",55
vis bEntity6,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",45
spstr strCommand.txt,tTmp.txt,"~",56
covx tTmp.txt,sys0,0,0
bEntity6.pco=sys0
// set name
spstr strCommand.txt,tEntity6.txt,"~",46
spstr strCommand.txt,tEntity6.txt,"~",57
vis tEntity6,1
}
}
@@ -1694,6 +1688,14 @@ Timer tmSerial
{
page cardPower
}
if(tId.txt=="cardChart")
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -47,7 +47,7 @@ Page cardPower
vis t4Icon,0
vis t5Icon,0
cardPower.bco=defaultBcoColor
for(sys0=0;sys0<43;sys0++)
for(sys0=0;sys0<48;sys0++)
{
if(b[sys0].type==98||b[sys0].type==116)
{
@@ -65,6 +65,20 @@ Page cardPower
}
}
Variable (string) nent1
Attributes
ID : 43
Scope : local
Text :
Max. Text Size: 80
Variable (string) nent2
Attributes
ID : 44
Scope : local
Text :
Max. Text Size: 80
Variable (string) strCommand
Attributes
ID : 5
@@ -581,7 +595,37 @@ Text tHome
x coordinate : 200
y coordinate : 214
Width : 56
Height : 81
Height : 54
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : bottom
Input Type : character
Text :
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHome2
Attributes
ID : 45
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 200
y coordinate : 271
Width : 56
Height : 28
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -595,7 +639,67 @@ Text tHome
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 20
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHomeO
Attributes
ID : 46
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 200
y coordinate : 73
Width : 56
Height : 54
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : bottom
Input Type : character
Text :
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text tHomeO2
Attributes
ID : 47
Scope : local
Dragging : 0
Disable release event after dragging: 0
Send Component ID : disabled
Opacity : 127
x coordinate : 200
y coordinate : 130
Width : 56
Height : 28
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 6371
Font Color : 65535
Horizontal Alignment : center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : enabled
Horizontal Spacing : 0
Vertical Spacing : 0
@@ -638,8 +742,8 @@ Slider h0
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h1
@@ -663,8 +767,8 @@ Slider h1
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h2
@@ -688,8 +792,8 @@ Slider h2
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h3
@@ -713,8 +817,8 @@ Slider h3
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h4
@@ -738,8 +842,8 @@ Slider h4
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Slider h5
@@ -763,8 +867,8 @@ Slider h5
Cursor height : 255
Back. Picture ID : 18
Slided Back. Picture ID : 18
Position : 50
Upper range limit : 100
Position : 600
Upper range limit : 1200
Lower range limit : 0
Button bNext
@@ -801,14 +905,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardPower,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -855,14 +952,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -944,66 +1034,84 @@ Timer tm0
Events
Timer Event
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
if(t0Speed.val!=0)
{
h0.val=h0.minval
sys0=h0.val+t0Speed.val
if(sys0>h0.maxval)
{
h0.val=h0.minval
}
if(sys0<h0.minval)
{
h0.val=h0.maxval
}
h0.val+=t0Speed.val
}
if(sys0<h0.minval)
if(t1Speed.val!=0)
{
h0.val=h0.maxval
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
{
h1.val=h1.minval
}
if(sys0<h1.minval)
{
h1.val=h1.maxval
}
h1.val+=t1Speed.val
}
h0.val+=t0Speed.val
sys0=h1.val+t1Speed.val
if(sys0>h1.maxval)
if(t2Speed.val!=0)
{
h1.val=h1.minval
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
{
h2.val=h2.minval
}
if(sys0<h2.minval)
{
h2.val=h2.maxval
}
h2.val+=t2Speed.val
}
if(sys0<h1.minval)
if(t3Speed.val!=0)
{
h1.val=h1.maxval
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
}
h1.val+=t1Speed.val
sys0=h2.val+t2Speed.val
if(sys0>h2.maxval)
if(t4Speed.val!=0)
{
h2.val=h2.minval
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
}
if(sys0<h2.minval)
if(t5Speed.val!=0)
{
h2.val=h2.maxval
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
}
h2.val+=t2Speed.val
sys0=h3.val+t3Speed.val
if(sys0>h3.maxval)
{
h3.val=h3.minval
}
if(sys0<h3.minval)
{
h3.val=h3.maxval
}
h3.val+=t3Speed.val
sys0=h4.val+t4Speed.val
if(sys0>h4.maxval)
{
h4.val=h4.minval
}
if(sys0<h4.minval)
{
h4.val=h4.maxval
}
h4.val+=t4Speed.val
sys0=h5.val+t5Speed.val
if(sys0>h5.maxval)
{
h5.val=h5.minval
}
if(sys0<h5.minval)
{
h5.val=h5.maxval
}
h5.val+=t5Speed.val
Timer tmSerial
Attributes
@@ -1061,63 +1169,75 @@ Timer tmSerial
{
// command format: entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
// icon color home
spstr strCommand.txt,tTmp.txt,"~",3
spstr strCommand.txt,tTmp.txt,"~",14
covx tTmp.txt,t1.pco,0,0
// icon home
spstr strCommand.txt,t1.txt,"~",4
spstr strCommand.txt,t1.txt,"~",15
// speed 16 ignored
// text home
spstr strCommand.txt,tHome.txt,"~",5
spstr strCommand.txt,tHome.txt,"~",17
spstr tHome.txt,tHome2.txt," ",1
spstr tHome.txt,tHome.txt," ",0
// icon color 18 ignored
// icon 19 ignored
// speed 20 ignored
// text home
spstr strCommand.txt,tHomeO.txt,"~",21
spstr tHomeO.txt,tHomeO2.txt," ",1
spstr tHomeO.txt,tHomeO.txt," ",0
// iconColor
spstr strCommand.txt,tTmp.txt,"~",6
spstr strCommand.txt,tTmp.txt,"~",22
covx tTmp.txt,t0Icon.pco,0,0
// icon
spstr strCommand.txt,t0Icon.txt,"~",7
spstr strCommand.txt,t0Icon.txt,"~",23
// speed
spstr strCommand.txt,tTmp.txt,"~",8
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,t0Speed.val,0,0
if(t0Speed.val>120)
{
t0Speed.val=120
}
if(t0Speed.val<-120)
{
t0Speed.val=-120
}
// lower text
spstr strCommand.txt,t0u.txt,"~",9
spstr strCommand.txt,t0u.txt,"~",25
if(t0Icon.txt!="")
{
vis t0Icon,1
@@ -1130,15 +1250,23 @@ Timer tmSerial
vis h0,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",10
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,t1Icon.pco,0,0
// icon
spstr strCommand.txt,t1Icon.txt,"~",11
spstr strCommand.txt,t1Icon.txt,"~",27
// speed
spstr strCommand.txt,tTmp.txt,"~",12
spstr strCommand.txt,tTmp.txt,"~",28
covx tTmp.txt,t1Speed.val,0,0
if(t1Speed.val>120)
{
t1Speed.val=120
}
if(t1Speed.val<-120)
{
t1Speed.val=-120
}
// lower text
spstr strCommand.txt,t1u.txt,"~",13
spstr strCommand.txt,t1u.txt,"~",29
if(t1Icon.txt!="")
{
vis t1Icon,1
@@ -1151,15 +1279,23 @@ Timer tmSerial
vis h1,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",14
spstr strCommand.txt,tTmp.txt,"~",30
covx tTmp.txt,t2Icon.pco,0,0
// icon
spstr strCommand.txt,t2Icon.txt,"~",15
spstr strCommand.txt,t2Icon.txt,"~",31
// speed
spstr strCommand.txt,tTmp.txt,"~",16
spstr strCommand.txt,tTmp.txt,"~",32
covx tTmp.txt,t2Speed.val,0,0
if(t2Speed.val>120)
{
t2Speed.val=120
}
if(t2Speed.val<-120)
{
t2Speed.val=-120
}
// lower text
spstr strCommand.txt,t2u.txt,"~",17
spstr strCommand.txt,t2u.txt,"~",33
if(t2Icon.txt!="")
{
vis t2Icon,1
@@ -1172,15 +1308,23 @@ Timer tmSerial
vis h2,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",18
spstr strCommand.txt,tTmp.txt,"~",34
covx tTmp.txt,t3Icon.pco,0,0
// icon
spstr strCommand.txt,t3Icon.txt,"~",19
spstr strCommand.txt,t3Icon.txt,"~",35
// speed
spstr strCommand.txt,tTmp.txt,"~",20
spstr strCommand.txt,tTmp.txt,"~",36
covx tTmp.txt,t3Speed.val,0,0
if(t3Speed.val>120)
{
t3Speed.val=120
}
if(t3Speed.val<-120)
{
t3Speed.val=-120
}
// lower text
spstr strCommand.txt,t3u.txt,"~",21
spstr strCommand.txt,t3u.txt,"~",37
if(t3Icon.txt!="")
{
vis t3Icon,1
@@ -1193,15 +1337,23 @@ Timer tmSerial
vis h3,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",22
spstr strCommand.txt,tTmp.txt,"~",38
covx tTmp.txt,t4Icon.pco,0,0
// icon
spstr strCommand.txt,t4Icon.txt,"~",23
spstr strCommand.txt,t4Icon.txt,"~",39
// speed
spstr strCommand.txt,tTmp.txt,"~",24
spstr strCommand.txt,tTmp.txt,"~",40
covx tTmp.txt,t4Speed.val,0,0
if(t4Speed.val>120)
{
t4Speed.val=120
}
if(t4Speed.val<-120)
{
t4Speed.val=-120
}
// lower text
spstr strCommand.txt,t4u.txt,"~",25
spstr strCommand.txt,t4u.txt,"~",41
if(t4Icon.txt!="")
{
vis t4Icon,1
@@ -1214,15 +1366,23 @@ Timer tmSerial
vis h4,0
}
// iconColor
spstr strCommand.txt,tTmp.txt,"~",26
spstr strCommand.txt,tTmp.txt,"~",42
covx tTmp.txt,t5Icon.pco,0,0
// icon
spstr strCommand.txt,t5Icon.txt,"~",27
spstr strCommand.txt,t5Icon.txt,"~",43
// speed
spstr strCommand.txt,tTmp.txt,"~",28
spstr strCommand.txt,tTmp.txt,"~",44
covx tTmp.txt,t5Speed.val,0,0
if(t5Speed.val>120)
{
t5Speed.val=120
}
if(t5Speed.val<-120)
{
t5Speed.val=-120
}
// lower text
spstr strCommand.txt,t5u.txt,"~",29
spstr strCommand.txt,t5u.txt,"~",45
if(t5Icon.txt!="")
{
vis t5Icon,1
@@ -1303,6 +1463,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
if(tInstruction.txt=="time")
{

View File

@@ -81,12 +81,26 @@ Variable (string) entn2
Text :
Max. Text Size: 80
Variable (string) nent1
Attributes
ID : 32
Scope : local
Text :
Max. Text Size: 50
Variable (string) nent2
Attributes
ID : 33
Scope : local
Text :
Max. Text Size: 50
Variable (string) strCommand
Attributes
ID : 6
Scope : local
Text :
Max. Text Size: 275
Max. Text Size: 400
Variable (string) tId
Attributes
@@ -338,14 +352,7 @@ Button bNext
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardQR,"
if(bNext.txt=="")
{
tSend.txt+="bHome"
}else
{
tSend.txt+="bNext"
}
tSend.txt="event,buttonPress2,"+nent2.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -392,14 +399,7 @@ Button bPrev
Events
Touch Press Event
tSend.txt="event,buttonPress2,cardAlarm,"
if(bPrev.txt=="")
{
tSend.txt+="bUp"
}else
{
tSend.txt+="bPrev"
}
tSend.txt="event,buttonPress2,"+nent1.txt+",button"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -657,9 +657,9 @@ Hotspot mSwipePrev
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 5
Width : 9
Height : 310
y coordinate : 0
Width : 7
Height : 315
Effect : load
Effect Priority : 0
Effect Time : 300
@@ -745,52 +745,46 @@ Timer tmSerial
// command format: entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2
//tHeading
spstr strCommand.txt,tHeading.txt,"~",1
// navigation icons
spstr strCommand.txt,tId.txt,"~",2
spstr tId.txt,tTmp.txt,"|",0
if(tTmp.txt=="0")
// navigation icon left
spstr strCommand.txt,tTmp.txt,"~",2 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bPrev,0
tsw mSwipePrev,0
tsw mSwipeUp,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent1.txt,"~",3
// change icon
spstr strCommand.txt,bPrev.txt,"~",4
// change icon color
spstr strCommand.txt,tTmp.txt,"~",5
covx tTmp.txt,sys0,0,0
bPrev.pco=sys0
vis bPrev,1
tsw mSwipePrev,1
tsw mSwipeUp,0
bPrev.txt=""
}
if(tTmp.txt=="2")
{
vis bPrev,1
tsw mSwipePrev,0
tsw mSwipeUp,1
bPrev.txt=""
}
spstr tId.txt,tTmp.txt,"|",1
if(tTmp.txt=="0")
// navigation icon right
spstr strCommand.txt,tTmp.txt,"~",8 //type
if(tTmp.txt=="delete"||tTmp.txt=="")
{
vis bNext,0
tsw mSwipeNext,0
}
if(tTmp.txt=="1")
}else
{
// get internal name
spstr strCommand.txt,nent2.txt,"~",9
// change icon
spstr strCommand.txt,bNext.txt,"~",10
// change icon color
spstr strCommand.txt,tTmp.txt,"~",11
covx tTmp.txt,sys0,0,0
bNext.pco=sys0
vis bNext,1
tsw mSwipeNext,1
bNext.txt=""
}
if(tTmp.txt=="2")
{
vis bNext,1
bNext.txt=""
}
//text qrcode
spstr strCommand.txt,vaQR.txt,"~",3
spstr strCommand.txt,vaQR.txt,"~",14
// get Type
spstr strCommand.txt,type1.txt,"~",4
spstr strCommand.txt,type1.txt,"~",15
// get internal name
spstr strCommand.txt,entn1.txt,"~",5
spstr strCommand.txt,entn1.txt,"~",16
if(type1.txt=="delete"||type1.txt=="")
{
vis btOnOff1,0
@@ -800,14 +794,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon1.txt,"~",6
spstr strCommand.txt,tIcon1.txt,"~",17
vis tIcon1,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",7
spstr strCommand.txt,tTmp.txt,"~",18
covx tTmp.txt,sys0,0,0
tIcon1.pco=sys0
// set name
spstr strCommand.txt,tEntity1.txt,"~",8
spstr strCommand.txt,tEntity1.txt,"~",19
vis tEntity1,1
}
if(type1.txt=="light")
@@ -815,7 +809,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -824,7 +818,7 @@ Timer tmSerial
vis btOnOff1,1
vis bText1,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",9
spstr strCommand.txt,tTmp.txt,"~",20
covx tTmp.txt,sys0,0,0
btOnOff1.val=sys0
}
@@ -836,7 +830,7 @@ Timer tmSerial
bText1.pco=65535
bText1.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
if(type1.txt=="button")
{
@@ -846,12 +840,12 @@ Timer tmSerial
bText1.pco=1374
bText1.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText1.txt,"~",9
spstr strCommand.txt,bText1.txt,"~",20
}
// get Type
spstr strCommand.txt,type2.txt,"~",10
spstr strCommand.txt,type2.txt,"~",21
// get internal name
spstr strCommand.txt,entn2.txt,"~",11
spstr strCommand.txt,entn2.txt,"~",22
if(type2.txt=="delete"||type2.txt=="")
{
vis btOnOff2,0
@@ -861,14 +855,14 @@ Timer tmSerial
}else
{
// change icon
spstr strCommand.txt,tIcon2.txt,"~",12
spstr strCommand.txt,tIcon2.txt,"~",23
vis tIcon2,1
// change icon color
spstr strCommand.txt,tTmp.txt,"~",13
spstr strCommand.txt,tTmp.txt,"~",24
covx tTmp.txt,sys0,0,0
tIcon2.pco=sys0
// set name
spstr strCommand.txt,tEntity2.txt,"~",14
spstr strCommand.txt,tEntity2.txt,"~",25
vis tEntity2,1
}
if(type2.txt=="light")
@@ -876,7 +870,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -885,7 +879,7 @@ Timer tmSerial
vis btOnOff2,1
vis bText2,0
// get Button State (optional Value)
spstr strCommand.txt,tTmp.txt,"~",15
spstr strCommand.txt,tTmp.txt,"~",26
covx tTmp.txt,sys0,0,0
btOnOff2.val=sys0
}
@@ -897,7 +891,7 @@ Timer tmSerial
bText2.pco=65535
bText2.pco2=65535
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="button")
{
@@ -907,17 +901,17 @@ Timer tmSerial
bText2.pco=1374
bText2.pco2=1374
// get Text (optional Value)
spstr strCommand.txt,bText2.txt,"~",15
spstr strCommand.txt,bText2.txt,"~",26
}
if(type2.txt=="delete"||type2.txt=="")
{
if(type1.txt=="delete"||type1.txt=="")
{
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
qrcode m1.x,m1.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}else
{
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
qrcode m0.x,m0.y,200,defaultBcoColor,65535,-1,vaQR.txt
}
}
if(tInstruction.txt=="time")
@@ -1026,6 +1020,10 @@ Timer tmSerial
{
page cardChart
}
if(tId.txt=="cardLChart")
{
page cardLChart
}
}
// end of user code
udelete payloadLength-1

Some files were not shown because too many files have changed in this diff Show More