Merge pull request #1555 from Blackymas/dev

v4.2 Beta 1
This commit is contained in:
Edward Firmo
2024-01-08 12:23:35 +01:00
committed by GitHub
306 changed files with 47994 additions and 12375 deletions

View File

@@ -18,4 +18,4 @@ jobs:
steps:
- uses: actions/checkout@v4.1.0
- name: Validate nspanel_blueprint.yaml
run: yamllint -c "./.yamllint/rules.yml" nspanel_blueprint.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_blueprint.yaml

View File

@@ -3,14 +3,12 @@ name: Validate ESPHome
on:
push:
paths:
- "nspanel_esphome.yaml"
- "nspanel_esphome*.yaml"
- "advanced/esphome/nspanel_esphome*.yaml"
pull_request:
paths:
- "nspanel_esphome.yaml"
- "nspanel_esphome*.yaml"
- "advanced/esphome/nspanel_esphome*.yaml"
#schedule:
# - cron: "0 0 * * *"
workflow_dispatch:
concurrency:
@@ -25,13 +23,21 @@ jobs:
steps:
- uses: actions/checkout@v4.1.0
- name: Validate nspanel_esphome.yaml
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome.yaml
- name: Validate nspanel_esphome_core.yaml
run: yamllint -c "./.rules/yamllint.yml" advanced/esphome/nspanel_esphome_core.yaml
- name: Validate nspanel_esphome_addon_upload_tft.yaml
run: yamllint -c "./.rules/yamllint.yml" advanced/esphome/nspanel_esphome_addon_upload_tft.yaml
- name: Validate nspanel_esphome_advanced.yaml
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_advanced.yaml
run: yamllint -c "./.rules/yamllint.yml" advanced/esphome/nspanel_esphome_advanced.yaml
- name: Validate nspanel_esphome_addon_climate_base.yaml
run: yamllint -c "./.rules/yamllint.yml" advanced/esphome/nspanel_esphome_addon_climate_base.yaml
- name: Validate nspanel_esphome_addon_climate_cool.yaml
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome_addon_climate_cool.yaml
- name: Validate nspanel_esphome_addon_climate_heat.yaml
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome_addon_climate_heat.yaml
- name: Validate nspanel_esphome_addon_climate_dual.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome_addon_climate_dual.yaml
build_core:
name: Core
@@ -81,6 +87,18 @@ jobs:
with:
yaml_file: "./.test/esphome_climate_cool.yaml"
build_climate_dual:
name: Climate (dual)
runs-on: "ubuntu-latest"
needs:
- build_core
steps:
- uses: actions/checkout@v4.1.0
- name: Build core+climate_dual
uses: esphome/build-action@v1.8.0
with:
yaml_file: "./.test/esphome_climate_dual.yaml"
build_climate_heat_advanced:
name: Advanced+climate (heat)
runs-on: "ubuntu-latest"

View File

@@ -2,12 +2,6 @@ name: Validate ESPHome (beta)
on:
workflow_dispatch:
pull_request:
paths:
- "nspanel_esphome.yaml"
- "advanced/esphome/nspanel_esphome*.yaml"
#schedule:
#- cron: "0 0 * * *"
concurrency:
# yamllint disable-line rule:line-length
@@ -21,13 +15,21 @@ jobs:
steps:
- uses: actions/checkout@v4.1.0
- name: Validate nspanel_esphome.yaml
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome.yaml
- name: Validate nspanel_esphome_core.yaml
run: yamllint -c "./.rules/yamllint.yml" advanced/esphome/nspanel_esphome_core.yaml
- name: Validate nspanel_esphome_addon_upload_tft.yaml
run: yamllint -c "./.rules/yamllint.yml" advanced/esphome/nspanel_esphome_addon_upload_tft.yaml
- name: Validate nspanel_esphome_advanced.yaml
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_advanced.yaml
run: yamllint -c "./.rules/yamllint.yml" advanced/esphome/nspanel_esphome_advanced.yaml
- name: Validate nspanel_esphome_addon_climate_base.yaml
run: yamllint -c "./.rules/yamllint.yml" advanced/esphome/nspanel_esphome_addon_climate_base.yaml
- name: Validate nspanel_esphome_addon_climate_cool.yaml
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome_addon_climate_cool.yaml
- name: Validate nspanel_esphome_addon_climate_heat.yaml
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome_addon_climate_heat.yaml
- name: Validate nspanel_esphome_addon_climate_dual.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome_addon_climate_dual.yaml
build_core:
name: Core
@@ -81,6 +83,19 @@ jobs:
yaml_file: "./.test/esphome_climate_cool.yaml"
version: beta
build_climate_dual:
name: Climate (dual)
runs-on: "ubuntu-latest"
needs:
- build_core
steps:
- uses: actions/checkout@v4.1.0
- name: Build core+climate_dual
uses: esphome/build-action@v1.8.0
with:
yaml_file: "./.test/esphome_climate_dual.yaml"
version: beta
build_climate_heat_advanced:
name: Advanced+climate (heat)
runs-on: "ubuntu-latest"

50
.github/workflows/validate_markdown.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: Validate Markdown
on:
pull_request:
paths:
- '**/*.md'
push:
paths:
- '**/*.md'
workflow_dispatch:
jobs:
markdown-lint:
name: Markdown Lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4.1.0
# https://github.com/marketplace/actions/markdownlint-cli2-action
- name: Identify changed files
uses: tj-actions/changed-files@v41
id: changed-files
with:
files: '**/*.md'
separator: ","
# https://github.com/marketplace/actions/markdownlint-cli2-action
- name: Markdown Lint
uses: DavidAnson/markdownlint-cli2-action@v14
if: steps.changed-files.outputs.any_changed == 'true'
with:
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ","
config: '.rules/.markdownlint.jsonc'
fix: true
markdown-links:
name: Check links
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4.1.0
# https://github.com/gaurav-nelson/github-action-markdown-link-check
- name: Markdown links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
check-modified-files-only: yes
config-file: '.rules/mlc_config.json'
base-branch: 'main'

4
.gitignore vendored
View File

@@ -10,6 +10,6 @@ Nextion2Text.*
.idea
# Ignore dev folder
dev
#dev
nspanel_esphome_prebuilt.yaml
nspanel_esphome_prebuilt.bin

View File

@@ -0,0 +1,4 @@
{
"MD013": { "line_length": 200 }
}

13
.rules/mlc_config.json Normal file
View File

@@ -0,0 +1,13 @@
{
"ignorePatterns": [
{
"pattern": "^http://homeassistant\\.local.*$"
},
{
"pattern": "^https://sonoff.tech/product/central-control-panel/nspanel/$"
},
{
"pattern": "^https://sonoff.tech/wp-content/uploads/2021/11/%E4%BA%A7%E5%93%81%E5%8F%82%E6%95%B0%E8%A1%A8-NSPanel-20210831.pdf$"
}
]
}

View File

@@ -1,6 +1,6 @@
# https://yamllint.readthedocs.io/en/stable/configuration.html#default-configuration
extends: relaxed
extends: default
rules:
anchors:
@@ -9,5 +9,5 @@ rules:
# 255 chars should be enough, but don't fail if a line is longer
line-length:
max: 255
level: warning
max: 200
#level: warning

View File

@@ -7,5 +7,6 @@ substitutions:
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml

View File

@@ -7,11 +7,16 @@ substitutions:
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml
esp32:
framework:
type: esp-idf
bluetooth_proxy:
# Set Wi-Fi power save mode to "LIGHT" as required for Bluetooth on ESP32
wifi:
power_save_mode: LIGHT

View File

@@ -7,8 +7,9 @@ substitutions:
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml
esp32:
framework:
@@ -17,3 +18,7 @@ esp32:
platform_version: 6.3.2
bluetooth_proxy:
# Set Wi-Fi power save mode to "LIGHT" as required for Bluetooth on ESP32
wifi:
power_save_mode: LIGHT

View File

@@ -7,5 +7,6 @@ substitutions:
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cold: !include ../advanced/esphome/nspanel_esphome_addon_climate_cold.yaml
addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cold: !include ../nspanel_esphome_addon_climate_cold.yaml
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml

View File

@@ -2,14 +2,13 @@ substitutions:
device_name: nspanel
wifi_ssid: "nspanel"
wifi_password: "NSPanel_HA_Blueprint"
nextion_update_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/dummy"
nextion_update_blank_url: "http://homeassistant.local:8123/local/nspanel/dev/nspanel_blank.tft"
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cold: !include ../advanced/esphome/nspanel_esphome_addon_climate_cold.yaml
addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cold: !include ../nspanel_esphome_addon_climate_cold.yaml
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml
##### Customizations from Wiki #####
api:
@@ -31,21 +30,6 @@ binary_sensor:
bluetooth_proxy:
button:
##### UPDATE TFT BLANK DISPLAY #####
#- name: ${device_name} Update TFT display (blank)
# platform: template
# icon: mdi:file-sync
# id: tft_update_blank
# entity_category: config
# on_press:
# - logger.log: "Button pressed: Update TFT display (blank)"
# - binary_sensor.template.publish:
# id: nextion_init
# state: false
# - delay: 16ms
# - lambda: |-
# id(disp1)->set_tft_url("${nextion_update_blank_url}");
# id(disp1).upload_tft();
# Adds a button to put the panel to sleep
- name: ${device_name} Sleep
id: force_sleep
@@ -91,11 +75,6 @@ climate:
default_target_temperature_low: 17.5 ${temp_units}
mode: "heat"
deep_sleep:
# Define the wake-up button. Use pin 14 for left button or pin 27 for right button
wakeup_pin: 14
wakeup_pin_mode: INVERT_WAKEUP
# Change framework to `esp-idf`
esp32:
framework:
@@ -104,6 +83,8 @@ esp32:
esphome:
# change OTA password, remove after flashing
on_boot:
- priority: 601.0
then:
- lambda: |-
id(my_ota).set_auth_password("New password");
# Limit the amount of resources used for compiling
@@ -120,14 +101,14 @@ light:
on_turn_on:
then:
- lambda: |-
ESP_LOGV("light.display_light", "Turn-on");
if (id(current_page).state == "screensaver") id(disp1).goto_page(id(wakeup_page_name).state.c_str());
id(timer_reset_all).execute(id(wakeup_page_name).state.c_str());
ESP_LOGD("light.display_light", "Turn-on");
if (current_page->state == "screensaver") disp1->goto_page(wakeup_page_name->state.c_str());
timer_reset_all->execute(wakeup_page_name->state.c_str());
on_turn_off:
then:
- lambda: |-
ESP_LOGV("light.display_light", "Turn-off");
id(disp1).goto_page("screensaver");
ESP_LOGD("light.display_light", "Turn-off");
disp1->goto_page("screensaver");
logger:
# Enable hardware UART serial logging
@@ -146,22 +127,22 @@ output:
write_action:
- lambda: |-
ESP_LOGV("output.display_output", "state: %f", state);
uint current_brightness = int(round(id(display_light).current_values.is_on() ? (id(display_light).current_values.get_brightness() * 100.0f) : 0.0));
uint8_t current_brightness = int(round(display_light->current_values.is_on() ? (display_light->current_values.get_brightness() * 100.0f) : 0.0));
ESP_LOGV("output.display_output", "current_brightness: %i%%", current_brightness);
id(set_brightness).execute(current_brightness);
set_brightness->execute(current_brightness);
script:
# Updates the existing `page_changed` script to update the `display_light` status when a page changes
- id: !extend page_changed
then:
- lambda: |-
ESP_LOGV("script.page_changed(custom)", "page: %s", page.c_str());
ESP_LOGV("script.page_changed(custom)", "is_on(): %i", id(display_light).current_values.is_on() ? 1 : 0);
if (page == "screensaver" and id(display_light).current_values.is_on()) {
auto call = id(display_light).turn_off();
ESP_LOGD("script.page_changed(custom)", "page: %s", page.c_str());
ESP_LOGV("script.page_changed(custom)", "is_on(): %s", display_light->current_values.is_on() ? "True" : "False");
if (page == "screensaver" and display_light->current_values.is_on()) {
auto call = display_light->turn_off();
call.perform();
} else if (page != "screensaver" and (not id(display_light).current_values.is_on())) {
auto call = id(display_light).turn_on();
} else if (page != "screensaver" and (not display_light->current_values.is_on())) {
auto call = display_light->turn_on();
call.perform();
}
@@ -169,15 +150,20 @@ script:
- id: !extend set_brightness
then:
- lambda: |-
ESP_LOGD("script.set_brightness(custom)", "brightness: %i", brightness);
if (id(current_page).state != "screensaver" and brightness > 0) {
auto call = id(display_light).turn_on();
ESP_LOGD("script.set_brightness(custom)", "brightness: %i%%", brightness);
uint8_t current_brightness = int(round(display_light->current_values.is_on() ? (display_light->current_values.get_brightness() * 100.0f) : 0.0));
ESP_LOGV("script.set_brightness(custom)", "current_brightness: %i%%", current_brightness);
if (brightness != current_brightness) {
if (current_page->state != "screensaver" and brightness > 0) {
auto call = display_light->turn_on();
call.set_brightness(static_cast<float>(id(display_last_brightness)) / 100.0f);
call.perform();
} else {
auto call = id(display_light).turn_off();
} else if (display_light->current_values.is_on()) {
auto call = display_light->turn_off();
call.set_brightness(0);
call.perform();
}
}
time:
- id: !extend time_provider
@@ -189,12 +175,12 @@ time:
- europe.pool.ntp.org
- 0.pool.ntp.org
on_time:
- hours: 22
minutes: 0
seconds: 0
then:
- deep_sleep.enter:
sleep_duration: 7h
#- hours: 22
# minutes: 0
# seconds: 0
# then:
# - deep_sleep.enter:
# sleep_duration: 7h
# Scheduled relay
- hours: 7
minutes: 30
@@ -242,11 +228,6 @@ time:
mode: auto
target_temperature: 18°C
uart:
# Set Nextion comms baud rate to 921600 bps
- id: !extend tf_uart
baud_rate: 9600
web_server:
# Custom web server credentials
auth:
@@ -266,3 +247,5 @@ wifi:
- ssid: !secret wifi_ssid_backup
password: !secret wifi_password_backup
priority: 0
# Set Wi-Fi power save mode to "LIGHT" as required for Bluetooth on ESP32
power_save_mode: LIGHT

View File

@@ -7,5 +7,6 @@ substitutions:
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
#advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml

View File

@@ -0,0 +1,12 @@
substitutions:
device_name: nspanel
wifi_ssid: "nspanel"
wifi_password: "NSPanel_HA_Blueprint"
nextion_update_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/dummy"
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
#advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml

View File

@@ -7,5 +7,6 @@ substitutions:
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
#advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml

View File

@@ -7,5 +7,6 @@ substitutions:
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
#advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml

View File

@@ -1,65 +0,0 @@
# Welcome to the contributing guide <!-- omit in toc -->
Thank you for investing your time in contributing to our project! Any contribution you make could be reflected on the final solution and make lots of other users happy. :sparkles:.
Please read [GitHub/docs Code of Conduct](https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md) to keep our community approachable and respectable.
In this guide you will get an overview of the contribution workflow from opening an issue, creating a PR, reviewing, and merging the PR.
## New contributor guide
To get an overview of the project, read the [README](README.md) and play around the [Wiki pages](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki).
Here are some resources to help you get started with open source contributions:
- [GitHub flow](https://docs.github.com/en/get-started/quickstart/github-flow)
- [Collaborating with pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests)
### Issues
#### Create a new issue
If you spot a problem with the blueprint, the ESPHome or the visualization in the screen, [search if an issue already exists](https://github.com/Blackymas/NSPanel_HA_Blueprint/issues). If a related issue doesn't exist, please open a new one.
#### Solve an issue
Scan through our [existing issues](https://github.com/Blackymas/NSPanel_HA_Blueprint/issues) to find one that interests you. As a general rule, we dont assign issues to anyone. If you find an issue to work on, you are welcome to open a PR with a fix.
## Contributing
#### Make changes
1. Fork the repository.
2. Create a working branch based on the `dev` branch and start with your changes!
- When proposing a change, think about all users. Some thinks to remember:
- Support both EU and US models
- Support to translations (add new strings in English to all languages if needed, but let us know in your comments, so we can ask the community to help with the translations)
- Avoid breaking changes (anything changing the current behaviour) and document when you cannot avoid it. Let us know, so we can add to the release notes.
### Commit your update
Commit the changes once you are happy with them. Don't forget to self review to speed up the review process:zap:.
After a commit, GitHub will run the validation actions, which could take a while. Please take a look at [Actions](https://github.com/Blackymas/NSPanel_HA_Blueprint/actions) tab and follow the test results. If any test fails, please click on the action instance to open it's details, take a look at the report and fix the issues.
### Pull Request
When you're finished with the changes, create a pull request, also known as a PR.
- Make sure your pull request is using the `dev` branch as the base branch. PRs to the `main` branch will be rejected.
- Provide detailed information about what you are trying to change, why you want to change that, any breaking change, translations needed, etc.
- Don't forget to [link PR to issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) if you are solving one.
- Enable the checkbox to [allow maintainer edits](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) so the branch can be updated for a merge.
Once you submit your PR, a team member will review your proposal. We may ask questions or request additional information.
- We may ask for changes to be made before a PR can be merged, either using [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch.
- As you update your PR and apply changes, mark each conversation as [resolved](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#resolving-conversations).
- If you run into any merge issues, checkout this [git tutorial](https://github.com/skills/resolve-merge-conflicts) to help you resolve merge conflicts and other issues.
### Your PR is merged!
Congratulations :tada::tada: The community thanks you :sparkles:.
Once your PR is merged, your contributions will be publicly visible.
And welcome to the Lovelace Horizon Card contributors community!

111
README.md
View File

@@ -1,16 +1,15 @@
*Are you happy with our version for NSPanel? Please consider supporting us with a donation.*
<br>[![Paypal](https://user-images.githubusercontent.com/41958506/212499642-b2fd097a-0938-4bfc-b37b-74df64592c58.png)](https://www.paypal.com/donate/?hosted_button_id=S974SWQMB8PB2)
[![Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FBlackymas%2FNSPanel_HA_Blueprint%2Fblob%2Fmain%2Fnspanel_blueprint.yaml)
[![ESPHome (latest)](https://github.com/Blackymas/NSPanel_HA_Blueprint/actions/workflows/validate_esphome.yml/badge.svg)](https://github.com/Blackymas/NSPanel_HA_Blueprint/actions/workflows/validate_esphome.yml)
[![Validate ESPHome (beta)](https://github.com/Blackymas/NSPanel_HA_Blueprint/actions/workflows/validate_esphome_beta.yml/badge.svg)](https://github.com/Blackymas/NSPanel_HA_Blueprint/actions/workflows/validate_esphome_beta.yml)
# NSPanel Custom with HA Blueprint
This innovative solution is designed to revolutionize how you interact with your Sonoff NSPanel. Our goal? To make the customization of your NSPanel seamless, intuitive, and completely code-free!
*Are you happy with our version for NSPanel? Please consider supporting us with a donation.*
[![Paypal](https://user-images.githubusercontent.com/41958506/212499642-b2fd097a-0938-4bfc-b37b-74df64592c58.png)](https://www.paypal.com/donate/?hosted_button_id=S974SWQMB8PB2)
[![Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FBlackymas%2FNSPanel_HA_Blueprint%2Fblob%2Fmain%2Fnspanel_blueprint.yaml)
## Table of Contents
1. [Project Highlights](#-project-highlights)
2. [Documentation & Resources](#-documentation--resources)
3. [Features](#-features)
@@ -29,11 +28,11 @@ This innovative solution is designed to revolutionize how you interact with your
## 📚 Documentation & Resources
- **Getting Started:** Dive into our comprehensive [Documentation and Setup Guide](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki) for detailed instructions.
- **Video Tutorial:** Prefer visual learning? Check out our [Step-by-Step Setup Video](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki).
- **Troubleshooting:** Encounter an issue? Here's how to report it: [WIKI HowTo](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki).
- **Getting Started:** Dive into our comprehensive [Documentation and Setup Guide](docs/README.md) for detailed instructions.
- **Video Tutorial:** Prefer visual learning? Check out our [Step-by-Step Setup Video](docs/README.md).
- **Troubleshooting:** Encounter an issue? Here's how to report it: [WIKI HowTo](docs/README.md).
- **Feature Requests:** Got ideas? Share them [here](https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/new%20feature%20request).
- **Project Roadmap:** Curious about what's next? Explore our [Roadmap](https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/roadmap).
- **What's Next?:** Discover what's next and what we are working on right now in our [Milestones](https://github.com/Blackymas/NSPanel_HA_Blueprint/milestones?direction=asc&sort=due_date)
## 🚀 Features
@@ -43,7 +42,7 @@ This innovative solution is designed to revolutionize how you interact with your
- Buttons show current brightness and cover position in the button itself
- Buttons label can be assigned via blueprint
- Weather + 5 days weather forecast
- Thermostat + Touch + [Relay control for floor heating](/docs/en/addon_climate.md)
- Thermostat + Touch + [Relay control for floor heating](docs/addon_climate.md)
- Light control (brightness, color and temperature) - via long Press
- Cover control (open, close and position) - via long press
- Settings page (display brightness, display dim brightness, sleep mode, reboot NSPanel)
@@ -54,13 +53,12 @@ This innovative solution is designed to revolutionize how you interact with your
- 2 physical switches with optional fallback mode
- and much more ;)
## 📖 Pages Overview
### Home
![Home EU](docs/pics/eu_home.png)
<br>
![Home US](docs/pics/us_home.png)
- Current weather with button to Weather Forcast page
@@ -73,23 +71,32 @@ This innovative solution is designed to revolutionize how you interact with your
- Room humidity
- Up to 3 user's selectable entities
&nbsp;
### Button Page
### Buttons Pages
![3 Buttonpage](https://user-images.githubusercontent.com/41958506/203654022-c6d81263-ce56-4a84-917a-9d4911f19f55.png)
![NEW Domains](https://user-images.githubusercontent.com/41958506/206879659-3aea30c1-b126-4d52-a869-abf6adfc8fa1.png)
- Up to 32 buttons
- 4 Button pages
- Up to 8 buttons per page, across 4 different pages, totaling 32 buttons
- Button design is automatically generated based on the selected entity
- Buttons show current brightness and cover position in the button itself
- Buttons label can be assigned via blueprint
- All buttons with long press function
- Automatic detection by long press if it is a light, cover or climate for submenu
- Buttons display current brightness and cover position directly on the button
- Button labels can be assigned via blueprint
- All buttons feature a long-press function
- Automatic detection of light, cover, fan, media player, alarm or climate entities for submenus through long press
- Swipe between all pages
- Swipe also down and up for fast access to certain pages
- Swipe up and down for quick access to specific pages
### Entities Pages
![Entities EU](docs/pics/eu_entities.png)
![Entities US](docs/pics/us_entities.png)
- Up to 8 entities per page, across 4 different pages, totaling 32 entities
- Icons and labels can be individually configured via blueprint or automatically detected for each entity
- Flexible alignment options for values as per user preference
&nbsp;
### Light Settings
![4 lightsetting 1](https://user-images.githubusercontent.com/41958506/203654055-943d1910-7673-4d9f-ad81-7ef00d155e5a.png)
![5 Lightsetting 2](https://user-images.githubusercontent.com/41958506/203654076-93e110df-f314-4cf1-8500-ed667f2202fd.png)
![6 Lightsetting 3](https://user-images.githubusercontent.com/41958506/203654179-f7303b02-c886-4890-b976-cb498940a627.png)
@@ -100,8 +107,8 @@ This innovative solution is designed to revolutionize how you interact with your
- Color temperature slider
- Jump back to the right button page
&nbsp;
### Cover Settings
![8 Cover](https://user-images.githubusercontent.com/41958506/203654290-c6ec2f2f-7924-492c-914c-0d96dc3907e0.png)
- Open and close cover
@@ -109,29 +116,28 @@ This innovative solution is designed to revolutionize how you interact with your
- Cover battery value (when available)
- jump back to the right button page
&nbsp;
### Thermostat / Climate
- Target temperature control slider
- Current temperature
- 4 user's selectable values (for water and external temperatures, etc.)
- All the standard climate controls from Home Assistant (`heat`, `fan`, `cool`, `auto`, `dry`)
- 2 user's selectable buttons
- [Can be used for local control (even when Wi-Fi is unavailable) when your panel's relays are used to control your cooler/heater](/docs/en/addon_climate.md)
- [Can be used for local control (even when Wi-Fi is unavailable) when your panel's relays are used to control your cooler/heater](docs/addon_climate.md)
&nbsp;
### Fan speed
- Turn-on and turn-off fan
- Set speed via slider or buttons
- jump back to the right button page
&nbsp;
### Alarm
- Arm/disarm an alarm (standard modes supported by Home Assistant)
- Support to numeric pin for arming or disarming
&nbsp;
### Weather Forecast
![9 Weather](https://user-images.githubusercontent.com/41958506/203654307-24000d00-b7e1-47eb-bd64-9e97b508db52.png)
- 5 days weather forecast via swipe (supports most used weather integrations)
@@ -144,11 +150,10 @@ This innovative solution is designed to revolutionize how you interact with your
- Thunderstorm probability
- Wind speed
&nbsp;
### Display Settings
![Settings EU](docs/pics/eu_settings.png)
<br>
![Settings US](docs/pics/us_settings.png)
- Restart NSPanel
@@ -156,22 +161,27 @@ This innovative solution is designed to revolutionize how you interact with your
- Display dim brightness slider
### Boot
![Boot EU](docs/pics/eu_boot.png)
<br>
![Boot US](docs/pics/us_boot.png)
![Boot EU](docs/pics/eu_boot.png)
![Boot US](docs/pics/us_boot.png)
## Home Assistant interface
## Device's page
On the device's page under "Devices & Services" you can set the global configuration of your device and see the value of it's sensors and relays:
![Device Setting - Controls](docs/pics/ha_device_controls.png)<br>
![Device Setting - Sensors](docs/pics/ha_device_sensors.png)<br>
![Device Setting - Configuration](docs/pics/ha_device_configuration.png)<br>
![Device Setting - Diagnostic](docs/pics/ha_device_diagnostic.png)<br>
![Device Setting - Controls](docs/pics/ha_device_controls.png)
![Device Setting - Sensors](docs/pics/ha_device_sensors.png)
![Device Setting - Configuration](docs/pics/ha_device_configuration.png)
![Device Setting - Diagnostic](docs/pics/ha_device_diagnostic.png)
## Automation (Blueprint)
In your automations you use the blueprint's inputs to define what will be shown on your panel and how it should behave:
![Blueprint 01](docs/pics/ha_blueprint_01.png)
![Blueprint 02](docs/pics/ha_blueprint_02.png)
@@ -179,7 +189,6 @@ In your automations you use the blueprint's inputs to define what will be shown
![Blueprint 04](docs/pics/ha_blueprint_04.png)
![Blueprint 05](docs/pics/ha_blueprint_05.png)
## 🚀 Contributing
- **Pull Requests:** Please direct all pull requests to the `DEV` branch, not the `main` branch.
@@ -198,15 +207,15 @@ Join our vibrant community! Whether you're seeking support, wanting to contribut
A huge thank you to everyone who has contributed to making this project a reality. Your support, feedback, and contributions have been invaluable.
And special thanks for the other projects which inspired us:
- Hellis81: https://github.com/Hellis81/NS-panel
- Jimmyboy83: https://github.com/Jimmyboy83/nspanel
- joBr99: https://github.com/joBr99/Generate-HASP-Fonts
- lovejoy77: https://github.com/lovejoy777/NSpanel
- Marcfager: https://github.com/marcfager/nspanel-mf
- Masto: https://github.com/masto/NSPanel-Demo-Files
- sairon: https://github.com/sairon/esphome-nspanel-lovelace-ui
- SmartHome Yourself: https://www.youtube.com/c/SmarthomeyourselfDe_DIY
- [Hellis81](https://github.com/Hellis81/NS-panel)
- [Jimmyboy83](https://github.com/Jimmyboy83/nspanel)
- [joBr99](https://github.com/joBr99/Generate-HASP-Fonts)
- [lovejoy77](https://github.com/lovejoy777/NSpanel)
- [Marcfager](https://github.com/marcfager/nspanel-mf)
- [Masto](https://github.com/masto/NSPanel-Demo-Files)
- [sairon](https://github.com/sairon/esphome-nspanel-lovelace-ui)
- [SmartHome Yourself](https://www.youtube.com/c/SmarthomeyourselfDe_DIY)
## 💖 Donations

View File

@@ -1,185 +1,311 @@
# v4.1.1 - Easier TFT transfer
# v4.2 - Multi-Alarm Control, Dual Thermostat Functionality, and More
## Support this project
### As always, we would like to thank everyone who donated to this project and remind you that every donation helps to support this project - so if you haven't made a donation yet, now would be a good time ;)
**As always, we would like to thank everyone who donated to this project and remind you that every donation helps to support this project
So if you haven't made a donation yet, now would be a good time ;)**
[![Paypal](https://user-images.githubusercontent.com/41958506/212499642-b2fd097a-0938-4bfc-b37b-74df64592c58.png)](https://www.paypal.com/donate/?hosted_button_id=S974SWQMB8PB2)
&nbsp;
## General
The focus this time was on making easier to transfer the TFT files.
As this project grows with features, it becomes more hungry of resources from all sides (ESPHome, your Home Assistant server and even the Nextion display) and with that the chances of something going wrong when updating increased.
Hello everyone! In our latest update, we've made some great strides to enhance your experience.
We've fine-tuned the TFT upload process, making it smoother and more user-friendly for both newbies and veterans.
So at this release we concentrated on cleaning up de code everywhere and shave some unnecessary elements, making the system easier to install and opening some space for future features. But you still can find a couple of nice new things not related to the cleaning.
Exciting news we've introduced multiple alarm control panels and added support for dual target temperature thermostats, complete with a handy new add-on.
On top of that, you've got more customization freedom now. Play around with additional custom buttons and icon size settings on your Home and button pages.
Oh, and don't miss the new clock feature on the sleep page it's a small but nifty addition!
Dive into the details below and see how these improvements can upgrade your day-to-day. Looking forward to your feedback!
### Upcoming Change: Switching to ESP-IDF Framework by March 2024
Exciting news for our community in just a couple of months, by March 2024, we'll be transitioning to the **ESP-IDF** as our default framework.
This upgrade is designed to significantly increase the available memory on the ESP, making more room for new features and your customizations.
While the change is around the corner, there's no need to rush. You have time to get ready for this transition.
When it's time to switch, youll need to flash your device using a serial cable, similar to what you did for your first custom firmware installation.
If you happen to need a serial firmware installation before March, consider giving `esp-idf` a try earlier. Its already supported and a good step towards future-proofing your setup.
And if you're not able to make the switch by March or can't flash via serial, don't worry. Youll still have the option to use the `arduino` framework and update your device wirelessly (OTA).
For all the details on customizing the framework, our [customization docs](docs/customization.md#framework-esp-idf) are there to help.
We're committed to making this transition as smooth as possible, so reach out if you have any concerns or need assistance.
&nbsp;
## Updating
Since in this update lots of input to the blueprint changed, we highly recommend you review your settings and make sure all fields have the correct selection. We did our best to support your legacy settings and avoid breaking your system, but please double check your settings if you see something not working as expected.
### Files that need to be reloaded:
1. nspanel_eu.tft, nspanel_us.tft or nspanel_us_land.tft - v4.1.4
2. nspanel_esphome.yaml - v4.1.4
3. nspanel_blueprint.yaml - v4.1.4
Updates may come with changes on the blueprint inputs and we highly recommend you review your settings and make sure all fields have the correct selection.
We did our best to support your legacy settings and avoid breaking your system, but please double check your settings if you see something not working as expected.
####
### Files that need to be reloaded
1. nspanel_eu.tft, nspanel_us.tft or nspanel_us_land.tft - v4.2
2. nspanel_esphome.yaml - v4.2
3. nspanel_blueprint.yaml - v4.2
### Instructions
_You can find the update procedures following here:_
- [(EN) How To - All important thing you should know - Update](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/(EN)-HowTo---All-important-thing-you-should-know#2-update-blueprint)
- [(DE) How To - Alle wichtigen Dinge die man wissen sollte - Update](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/(DE)-HowTo---Alle-wichtigen-Dinge-die-man-wissen-sollte#2-update-blueprint)
&nbsp;
*You can find the update procedures following here:*
- [How To - All important thing you should know - Update](docs/howto.md#update-blueprint)
## Breaking changes
1. Home Assistant 2023.9.0 or later is now required
<br>This is necessary in order to support the new [Weather Forecast Service](https://www.home-assistant.io/blog/2023/09/06/release-20239/#weather-forecast-service).
<br>The legacy forecast based on attributes will be deprecated in Home Assistant on the begining of 2024.
1. **The `background` parameter in the `esphome.xxxxx_set_component_color` service is now deprecated.**
2. **On the home and climate pages, the button layout has changed.**
2. The following components are now deprecated:
- Buttons:
- Exit reparse (`button.xxxxx_exit_reparse`) - It shouldn't be necessary with the new TFT upload engine
- ~~Services:~~
- ~~Play rtttl (`esphome.xxxxx_play_rtttl`)~~
- Sensors:
- API uptime
- Device uptime
- RSSI
- ESPhome Version
- IP
- SSID
- BSSID
- ESPHome components:
- Web server
This adjustment was made to incorporate additional custom buttons on the home page and new target temperature indicators on the climate page.
3. **Wi-Fi power save mode has been reset to `NONE` as the default setting.**
This was the standard up to v4.0. We switched it in v4.1 to accommodate Bluetooth components.
However, since this feature isn't widely used, we're reverting to the original setting.
For Bluetooth usage, you should manually set a different mode, such as `LIGHT`, as shown in the customization example below:
You can still add these components (except by "Exit reparse") by adding the file `nspanel_esphome_advanced.yaml` in your ESPHome settings as in the example bellow, but please have in mind that these are not used by the blueprint and will be using some memory of your ESPHome.
```yaml
...
packages:
remote_package:
url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: main
files:
- nspanel_esphome.yaml # Core package
- nspanel_esphome_advanced.yaml # activate advanced (legacy) elements - can be useful for troubleshooting
...
##### My customization - Start #####
# Enable Bluetooth proxy
bluetooth_proxy:
# Set Wi-Fi power save mode to "LIGHT" as required for Bluetooth on ESP32
wifi:
power_save_mode: LIGHT
##### My customization - End #####
```
3. Very long press on hardware buttons
<br>If you have a custom automation using very long hold (more than 15s) of hardware buttons it may fail as now the panel will restart with button hold for 15s.
4. **The default baud rate for advanced mode has been reverted to 115200 bps** to resolve issues that arise when rendering button pages.
5. **ESPHome v2023.12.0 has been established as the minimum required version** to ensure optimal performance and compatibility, particularly with the recent developments in the Nextion component.
6. **The Alarm section in the blueprint settings has been removed.** All configurations previously made in this section have been automatically transferred to custom button 07.
7. **Documentation in German is no longer maintained.** This change allows us to more efficiently update and maintain the remaining documentation.
8. **Reversion to "Toggle" as default action for automation entities on buttons.**
4. Logger via UART is disable
<br>You can add it back as a [customization](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/%28EN%29-Customization/_edit#logger-via-uart).
5. Service `notification_show` parameter `text` was renamed to `message` to support ESPHome 2023.11.0.
In this update, we have reverted the default action for button presses on automation. entities back to "Toggle".
This change reverses the adjustment made in version 4.1, where "Trigger" was set as the default action.
**Impact:**
- **Default Behavior:** With this reversion, pressing a button linked to an automation entity will now enable or disable the automation, as it did prior to version 4.1.
- **Consistency and Familiarity:** This change aims to align with user expectations and maintain consistency in the user experience.
- **Customization Still Available:** Users still have the option to manually set "Trigger" as the action for their `automation.` entities, as per their preference.
We understand that changes in default settings can impact your workflows.
We appreciate your understanding as we strive to balance new features with the familiarity and stability of the user experience.
9. **Advanced mode no longer enforces a specific framework.**
In the past, the enforcement of framework changes by the advanced mode could inadvertently result in users switching frameworks during OTA updates.
This practice was not recommended due to the potential for errors.
10. **Alarm page cannot be used as wake-up page.**
As multiple alarms are supported now, the system don't know which one to show on the wake-up.
11. **Changes in icon presentation.**
As part of our efforts to standardize icons across various pages, you might notice some differences in how they appear and behave.
This includes new colors for lights and climate icons, as well as the introduction of new icon designs.
While many aspects can still be customized through blueprint settings, the default presentation will now adhere to this new standardized format.
These changes might be a departure from what you're accustomed to in previous versions, but they aim to enhance overall consistency and user experience.
12. ***Action required:* Reset your wake-up page selection.**
We've enhanced the wake-up page functionality for improved consistency after power cycles.
Previously, the system didn't remember your selection following a power outage. With our latest update, this issue has been resolved.
However, this improvement requires you to reselect your wake-up page one more time.
Thanks for your cooperation in making these settings more reliable for everyday use.
6. Buttons now will run an automation
<br>On the previous versions, a button with an automation will enable or disable the automation. Now the button will trigger the automation.
<br>If you want the legacy behavior, please create a script to enable/disable the automation and assign this to your button. 😉
&nbsp;
## Overview of noteworthy changes
1. New Upload TFT engine
2. Hardware restarts with button hold for 15s
3. Support to `esp-idf` framework
4. Support to 921600 bps
5. Font size for chips
6. Short click to open Climate and Media Player
- 4.1.1 patch:
- Service `esphome.xxxxx_play_rtttl` is back to core package
- Stop the fallback to Home page when Notification or Confirm pages are shown
- Display current temperature on buttons even when climate is off
- Buttons on both the Home and Buttons pages shows entity's icon when available
- 4.1.2 patch:
- Fix light icon color not being used for buttons
- Add option to wake-up to Climate page
- New switch "Nextion display - Power" which can turn the screen on/off
- Fix for button image update when local fallback is enabled.
- Don't show thermostat chip when state is `auto` and no action is available.
- Fallback to legacy forecast (attributes based) when new method (service based) fails.
- Fix custom buttons icons not updating on Home page
- Fix Nextion not communicating with ESPHome 2023.11.6
- 4.1.3 patch:
- Upload TFT remove dependency to from ESPHome Nextion component
- Fix light icon color on buttons
- Fix climate page not updating properly
- 4.1.4 patch:
- Supports new `weather.get_forecasts` introduced by Home Assistant 2023.12.0
- Manual line break on multiline text with `\r`
- Upload TFT user's interface on the panel
1. Standardized entity icons
2. Additional custom buttons on Home page
3. Outdoor temperature selectable font size
4. Select icon size for button's pages
5. Support to CJK languages (experimental)
6. Improved TFT transfer
7. Multiple Alarm Control Panels
8. Support to `remote`
9. Home page chips now supports covers
10. Chips can be inverted
11. Add swipe control to screensaver page
12. Enhanced control for automation entities on buttons
13. Dual thermostat controller support (add-on)
14. Dual thermostat display
15. Enhanced timeout flexibility for Sleep, Page fallback, and Dimming settings
16. Display time on the `screensaver` page
&nbsp;
## Details of noteworthy changes
### 1. New Upload TFT engine
We rebuilt the Upload TFT engine and now it will be using less resources from ESPHome during the transfer and, in addition, will provide more logs for troubleshooting.
### 1. Standardized entity icons
The original engine from Nextion component still as a fallback in case the new engine fails, but it might be removed in a future version.
The engine for defining the icons to be shown and it's color was standardize between all the pages, so now you may see a more consistent User's Interface.
We've upgraded the icon definition engine to standardize the appearance and color of icons across all pages.
This enhancement leads to a more consistent and harmonious user interface.
Expect a unified visual experience that aligns the look and feel of icons throughout the system, contributing to improved navigation and aesthetic appeal.
&nbsp;
### 2. Hardware restarts with button hold for 15s
Now if you press the hardware buttons for more than 15s, the panel will act as the following:
| Button | Action | Details |
| :--: | :--: | :- |
| Left | Power cycle the screen | It can remove the need to power cycle the panel when the screen can't stablish connection to ESPHome (`Nextion is not connected!` on logs). |
| Right | Restarts the panel | It is equivalent to press the "Restart" button on the Settings page or from Home Assistant, but is available even when the Wi-Fi isn't connected or Home Assistant is out. |
### 2. Additional custom buttons on Home page
&nbsp;
### 3. Support to `esp-idf` framework
Although this project still using ESPHome default framework (currently `arduino`), we started supporting the framework `esp-idf` as this is a recomendation from ESPHome team since an year ago or so.
The `arduino` protocol still more popular and therefore more components are available, but there are some advantages with the ESP-IDF framework:
- It is updated more frequently by EspressIF, which means it is more secure and stable.
- It reduces a layer, as Arduino is developed in top of ESP-IDF, so basically we are changing from ESPHome -> Arduino -> ESP-IDF -> Hardware to ESPHome -> ESP-IDF -> Hardware.
- By reducing a layer, more memory is available for future features and for the custom components you might want to add to your panel.
- The memory management is more efficient, which makes critical tasks, like uploading a TFT file, more reliable.
<br>In the future we will probably make this as the default framework, so if you are a new user or if for some reason you have to flash your panel via serial/usb, it's a good idea to change to ESP-IDF now.
<br>Please look at [customizations docs in the Wiki](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/(EN)-Customization#framework-esp-idf) for more details on how to change the framework.
<br>-> The ESP-IDF framework will be used when you enable the advanced mode.
It's that simple, now you have 7 buttons where used to be 3. Well, where used to be 4, as the space previously used by the Alarm button is now a custom button. 😉
&nbsp;
### 4. Support to 921600 bps
Until this point, the communication between ESPHome and the Nextion display is at 115200 bps. This is not changing for now, but we are preparing to change this in the near future to a higer rate of 921600 bps, which is 8 times higher than the one used currently.
After installing the latest TFT v4.1, you will be able to [change the speed as a customization](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/(EN)-Customization#change-uarts-baud-rate) and your system will switch to the higher transfer rate after the next boot.
<br>In most of the cases, you are not going to see any diference related tho this change, but it will reduce significantly the time to upload a TFT file.
### 3. Outdoor temperature selectable font size
&nbsp;
### 5. Font size for chips
We ran a poll, the maiority select one option, but we respect the minority and... we supported both options. :smiley:
<br>Now you can have your chips a bit bigger, making it easier to see from the distance:
Now you can select the font size of your outdoor temperature display:
| 24px | 32px |
| :--: | :--: |
| As before | New option |
| ![EU font 8](https://github.com/Blackymas/NSPanel_HA_Blueprint/assets/94725493/dfb79856-8456-443c-b4de-a955be8e4561) | ![EU font 9](https://github.com/Blackymas/NSPanel_HA_Blueprint/assets/94725493/268ec945-94dc-4f17-be94-8abd691ef2ed) |
| ![US font 8](https://github.com/Blackymas/NSPanel_HA_Blueprint/assets/94725493/a9eb3578-901a-444f-9d52-3909f2aa4f34) | ![US font 9](https://github.com/Blackymas/NSPanel_HA_Blueprint/assets/94725493/e46bac5e-8a84-4cfe-a01d-159042828350) |
![image](https://github.com/Blackymas/NSPanel_HA_Blueprint/assets/94725493/263f14d6-39f7-41d2-ae12-72f403d811fd)
If you wanna try the new option, just go to your blueprint setting and select the font size:
![image](https://github.com/Blackymas/NSPanel_HA_Blueprint/assets/94725493/83e64dfa-b2cf-4186-af2a-6f89c96e9044)
> Important: Long text with bigger fonts may exceed the limit of space reserved for this with incomplete information shown.
&nbsp;
### 6. Short click to open Climate and Media Player
Now on any button page, buttons assigned to Climate or Media Player entities will always open the detailed page. As it is hard to define an adequate toggle action for all the different cases, it makes more sense to just open the page and let the control to the users.
### 4. Select icon size for button's pages
&nbsp;
## Next topics we are currently working on
See here: https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/roadmap
You can also select the size of the icons on the buttos pages:
## Special thanks to:
- @misery - Fixing a typo in the docs (#1176)
- @Floppe - Adding space for value fields on Home page (#1180)
- @bkbartk:
- Display current temperature on buttons even when climate is off (#1268)
- Button pages shows entity's icon when available (#1269)
- Home page buttons shows entity's icon when available (#1276)
- New switch "Nextion display - Power" which can turn the screen on/off (#1327)
- Fix for button image update when local fallback is enabled (#1333)
![HA Blueprint - Buttons pages icon's size](docs/pics/ha_blueprint_buttons_pages_icon_size.png)
## New Contributors
@misery
@Floppe
@bkbartk
![EU Buttons pages - Small icons](docs/pics/eu_buttonpages_icon_small.png)
![EU Buttons pages - Large icons](docs/pics/eu_buttonpages_icon_large.png)
### 5. Support to CJK languages (experimental)
You will find 3 new TFT files on the repository for the CJK languages. These files are considerably bigger, as the fonts requires more memory, but it should work fine in your panel.
**ATTENTION:** This is an experimental feature and may contain bugs or some areas missing translations. Please report if you find anything.
### 6. Improved TFT transfer
#### TFT file selectors
We still working on the Upload TFT engine to make it easier for new and for experienced users.
Now, together with the **Update TFT Display** button, you will find also **Update TFT Display - Model** and **Update TFT Display - Branch** (disabled by default)
where you can select the different model you are using and the upload URL will be automatically adjusted to donwload the file directly from the repository on GitHub,
making this process much easier and removing the need of flashing your device every time you want to play with another TFT file or install the `nspanel_blank.tft`.
![HA Blueprint - Update TFT controls](docs/pics/ha_blueprint_upload_tft_controls.png)
If you have issues with the remote file and want to transfer it from your local server just as before, simply select **Use nextion_update_url** in **Update TFT Display - Model**.
And you also can use the `esphome.xxxxx_upload_tft_url` service to upload using an alternative URL without the need of flash your panel again.
#### Alternative baud rate for TFT uploads
You can select an alternative baud rate for your TFT uploads.
This allows faster TFT uploads and also supports displays previously set with baud rates not supported by this project (currently 115200 bps and 921600 bps).
In most cases, this would be set for a higher value to enable faster TFT transfer.
The default is 921600 bps, the maximum supported by Nextion displays.
You can also use this if you have issues with TFT transfer and want to try a lower baud rate as in some rare cases Nextion will automatically set itself to 9600 bps.
To enable an alternative upload TFT baud rate, add the desired value in your substitutions like this:
```yaml
upload_tft_baud_rate: "9600"
```
If an invalid value is entered, 115200 bps will be used. The default value for this substitution (in case it is not set by users) will be 921600 bps.
During a TFT transfer, the system will always fall back to the standard baud rate (115200 bps) if other tentatives fails.
### 7. Multiple Alarm Control Panels
Now alarm control panel entities can be assigned to chips and custom buttons in the Home page, but also to hardware buttons, any of the buttons pages or entities pages, similarly to other domains.
### 8. Support to `remote`
Entities from the `remote` domain can now be assigned to buttons (hardware and buttons pages) and custom buttons (home and climate pages).
The service `remote.toggle` will be called when the button is pressed.
### 9. Home page chips now supports covers
That's it!
Chips now include cover visualization, allowing for easy monitoring of covers directly from the Home page.
### 10. Chips can be inverted
Chips now have an 'invert' option on the blueprint settings, providing additional customization flexibility.
### 11. Add swipe control to Screensaver page
You can now navigate to button pages from the screensaver while your panel is in sleep mode. The swipe controls will function as they do on the Home page.
### 12. Enhanced control for automation entities on buttons
We're pleased to announce a new feature that offers users enhanced control over their smart home setups.
Now, you can globally select between **Toggle** and **Trigger** actions for button presses on automation entities.
This update allows for a more personalized and efficient control experience, tailored to your unique preferences.
#### Key features
- **Toggle:** This action will enable or disable the automation. It is set as the default option.
- **Trigger:** This action will execute the automation regardless of its current state, providing more flexibility.
#### How to use
1. Access your configuration for automation under **Services** > **Automations & Scenes**. Select the automation associated with your panel setup.
1. Scroll to the **ADVANCED SETTINGS** section at the end.
1. From the menu, select your desired action - either **Toggle** or **Trigger**.
1. Apply the setting. This will then be effective across all relevant entities.
This update is specially designed to cater to diverse user needs, ensuring a more intuitive and responsive smart home experience.
### 13. Dual thermostat controller support (add-on)
This new add-on enables the NSPanel to manage both heating and cooling systems simultaneously, utilizing its dual relay functionality.
#### Key Benefits
- **Versatility:** Users can now configure their NSPanel to control both a heater and a cooler, offering increased flexibility in home temperature management.
- **Efficiency:** With the ability to control both heating and cooling systems, the NSPanel can more effectively maintain desired temperatures, potentially leading to energy savings.
- **User Experience:** This update simplifies the user interface by integrating control of both systems into one panel, making it easier to manage home climate.
#### Implementation Details
- The dual thermostat controller functionality allows the NSPanel to utilize both of its relays for separate heating and cooling control.
Users can configure their heating and cooling settings independently, providing a tailored climate control experience.
- The update is designed to be intuitive and user-friendly, ensuring a seamless transition for existing NSPanel users.
- Additional Documentation: For detailed instructions and configurations, refer to the updated [add-on climate documentation](docs/addon_climate.md).
#### Note to Users
This feature enhances the capabilities of the NSPanel without compromising its existing functionalities.
Users who previously used the NSPanel for single-mode (either heating or cooling) control can now explore dual-mode options for a more comprehensive climate control solution.
### 14. Enhanced Climate Page for Dual Thermostat Control
Leveraging the capabilities introduced with the Dual Thermostat Controller add-on, the existing climate page has been upgraded to support systems with dual temperature settings.
This enhancement allows users to effectively manage thermostats that require both heating and cooling target temperatures, directly from the NSPanel's interface.
While originally developed to complement the new add-on,
this refined climate page also seamlessly extends its functionality to existing thermostats with dual set capabilities,
offering a more versatile and comprehensive climate control experience.
### 15. Enhanced timeout flexibility for Sleep, Page fallback, and Dimming settings
We have improved the functionality of our system by enhancing the timeout flexibility for Sleep, Page Fallback, and Dimming settings.
The previous timeout limit of 300 seconds has been significantly expanded, offering users more control and customization options for these specific features.
This enhancement allows for a wider range of use cases, catering to the needs of those who require extended periods for these settings, while still maintaining the option for shorter durations.
### 16. Display time on the `screensaver` page
In this release, we're excited to introduce a new feature that adds a display time function to the Screensaver page.
With this update, our screensaver not only serves its primary purpose of saving screen energy but also doubles as an informative display,
reflecting our commitment to creating practical, user-friendly solutions.
You can enable this feature on the bueprint settings, at the **CUSTOM CONFIGURATION** section (almost at the end).
You also have to set **Display Brightness Sleep** at the device's page (**Settings** > **Devices & Services** > **ESPHome**).
## What's Next?
Discover what's next and what we are working on right now in our [Milestones](https://github.com/Blackymas/NSPanel_HA_Blueprint/milestones?direction=asc&sort=due_date)
## Special thanks to
- @bluefoxlee - For the CJK fonts and all the support with #1359.
- @Floppe - Fix entity pages labels, #1455
- @tikismoke - Customization guide: Exposing relay fallback switch to Home Assistant, #1537
## Previous releases
- [v4.1.4 - Support to Home Assistant 2023.12.0](https://github.com/Blackymas/NSPanel_HA_Blueprint/releases/tag/v4.1.4)
- [v4.1.3 - Bug fixes](https://github.com/Blackymas/NSPanel_HA_Blueprint/releases/tag/v4.1.3)
- [v4.1.2 - Bug fixes and minor enhancements](https://github.com/Blackymas/NSPanel_HA_Blueprint/releases/tag/v4.1.2)
- [v4.1.1 - UI Enhancements and Reintroduction of `play_rtttl` Service](https://github.com/Blackymas/NSPanel_HA_Blueprint/releases/tag/v4.1.1)
- [v4.1 - Easier TFT transfer](https://github.com/Blackymas/NSPanel_HA_Blueprint/releases/tag/v4.1)
- [v4.0.2 - Bug fixes](https://github.com/Blackymas/NSPanel_HA_Blueprint/releases/tag/v4.0.2)
- [v4.0.1 - Bug fixes](https://github.com/Blackymas/NSPanel_HA_Blueprint/releases/tag/v4.0.1)

15
advanced/.gitignore vendored Normal file
View File

@@ -0,0 +1,15 @@
# Ignore Mac DS_Store files
.DS_Store
**/.DS_Store
Nextion2Text.*
*.cmd
*.bat
# Ignore IntelliJ IDEA project directory
.idea
# Ignore dev folder
dev
#nspanel_esphome_prebuilt.yaml

5
advanced/esphome/.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
# Gitignore settings for ESPHome
# This is an example and may include too much for your use-case.
# You can modify this file to suit your needs.
/.esphome/
/secrets.yaml

View File

@@ -6,24 +6,26 @@
#####################################################################################################
##### ATTENTION: This will add climate elements to the core system and requires the core part. #####
#####################################################################################################
---
substitutions:
### Local thermostat defaults ###
# https://esphome.io/components/climate/thermostat.html
temp_units: "°C"
heater_relay: "0" # Select 1 for "Relay 1", 2 for "Relay 2" or "0" to a dummy switch/disabled
cooler_relay: "0" # Select 1 for "Relay 1", 2 for "Relay 2" or "0" to a dummy switch/disabled
min_off_time: "300"
min_run_time: "300"
min_idle_time: "30"
# https://esphome.io/components/climate/index.html#base-climate-configuration
temp_min: "5"
temp_max: "45"
temp_min: "7"
temp_max: "35"
temp_step: "0.5"
target_low: "18"
target_high: "24"
##### DO NOT CHANGE THIS #####
addon_climate_cool: "false"
addon_climate_heat: "false"
addon_climate_dual: "false"
##############################
climate:
@@ -35,17 +37,21 @@ climate:
visual:
min_temperature: ${temp_min} ${temp_units}
max_temperature: ${temp_max} ${temp_units}
temperature_step: ${temp_step} ${temp_units}
temperature_step:
target_temperature: 0.5 # This is hard coded for now as ESPHome isn't supporting a substitution here. In contact with support.
current_temperature: 0.1
idle_action:
- switch.turn_off: relay_${heater_relay}
default_preset: "Off"
on_boot_restore_from: memory
internal: false
on_state:
- logger.log: Climate state changed - Start
- script.execute: addon_climate_update_page_climate
- script.execute: addon_climate_update_page_home
- logger.log: Climate state changed - End
- lambda: |-
static const char *const TAG = "addon_climate_base.climate.thermostat_embedded.on_state";
ESP_LOGD(TAG, "Starting");
page_climate->execute();
page_home->execute();
ESP_LOGD(TAG, "Finished");
globals:
##### Is embedded thermostat visible on climate page? #####
@@ -69,17 +75,6 @@ switch:
optimistic: true
script:
- id: !extend addon_climate_update_page_home
mode: restart
then:
- lambda: |-
// Update home.climate_entity variable
detailed_entity->publish_state((id(is_embedded_thermostat)) ? "embedded_climate" : "");
disp1->set_component_value("climate.embedded", (id(is_embedded_thermostat)) ? 1 : 0);
// Update chips
if (id(is_embedded_thermostat))
id(update_climate_icon).execute("home.icon_top_03", int(thermostat_embedded->action), int(thermostat_embedded->mode));
- id: !extend addon_climate_service_call
then:
- lambda: |-
@@ -92,12 +87,18 @@ script:
call.set_mode(value);
call.perform();
- id: !extend addon_climate_set_climate
- id: !extend global_settings
then:
- lambda: |-
id(is_addon_climate_visible) = embedded_climate;
id(addon_climate_friendly_name) = embedded_climate_friendly_name;
- id: !extend addon_climate_update_page_climate
- id: !extend open_entity_settings_page
then:
- lambda: |-
if (page == "climate" and entity == "embedded_climate")
id(addon_climate_friendly_name) = page_label;
- id: !extend page_climate
then:
- lambda: |-
if (current_page->state == "climate" and id(is_addon_climate_visible))
@@ -107,10 +108,18 @@ script:
float temp_offset = ${temp_min};
float temp_max = ${temp_max};
float total_steps = (temp_max-temp_offset)/temp_step;
uint supported_hvac_modes = 0;
if (${addon_climate_dual})
supported_hvac_modes = 3;
else
supported_hvac_modes = supported_hvac_modes + ((${addon_climate_heat}) ? 1 : 0) + ((${addon_climate_cool}) ? 2 : 0);
set_climate->execute
(
thermostat_embedded->current_temperature, // current_temp
0, // supported_features
thermostat_embedded->target_temperature, // target_temp
thermostat_embedded->target_temperature_high, // target_temp_high
thermostat_embedded->target_temperature_low, // target_temp_low
int(round(${temp_step}*10)), // temp_step
int(round(total_steps)), // total_steps //int(round((10*thermostat_embedded->target_temperature-temp_offset)/temp_step)), // slider_val
int(round(${temp_min}*10)), // temp_offset
@@ -119,28 +128,86 @@ script:
);
// Update target temp icon
update_climate_icon->execute("climate.target_icon", int(thermostat_embedded->action), int(thermostat_embedded->mode));
update_climate_icon->execute("target_icon", int(thermostat_embedded->action), int(thermostat_embedded->mode));
// Update buttons bar
// Hide not supported hotspots
disp1->hide_component("button01");
disp1->hide_component("button02");
if (${addon_climate_heat}) disp1->show_component("button03"); else disp1->hide_component("button03"); //Heat
if (${addon_climate_cool}) disp1->show_component("button04"); else disp1->hide_component("button04"); //Cool
if (${addon_climate_dual}) disp1->show_component("button02"); else disp1->hide_component("button02");
if (${addon_climate_heat} or ${addon_climate_dual}) disp1->show_component("button03"); else disp1->hide_component("button03"); //Heat
if (${addon_climate_cool} or ${addon_climate_dual}) disp1->show_component("button04"); else disp1->hide_component("button04"); //Cool
disp1->hide_component("button05");
disp1->hide_component("button06");
disp1->show_component("button07"); //Off
// Set buttons colors
disp1->set_component_font_color("climate.button01_icon", 6339);
disp1->set_component_font_color("climate.button02_icon", 6339);
disp1->set_component_font_color("climate.button03_icon", (thermostat_embedded->mode==climate::CLIMATE_MODE_HEAT) ? 64164 : ((${addon_climate_heat}) ? 48631 : 6339));
disp1->set_component_font_color("climate.button04_icon", (thermostat_embedded->mode==climate::CLIMATE_MODE_COOL) ? 1055 : ((${addon_climate_cool}) ? 48631 : 6339));
disp1->set_component_font_color("climate.button05_icon", 6339);
disp1->set_component_font_color("climate.button06_icon", 6339);
disp1->set_component_font_color("climate.button07_icon", (thermostat_embedded->mode==climate::CLIMATE_MODE_OFF) ? 10597 : 35921);
disp1->set_component_font_color("button01", 6339);
disp1->set_component_font_color("button02", (thermostat_embedded->mode==climate::CLIMATE_MODE_HEAT_COOL) ? 65535 : ((${addon_climate_dual}) ? 48631 : 6339));
disp1->set_component_font_color("button03", (thermostat_embedded->mode==climate::CLIMATE_MODE_HEAT) ? 64164 : ((${addon_climate_heat} or ${addon_climate_dual}) ? 48631 : 6339));
disp1->set_component_font_color("button04", (thermostat_embedded->mode==climate::CLIMATE_MODE_COOL) ? 1055 : ((${addon_climate_cool} or ${addon_climate_dual}) ? 48631 : 6339));
disp1->set_component_font_color("button05", 6339);
disp1->set_component_font_color("button06", 6339);
disp1->set_component_font_color("button07", (thermostat_embedded->mode==climate::CLIMATE_MODE_OFF) ? 10597 : 35921);
}
- id: !extend addon_climate_set_climate_friendly_name
- id: !extend page_changed
then:
- lambda: |-
id(addon_climate_friendly_name) = friendly_name;
id(is_addon_climate_visible) = (page == "climate" and detailed_entity->state == "embedded_climate");
- id: !extend page_home
then:
- lambda: |-
// Update chips
if (id(is_embedded_thermostat))
update_climate_icon->execute("home.icon_top_03", int(thermostat_embedded->action), int(thermostat_embedded->mode));
- id: !extend set_climate
then:
- lambda: |-
if (current_page->state == "climate")
id(is_addon_climate_visible) = embedded_climate;
- id: !extend watchdog
then:
- lambda: |-
static const char *const TAG = "addon_climate_base.script.watchdog";
bool addon_climate_cool = ${addon_climate_cool};
bool addon_climate_heat = ${addon_climate_heat};
bool addon_climate_dual = ${addon_climate_dual};
uint cooler_relay = ${cooler_relay};
uint heater_relay = ${heater_relay};
ESP_LOGI(TAG, "Add-on climate:");
if (addon_climate_cool) {
ESP_LOGI(TAG, " Cool: %s", addon_climate_cool ? "Enabled" : "Disabled");
if (cooler_relay == 1 or cooler_relay == 2)
ESP_LOGI(TAG, " Relay: %i", cooler_relay);
else
ESP_LOGE(TAG, " Relay: %i", cooler_relay);
}
if (addon_climate_heat) {
ESP_LOGI(TAG, " Heat: %s", addon_climate_heat ? "Enabled" : "Disabled");
if (heater_relay == 1 or heater_relay == 2)
ESP_LOGI(TAG, " Relay: %i", heater_relay);
else
ESP_LOGE(TAG, " Relay: %i", heater_relay);
}
if (addon_climate_dual) {
ESP_LOGI(TAG, " Dual: %s", addon_climate_dual ? "Enabled" : "Disabled");
if (cooler_relay == 1 or cooler_relay == 2)
ESP_LOGI(TAG, " Relay (cooler): %i", cooler_relay);
else
ESP_LOGE(TAG, " Relay (cooler): %i", cooler_relay);
if (heater_relay == 1 or heater_relay == 2)
ESP_LOGI(TAG, " Relay (heater): %i", heater_relay);
else
ESP_LOGE(TAG, " Relay (heater): %i", heater_relay);
if (cooler_relay == heater_relay)
ESP_LOGE(TAG, " Double relay assignment");
}
if ((addon_climate_cool && addon_climate_heat) ||
(addon_climate_cool && addon_climate_dual) ||
(addon_climate_heat && addon_climate_dual) ||
(!addon_climate_cool && !addon_climate_heat && !addon_climate_dual)) {
ESP_LOGE(TAG, "Invalid settings for add-on Climate");
}

View File

@@ -1,37 +0,0 @@
#####################################################################################################
##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint #####
##### ESPHome Add-on for Climate control - Heat #####
##### PLEASE only make changes if it is necessary and also the required knowledge is available. #####
##### For normal use with the Blueprint, no changes are necessary. #####
#####################################################################################################
##### ATTENTION: This will add climate elements to the core system and requires the core part. #####
#####################################################################################################
substitutions:
### Local thermostat defaults ###
# https://esphome.io/components/climate/thermostat.html
heater_relay: "0" # Select 1 for "Relay 1", 2 for "Relay 2" or "0" to a dummy switch/disabled
# https://esphome.io/components/climate/index.html#base-climate-configuration
temp_min: "5"
temp_max: "25"
##### DO NOT CHANGE THIS #####
addon_climate_cool: "false"
addon_climate_heat: "true"
##############################
climate:
- id: !extend thermostat_embedded
min_heating_off_time: ${min_off_time}s
min_heating_run_time: ${min_run_time}s
heat_action:
- switch.turn_on: relay_${heater_relay}
preset:
- name: "Off"
default_target_temperature_low: ${temp_min} ${temp_units}
mode: "off"
- name: Home
default_target_temperature_low: 21 ${temp_units}
packages:
core_package: !include nspanel_esphome_addon_climate_base.yaml

View File

@@ -6,46 +6,23 @@
#####################################################################################################
##### ATTENTION: This will add advanced elements to the core system and requires the core part. #####
#####################################################################################################
---
substitutions:
################## Defaults ##################
# Just in case user forgets to set something #
nextion_update_url: "http://github.com/Blackymas/NSPanel_HA_Blueprint/raw/main/custom_configuration/nspanel_blank.tft"
nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft"
nextion_update_base_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/"
##############################################
##### DON'T CHANGE THIS #####
upload_tft_chunk_size_max: "32768"
upload_tft_baud_rate: "921600"
#############################
external_components:
- source: github://pr#3256 # adds esp-idf support to http_request
components:
- http_request
# - source: github://pr#5484 # adds exit reparse to Nextion library
# components:
# - nextion
##### HTTP REQUEST #####
# Enables http client #
# for upload_tft. #
########################
http_request:
id: httpclient
button:
##### UPDATE TFT DISPLAY #####
- name: ${device_name} Update TFT display
platform: template
icon: mdi:file-sync
id: tft_update
entity_category: config
on_press:
- logger.log: "Button pressed: Update TFT display"
- lambda: |-
upload_tft->execute("${nextion_update_url}");
api:
on_client_connected:
- script.execute: report_settings
services:
##### SERVICE TO UPDATE THE TFT FILE from URL #####
##### It will use the default url if url is empty or "default"
@@ -54,7 +31,7 @@ api:
url: string
then:
- lambda: |-
static const char *const TAG = "service.upload_tft_url";
static const char *const TAG = "addon_upload_tft.service.upload_tft_url";
ESP_LOGVV(TAG, "Starting...");
std::string clean_url = url;
@@ -67,119 +44,531 @@ api:
clean_url = clean_url.substr(0, endPos + 1);
}
if ( clean_url.empty() or clean_url == "default") url = "${nextion_update_url}";
if (clean_url.empty() or clean_url == "default") url = id(tft_url);
upload_tft->execute(url.c_str());
button:
##### UPDATE TFT DISPLAY #####
- id: tft_update
name: ${device_name} Update TFT display
platform: template
icon: mdi:file-sync
entity_category: config
on_press:
- lambda: |-
static const char *const TAG = "addon_upload_tft.button.tft_update.on_press";
ESP_LOGD(TAG, "Update TFT display button pressed");
upload_tft->execute(id(tft_url).c_str());
display:
- id: !extend disp1
#tft_url: ${nextion_update_url}
tft_url: ${nextion_update_url}
exit_reparse_on_start: true
globals:
- id: baud_rate_original
type: uint
restore_value: false
initial_value: '115200'
- id: baud_rate_target
type: uint
restore_value: false
initial_value: ${upload_tft_baud_rate}
- id: tft_branch
type: uint
restore_value: true
initial_value: '0'
- id: tft_is_valid
type: bool
restore_value: false
initial_value: 'false'
- id: tft_model
type: uint
restore_value: true
initial_value: '0'
- id: tft_upload_try
type: uint
restore_value: false
initial_value: '0'
- id: tft_url
type: std::string
restore_value: false
initial_value: '"${nextion_update_url}"'
script:
- id: upload_tft_new #NOT IN USE FOR NOW
mode: single
- id: exit_reparse_v414
mode: restart
then:
- logger.log: "Exit reparse"
- uart.write:
id: tf_uart
data: "DRAKJHSUYDGBNCJHGJKSHBDN"
- uart.write:
id: tf_uart
data: [0xFF, 0xFF, 0xFF]
- id: nextion_uart_command
mode: queued
parameters:
url: string
command: string
then:
- lambda: |-
static const char *const TAG = "script.upload_tft";
ESP_LOGVV(TAG, "Starting...");
nextion_init->state = false;
auto delay_seconds_ = [](int seconds) {
ESP_LOGD(TAG, "Wait %i seconds", seconds);
for (int i = 0; i < (seconds*4); i++) {
#ifdef ARDUINO
delay(250);
#elif defined(USE_ESP_IDF)
vTaskDelay(pdMS_TO_TICKS(250));
#endif
App.feed_wdt();
}
};
ESP_LOGV(TAG, "Setting TFT url: %s", url.c_str());
//disp1->set_tft_url(url.c_str());
unsigned int upload_tries = 0;
while (upload_tries < 3) {
upload_tries++;
ESP_LOGD(TAG, "Try #%i", upload_tries);
nextion_status->execute();
if (!disp1->is_setup()) {
ESP_LOGD(TAG, "Setting Nextion protocol reparse mode to passive");
exit_reparse->execute();
delay_seconds_(5);
}
ESP_LOGV(TAG, "Calling upload from Nextion component");
//if (disp1->upload_tft()) id(restart_nspanel).press();
ESP_LOGD(TAG, "Turn off Nextion");
screen_power->turn_off();
delay_seconds_(3);
ESP_LOGD(TAG, "Turn on Nextion");
screen_power->turn_on();
delay_seconds_(10);
}
ESP_LOGE(TAG, "TFT upload failed.");
ESP_LOGD(TAG, "Turn off Nextion");
screen_power->turn_off();
delay_seconds_(2);
ESP_LOGD(TAG, "Turn on Nextion");
screen_power->turn_on();
ESP_LOGD(TAG, "Restarting esphome");
delay_seconds_(1);
restart_nspanel->press();
nextion_init->state = true;
ESP_LOGV(TAG, "Finished!");
- id: upload_tft
mode: single
parameters:
url: string
then:
- lambda: |-
static const char *const TAG = "script.upload_tft";
ESP_LOGD(TAG, "Starting...");
auto delay_seconds_ = [](int seconds) {
ESP_LOGD(TAG, "Wait %i seconds", seconds);
for (int i = 0; i < (seconds*4); i++) {
#ifdef ARDUINO
delay(250);
#elif defined(USE_ESP_IDF)
vTaskDelay(pdMS_TO_TICKS(250));
#endif
App.feed_wdt();
}
};
std::string framework = "Unknown";
#ifdef ARDUINO
framework = "Arduino";
#elif defined(ESP_PLATFORM)
framework = "ESP-IDF";
#endif
static const char *const TAG = "addon_upload_tft.script.nextion_uart_command";
if (disp1->is_setup()) {
disp1->set_backlight_brightness(1);
disp1->set_component_text_printf("confirm.title", "Upload TFT\\r%s", framework.c_str());
disp1->set_component_text_printf("confirm.body", "Preparing...");
ESP_LOGD(TAG, "Sending `%s` directly to Nextion", command.c_str());
disp1->send_command_printf(command.c_str());
} else {
ESP_LOGD(TAG, "Sending `%s` directly to UART", command.c_str());
tf_uart->write_str(command.c_str());
const uint8_t to_send[3] = {0xFF, 0xFF, 0xFF};
tf_uart->write_array(to_send, sizeof(to_send));
}
App.feed_wdt();
- id: nextion_upload
mode: single
then:
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.nextion_upload";
ESP_LOGD(TAG, "Waiting for empty UART and Nextion queues");
- wait_until:
condition:
- lambda: !lambda return (disp1->queue_size()<=0);
- lambda: !lambda return (tf_uart->available()<=0);
timeout: 10s
- delay: 2s
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.nextion_upload";
ESP_LOGD(TAG, "Starting TFT upload...");
if (disp1->upload_tft()) App.safe_reboot();
- id: open_upload_dialog
mode: restart
then:
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.open_upload_dialog";
ESP_LOGD(TAG, "Showing upload dialog page");
disp1->goto_page("confirm");
disp1->hide_component("bt_close");
disp1->hide_component("bt_accept");
disp1->hide_component("bt_clear");
disp1->hide_component("bt_close");
delay_seconds_(1);
display_wrapped_text->execute("confirm.body", "Informing the blueprint that panel is unavailable...", 18);
disp1->hide_component("bt_close");
}
nextion_init->publish_state(false);
if (disp1->is_setup()) {
delay_seconds_(1);
display_wrapped_text->execute("confirm.body", "Stopping scripts...", 18);
}
stop_all->execute();
if (disp1->is_setup()) delay_seconds_(1);
#ifdef ARDUINO
disp1->set_component_text_printf("confirm.title", "Upload TFT\\rArduino");
#elif defined(ESP_PLATFORM)
disp1->set_component_text_printf("confirm.title", "Upload TFT\\rESP-IDF");
#endif
page_id->update();
- id: report_settings
mode: restart
then:
- delay: 15s
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.report_settings";
ESP_LOGI(TAG, "TFT URL: %s", id(tft_url).c_str());
ESP_LOGI(TAG, "Substitutions:");
ESP_LOGI(TAG, " nextion_update_url: ${nextion_update_url}");
ESP_LOGI(TAG, " nextion_update_base_url: ${nextion_update_base_url}");
ESP_LOGI(TAG, " upload_tft_chunk_size_max: ${upload_tft_chunk_size_max}");
ESP_LOGI(TAG, " upload_tft_baud_rate: ${upload_tft_baud_rate}");
- id: report_upload_progress
mode: restart
parameters:
message: string
then:
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.report_upload_progress";
ESP_LOGD(TAG, "%s", message.c_str());
if (id(tft_is_valid)) {
if (page_id->state != 26) {
open_upload_dialog->execute();
}
display_wrapped_text->execute("confirm.body", message.c_str(), 18);
disp1->set_backlight_brightness(1);
App.feed_wdt();
}
- id: !extend restore_settings
mode: restart
then:
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.restore_settings";
ESP_LOGD(TAG, "Restoring TFT file branch selector to index %i", id(tft_branch));
auto tft_file_branch_call = id(tft_file_branch).make_call();
tft_file_branch_call.set_index(id(tft_branch));
tft_file_branch_call.perform();
ESP_LOGD(TAG, "Restoring TFT file model selector to index %i", id(tft_model));
auto tft_file_model_call = id(tft_file_model).make_call();
tft_file_model_call.set_index(id(tft_model));
tft_file_model_call.perform();
- id: set_tft_file
mode: restart
then:
- delay: 2s
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.set_tft_file";
std::string branch = tft_file_branch->state;
std::string model = tft_file_model->state;
ESP_LOGD(TAG, "TFT URL set:");
ESP_LOGD(TAG, " Branch: %s", branch.c_str());
ESP_LOGD(TAG, " Model: %s", model.c_str());
if (id(is_restored_settings) and tft_file_branch->active_index().has_value())
id(tft_branch) = tft_file_branch->active_index().value();
if (id(is_restored_settings) and tft_file_model->active_index().has_value())
id(tft_model) = tft_file_model->active_index().value();
if (id(is_uploading_tft))
ESP_LOGW(TAG, "TFT Upload in progress.");
else {
std::string url;
std::string file_name;
if (model == "NSPanel Blank") file_name = "nspanel_blank.tft";
else if (model == "NSPanel EU") file_name = "nspanel_eu.tft";
else if (model == "NSPanel US") file_name = "nspanel_us.tft";
else if (model == "NSPanel US Landscape") file_name = "nspanel_us_land.tft";
else if (model == "NSPanel EU (CJK languages)") file_name = "advanced/hmi/nspanel_CJK_eu.tft";
else if (model == "NSPanel US (CJK languages)") file_name = "advanced/hmi/nspanel_CJK_us.tft";
else if (model == "NSPanel US Landscape (CJK languages)") file_name = "advanced/hmi/nspanel_CJK_us_land.tft";
if (file_name.empty()) url = "${nextion_update_url}";
else {
std::string base_url("${nextion_update_base_url}");
url = base_url + branch + "/" + file_name;
// Remove trailing slashes or spaces
auto endPos = url.find_last_not_of(" /");
if (std::string::npos != endPos) {
url = url.substr(0, endPos + 1);
}
ESP_LOGD(TAG, "Full URL: %s", url.c_str());
id(tft_url) = url;
disp1->set_tft_url(url.c_str());
}
}
- id: upload_tft # I've changed this to use ESPHome commands to avoid the parallelism from lambdas
mode: single
parameters:
url: string
then:
# Make sure the screen is ON
- if:
condition:
- switch.is_off: screen_power
then:
- switch.turn_on: screen_power
- delay: 5s
# Wait for recent changes to TFT url
- script.wait: set_tft_file
# Then start the upload
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.upload_tft";
ESP_LOGD(TAG, "Starting...");
id(is_uploading_tft) = true;
nextion_status->execute();
uint32_t supported_baud_rates[] = {2400, 4800, 9600, 19200, 31250, 38400, 57600, 115200, 230400, 250000, 256000, 512000, 921600};
auto is_baud_rate_supported = [supported_baud_rates](uint32_t baud_rate_requested) -> bool {
size_t size = sizeof(supported_baud_rates) / sizeof(supported_baud_rates[0]);
for (size_t i = 0; i < size; ++i) {
if (supported_baud_rates[i] == baud_rate_requested) {
return true;
}
}
return false; // Return false if not found
};
// The upload process starts here
ESP_LOGD(TAG, "Starting the upload script");
// Detect baud rates to be used
id(baud_rate_original) = tf_uart->get_baud_rate();
if (!is_baud_rate_supported(id(baud_rate_original))) id(baud_rate_original) = 115200;
std::string upload_tft_baud_rate_string = "${upload_tft_baud_rate}";
id(baud_rate_target) = stoi(upload_tft_baud_rate_string);
if (!is_baud_rate_supported(id(baud_rate_target))) id(baud_rate_target) = id(baud_rate_original);
ESP_LOGD(TAG, " Target upload baud rate: %d bps", id(baud_rate_target));
ESP_LOGD(TAG, " Current baud rate: %d bps", tf_uart->get_baud_rate());
// Upload URL
ESP_LOGD(TAG, " Upload URL: %s", url.c_str());
disp1->set_tft_url(url.c_str());
nextion_uart_command->execute("bkcmd=3");
- lambda: if (id(tft_is_valid)) disp1->goto_page("home");
- delay: 2s
- script.execute: open_upload_dialog
- script.wait: open_upload_dialog
- lambda: page_id->update();
- wait_until:
condition:
- lambda: !lambda return (page_id->state == 26);
timeout: 2s
- script.execute:
id: report_upload_progress
message: "Set Nextion unavailable for blueprint calls"
- script.wait: report_upload_progress
- binary_sensor.template.publish:
id: nextion_init
state: false
- script.execute:
id: report_upload_progress
message: "Stopping other scripts"
- script.wait: report_upload_progress
- script.execute: stop_all
- script.wait: stop_all
- wait_until:
condition:
- lambda: !lambda return (!id(tft_is_valid));
timeout: 1s
### Try twice at the target baud rate
- script.execute: nextion_status
- script.wait: nextion_status
- script.execute:
id: report_upload_progress
message: "Setting baud rate"
- script.wait: report_upload_progress
- script.execute:
id: set_baud_rate
baud_rate: !lambda return id(baud_rate_target);
definitive: false
- script.wait: set_baud_rate
- delay: 2s
# Try #1
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
# Try #2
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
### Try twice at the original baud rate
- script.execute: nextion_status
- script.wait: nextion_status
- script.execute:
id: report_upload_progress
message: "Setting baud rate"
- script.wait: report_upload_progress
- script.execute:
id: set_baud_rate
baud_rate: !lambda return id(baud_rate_original);
definitive: false
- script.wait: set_baud_rate
- delay: 2s
# Try #3
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
# Try #4
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
### Try twice at the Nextion's default baud rate (115200bps)
- script.execute: nextion_status
- script.wait: nextion_status
- script.execute:
id: report_upload_progress
message: "Setting baud rate"
- script.wait: report_upload_progress
- script.execute:
id: set_baud_rate
baud_rate: 115200
definitive: false
- script.wait: set_baud_rate
- delay: 2s
# Try #5
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
# Try #6
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
### Try twice with upload engine from v4.1.4 (115200bps)
- script.execute: nextion_status
- script.wait: nextion_status
- script.execute:
id: report_upload_progress
message: "Setting baud rate"
- script.wait: report_upload_progress
- script.execute:
id: set_baud_rate
baud_rate: 115200
definitive: false
- script.wait: set_baud_rate
- delay: 2s
# Try #7
- script.execute:
id: upload_tft_v414
url: !lambda return url.c_str();
- script.wait: upload_tft_v414
- delay: 5s
# Try #8
- script.execute:
id: upload_tft_v414
url: !lambda return url.c_str();
- script.wait: upload_tft_v414
- delay: 5s
### Exit reparse and try twice again
- script.execute: nextion_status
- script.wait: nextion_status
- script.execute:
id: report_upload_progress
message: "Exiting reparse mode"
- script.wait: report_upload_progress
- script.execute: exit_reparse
- script.wait: exit_reparse
- delay: 5s
- script.execute: nextion_status
- script.wait: nextion_status
- script.execute:
id: report_upload_progress
message: "Setting baud rate"
- script.wait: report_upload_progress
- script.execute:
id: set_baud_rate
baud_rate: 115200
definitive: false
- script.wait: set_baud_rate
- delay: 2s
# Try #9
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
# Try #10
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
### Then try twice again at 9600bps
- script.execute: nextion_status
- script.wait: nextion_status
- script.execute:
id: report_upload_progress
message: "Setting baud rate"
- script.wait: report_upload_progress
- script.execute:
id: set_baud_rate
baud_rate: 9600
definitive: false
- script.wait: set_baud_rate
- delay: 2s
# Try #11
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
# Try #12
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
### Restart Nextion and try twice again at default baud rate (115200bps)
- script.execute:
id: report_upload_progress
message: "Restarting Nextion display"
- script.wait: report_upload_progress
- wait_until:
condition:
- lambda: !lambda return (!id(tft_is_valid));
timeout: 3s
- switch.turn_off: screen_power
- delay: 2s
- switch.turn_on: screen_power
- delay: 5s
- script.execute: nextion_status
- script.wait: nextion_status
- script.execute:
id: report_upload_progress
message: "Setting baud rate"
- script.wait: report_upload_progress
- script.execute:
id: set_baud_rate
baud_rate: 115200
definitive: false
- script.wait: set_baud_rate
- delay: 2s
# Try #13
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
# Try #14
- script.execute: upload_tft_try
- script.wait: upload_tft_try
- delay: 5s
### All tries failed ###
- script.execute:
id: report_upload_progress
message: "TFT upload failed"
- script.wait: report_upload_progress
- wait_until:
condition:
- lambda: !lambda return (!id(tft_is_valid));
timeout: 5s
- script.execute:
id: report_upload_progress
message: "Turn off Nextion and restart ESPHome"
- script.wait: report_upload_progress
- wait_until:
condition:
- lambda: !lambda return (!id(tft_is_valid));
timeout: 5s
- switch.turn_off: screen_power
- delay: 2s
# Restart ESPHome
- lambda: !lambda App.safe_reboot();
### This code should never run
- delay: 2s
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.upload_tft";
ESP_LOGD(TAG, "Finishing...");
id(is_uploading_tft) = false;
screen_power->publish_state(true);
ESP_LOGE(TAG, "TFT upload finished unsuccessfully!");
- id: upload_tft_v414
mode: single
parameters:
url: string
then:
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.upload_tft_v414";
ESP_LOGD(TAG, "Trying to upload TFT");
id(tft_upload_try)++;
char update_msg[128];
sprintf(update_msg, "Try #%d at %d bps", id(tft_upload_try), tf_uart->get_baud_rate());
report_upload_progress->execute(update_msg);
- script.wait: report_upload_progress
- wait_until:
condition:
- lambda: !lambda return (!id(tft_is_valid));
timeout: 1s
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.upload_tft_v414";
ESP_LOGD(TAG, "Starting...");
std::vector<uint8_t> buffer_;
bool is_updating_ = false;
@@ -189,6 +578,18 @@ script:
int content_length_ = 0;
int tft_size_ = 0;
auto delay_seconds_ = [](int seconds) {
ESP_LOGD(TAG, "Wait %i seconds", seconds);
for (int i = 0; i < (seconds*4); i++) {
#ifdef ARDUINO
delay(250);
#elif defined(USE_ESP_IDF)
vTaskDelay(pdMS_TO_TICKS(250));
#endif
App.feed_wdt();
}
};
auto set_baud_rate_ = [](int baud_rate) {
#ifdef USE_ARDUINO
auto *uart = reinterpret_cast<uart::ESP32ArduinoUARTComponent *>(tf_uart);
@@ -202,7 +603,7 @@ script:
auto send_nextion_command = [](const std::string &command) -> bool
{
static const char *const TAG = "script.upload_tft.send_nextion_command";
static const char *const TAG = "addon_upload_tft.script.upload_tft.send_nextion_command";
ESP_LOGD(TAG, "Sending: %s", command.c_str());
id(tf_uart).write_str(command.c_str());
const uint8_t to_send[3] = {0xFF, 0xFF, 0xFF};
@@ -397,7 +798,7 @@ script:
};
auto upload_tft_ = [&](const std::string &url, unsigned int update_baud_rate_) -> bool
{
static const char *const TAG = "script.upload_tft.upload_tft_arduino";
static const char *const TAG = "addon_upload_tft.script.upload_tft.upload_tft_arduino";
ESP_LOGD(TAG, "Nextion TFT upload requested");
ESP_LOGD(TAG, " url: %s", url.c_str());
ESP_LOGD(TAG, " baud_rate: %i", update_baud_rate_);
@@ -414,7 +815,7 @@ script:
if (!disp1->is_setup()) {
ESP_LOGD(TAG, "Setting Nextion protocol reparse mode to passive");
exit_reparse->execute();
exit_reparse_v414->execute();
delay_seconds_(5);
}
@@ -557,7 +958,7 @@ script:
};
#elif defined(ESP_PLATFORM) // esp-idf # To do: Move to Nextion component on ESPHome
auto upload_range_esp_idf_ = [&](const std::string &url, int range_start) -> int {
static const char *const TAG = "script.upload_tft.upload_range_esp_idf_";
static const char *const TAG = "addon_upload_tft.script.upload_tft.upload_range_esp_idf_";
ESP_LOGVV(TAG, "url: %s", url.c_str());
uint range_size_ = tft_size_ - range_start;
ESP_LOGVV(TAG, "tft_size_: %i", tft_size_);
@@ -663,7 +1064,7 @@ script:
return range_end + 1;
};
auto upload_tft_ = [&](const std::string &url, unsigned int update_baud_rate_) -> bool {
static const char *const TAG = "script.upload_tft.upload_tft_esp_idf";
static const char *const TAG = "addon_upload_tft.script.upload_tft.upload_tft_esp_idf";
ESP_LOGD(TAG, "Nextion TFT upload requested");
ESP_LOGD(TAG, " url: %s", url.c_str());
ESP_LOGD(TAG, " baud_rate: %i", update_baud_rate_);
@@ -680,7 +1081,7 @@ script:
if (!disp1->is_setup()) {
ESP_LOGD(TAG, "Setting Nextion protocol reparse mode to passive");
exit_reparse->execute();
exit_reparse_v414->execute();
delay_seconds_(5);
}
@@ -796,43 +1197,78 @@ script:
};
#endif
ESP_LOGD(TAG, "Try #1 at 921600 bps");
if (disp1->is_setup()) {
display_wrapped_text->execute("confirm.body", "Try #1 at 921600 bps", 18);
delay_seconds_(1);
}
if (upload_tft_(url, 921600)) id(restart_nspanel).press();
ESP_LOGW(TAG, "Try #1 failed");
if (disp1->is_setup()) display_wrapped_text->execute("confirm.body", "Try #1 failed", 18);
delay_seconds_(5);
ESP_LOGD(TAG, "Try #2 at 921600 bps");
if (upload_tft_(url, 921600)) id(restart_nspanel).press();
ESP_LOGW(TAG, "Try #2 failed");
if (disp1->is_setup()) display_wrapped_text->execute("confirm.body", "Try #2 failed", 18);
delay_seconds_(5);
ESP_LOGD(TAG, "Try #3 at 115200 bps");
if (upload_tft_(url, 115200)) id(restart_nspanel).press();
ESP_LOGW(TAG, "Try #3 failed");
if (disp1->is_setup()) {
display_wrapped_text->execute("confirm.body", "Try #3 failed. Restarting display.", 18);
delay_seconds_(3);
}
ESP_LOGD(TAG, "Turn off Nextion");
id(screen_power).turn_off();
delay_seconds_(2);
ESP_LOGD(TAG, "Turn on Nextion");
id(screen_power).turn_on();
delay_seconds_(10);
ESP_LOGD(TAG, "Try #4 at 115200 bps");
if (upload_tft_(url, 115200)) id(restart_nspanel).press();
ESP_LOGE(TAG, "TFT upload failed");
ESP_LOGD(TAG, "Turn off Nextion");
id(screen_power).turn_off();
delay_seconds_(2);
ESP_LOGD(TAG, "Turn on Nextion");
id(screen_power).turn_on();
ESP_LOGD(TAG, "Restarting ESPHome");
delay_seconds_(2);
id(restart_nspanel).press();
if (upload_tft_(url, 115200)) App.safe_reboot();
char update_msg[128];
sprintf(update_msg, "Try #%d at %d bps failed!", id(tft_upload_try), tf_uart->get_baud_rate());
report_upload_progress->execute(update_msg);
ESP_LOGD(TAG, "Finished!");
- script.wait: report_upload_progress
- id: upload_tft_try
mode: single
then:
- logger.log: "Trying to upload TFT"
- lambda: !lambda id(tft_upload_try)++;
- lambda: |-
char update_msg[128];
sprintf(update_msg, "Try #%d at %d bps", id(tft_upload_try), tf_uart->get_baud_rate());
report_upload_progress->execute(update_msg);
- script.wait: report_upload_progress
- wait_until:
condition:
- lambda: !lambda return (!id(tft_is_valid));
timeout: 1s
- script.execute: nextion_upload
- script.wait: nextion_upload
- lambda: |-
char update_msg[128];
sprintf(update_msg, "Try #%d at %d bps failed!", id(tft_upload_try), tf_uart->get_baud_rate());
report_upload_progress->execute(update_msg);
- script.wait: report_upload_progress
select:
- id: tft_file_branch
name: ${device_name} Update TFT display - Branch
platform: template
options:
- "main"
- "beta"
- "dev"
initial_option: "main"
optimistic: true
restore_value: true
internal: false
entity_category: config
disabled_by_default: true
icon: mdi:file-sync
set_action:
- script.execute: set_tft_file
- id: tft_file_model
name: ${device_name} Update TFT display - Model
platform: template
options:
- "Use nextion_update_url"
- "NSPanel Blank"
- "NSPanel EU"
- "NSPanel US"
- "NSPanel US Landscape"
- "NSPanel EU (CJK languages)"
- "NSPanel US (CJK languages)"
- "NSPanel US Landscape (CJK languages)"
initial_option: "Use nextion_update_url"
optimistic: true
restore_value: true
internal: false
entity_category: config
disabled_by_default: false
icon: mdi:file-sync
set_action:
- script.execute: set_tft_file
sensor:
- id: !extend display_mode
on_value:
then:
lambda: |-
id(tft_is_valid) = (display_mode->state > 0 and display_mode->state < 4);

View File

@@ -6,6 +6,13 @@
#####################################################################################################
##### ATTENTION: This will add advanced elements to the core system and requires the core part. #####
#####################################################################################################
---
substitutions:
##### Do not change this here. #####
##### Set your substitutions on #####
##### your base yaml file. #####
web_password: ${wifi_password}
#####################################
button:
##### EXIT REPARSE TFT DISPLAY #####
@@ -18,11 +25,19 @@ button:
- logger.log: "Button pressed: Exit reparse"
- script.execute: exit_reparse
captive_portal:
##### UPDATE TFT BLANK DISPLAY #####
- name: ${device_name} Update TFT display (blank)
platform: template
icon: mdi:file-sync
id: tft_update_blank
entity_category: config
on_press:
- lambda: |-
static const char *const TAG = "button.tft_update_blank";
ESP_LOGD(TAG, "Button pressed: Update TFT display (blank)");
upload_tft->execute("${nextion_blank_url}");
esp32:
framework:
type: esp-idf
captive_portal:
sensor:
##### Uptime Sensors #####
@@ -51,14 +66,6 @@ sensor:
accuracy_decimals: 0
update_interval: never
##### WIFI Signal stregth
- name: ${device_name} RSSI
platform: wifi_signal
update_interval: 60s
on_value:
- script.execute:
id: refresh_wifi_icon
text_sensor:
##### ESPhome version used to compile the app #####
- name: ${device_name} ESPhome Version
@@ -89,4 +96,4 @@ web_server:
port: 80
auth:
username: admin
password: ${wifi_password}
password: ${web_password}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,79 @@
#####################################################################################################
##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint #####
##### ESPHOME PRE-BUILT #####
##### PLEASE only make changes if it is necessary and also the required knowledge is available. #####
##### For normal use with the Blueprint, no changes are necessary. #####
#####################################################################################################
---
substitutions:
device_name: nspanel
wifi_ssid: nspanel
wifi_password: NSPanel_Blueprint
pre_built: "true"
packages:
core_package: !include ./nspanel_esphome_core.yaml # Core package
upload_tft_package: !include ./nspanel_esphome_addon_upload_tft.yaml # Core package
button:
- platform: factory_reset
name: Factory reset
disabled_by_default: true
internal: false
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device.
captive_portal:
dashboard_import:
package_import_url: github://Blackymas/NSPanel_HA_Blueprint/advanced/esphome/nspanel_esphome_prebuilt.yaml # Must be updated
import_full_config: false
esp32:
framework:
type: esp-idf
# Sets up Bluetooth LE (Only on ESP32) to allow the user
# to provision wifi credentials to the device.
esp32_improv:
authorizer: none
esphome:
name_add_mac_suffix: true
project:
name: esphome.NSPanel_HA_Blueprint
version: "${version}"
# Sets up the improv via serial client for Wi-Fi provisioning
improv_serial:
logger:
baud_rate: 115200
ota:
password: ""
script:
- id: !extend watchdog
then:
- lambda: |-
static const char *const TAG = "prebuilt.script.watchdog";
ESP_LOGI(TAG, "Pre-built version: ${pre_built}");
select:
- id: !extend tft_file_model
platform: template
options:
- "NSPanel Blank"
- "NSPanel EU"
- "NSPanel US"
- "NSPanel US Landscape"
- "NSPanel EU (CJK languages)"
- "NSPanel US (CJK languages)"
- "NSPanel US Landscape (CJK languages)"
initial_option: "NSPanel Blank"
wifi:
ap: {}
power_save_mode: LIGHT # To make it compatible with BLE

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,21 @@
Program.s
//The following code is only run once when power on, and is generally used for global variable definition and power on initialization data
int sys0=0,sys1=0,sys2=0,swipex=0,swipey=0,swipex2=0,swipey2=0,swipec=0,swipec2=0,swipedx=100,swipedy=100 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement
int r=0,g=0,b=0
int h=0,s=0,v=0
int p=0,q=0,t=0,f=0
int back_page_id=0
int dimdelta=0
int api=0 // 0 = disconnected from HA, 1 = connected to HA
int is_entities=0,is_qrcode=0,is_notification=0
int brightness=100,brightness_dim=40,brightness_sleep=0
int display_mode=1 // 1 = EU, 2 = US, 3 = US landscape, 4 = blank
int charset=2 // 1 = International (original), 2 = CJK
//bauds=115200//Configure baudrate
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
if(display_mode==1)
{
lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version
}
page 8//Power on start page boot

View File

@@ -0,0 +1,411 @@
Page alarm
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis bt_home,0
vis bt_away,0
vis bt_night,0
vis bt_vacat,0
vis bt_bypass,0
}
Variable (string) lastclick
Attributes
ID : 3
Scope : local
Text :
Max. Text Size: 255
Variable (string) code_format
Attributes
ID : 28
Scope : local
Text :
Max. Text Size: 15
Variable (string) code_arm_req
Attributes
ID : 29
Scope : local
Text :
Max. Text Size: 1
Text page_label
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Alarm Control Panel
Max. Text Size : 100
Text icon_state
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î’—
Max. Text Size : 10
Text bt_home_text
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Home
Max. Text Size : 22
Text bt_away_text
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Away
Max. Text Size : 22
Text bt_night_text
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Night
Max. Text Size : 22
Text bt_vacat_text
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Vacation
Max. Text Size : 22
Text bt_bypass_text
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Bypass
Max. Text Size : 22
Text bt_disarm_text
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Disarm
Max. Text Size : 22
Text bt_home_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_away_icon
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_night_icon
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : ï §
Max. Text Size : 3
Text bt_vacat_icon
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_bypass_icon
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_disarm_icon
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Picture bt_home_pic
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_away_pic
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_night_pic
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_vacat_pic
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_bypass_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_disarm_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: disabled
Button button_back
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Hotspot bt_home
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_home_pic.pic=44
bt_home_text.bco=65024
bt_home_text.pco=0
bt_home_icon.bco=65024
bt_home_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"home\", \"value\": \"click\", \"mui\": \""+bt_home_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_away
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_away_pic.pic=44
bt_away_text.bco=65024
bt_away_text.pco=0
bt_away_icon.bco=65024
bt_away_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"away\", \"value\": \"click\", \"mui\": \""+bt_away_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_night
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_night_pic.pic=44
bt_night_text.bco=65024
bt_night_text.pco=0
bt_night_icon.bco=65024
bt_night_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"night\", \"value\": \"click\", \"mui\": \""+bt_night_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_vacat
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_vacat_pic.pic=44
bt_vacat_text.bco=65024
bt_vacat_text.pco=0
bt_vacat_icon.bco=65024
bt_vacat_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"vacation\", \"value\": \"click\", \"mui\": \""+bt_vacat_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_bypass
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_bypass_pic.pic=44
bt_bypass_text.bco=65024
bt_bypass_text.pco=0
bt_bypass_icon.bco=65024
bt_bypass_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"bypass\", \"value\": \"click\", \"mui\": \""+bt_bypass_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_disarm
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_disarm_pic.pic=44
bt_disarm_text.bco=65024
bt_disarm_text.pco=0
bt_disarm_icon.bco=65024
bt_disarm_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"disarm\", \"value\": \"click\", \"mui\": \""+bt_disarm_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Timer wakeup_timer
Attributes
ID : 31
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,200 @@
Page boot
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
sendme
dim=100
vis bt_reboot,0
sendme
dim=100
vis bt_reboot,0
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
Page Exit Event
dim=0
Variable (int32) counter
Attributes
ID : 11
Scope: local
Value: 0
Variable (string) aux1
Attributes
ID : 12
Scope : local
Text :
Max. Text Size: 10
Text ip_addr
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Initializing...
Max. Text Size : 15
Text t0
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Please wait...
Max. Text Size : 15
Text t1
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : The process can take several seconds!
Max. Text Size : 50
Text tft_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : TFT:
Max. Text Size : 4
Text esph_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ESPHome:
Max. Text Size : 8
Text bluep_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Blueprint:
Max. Text Size : 10
Text tft_version
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 4.2beta.1
Max. Text Size : 9
Text esph_version
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 9
Text bluep_version
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 9
Text baud_rate
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text framework
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Dual-state Button bt_reboot
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : Reboot
Max. Text Size : 6
Timer tm_esphome
Attributes
ID : 13
Scope : local
Period (ms): 30000
Enabled : yes
Events
Timer Event
counter.val++
if(counter.val>60)
{
rest
}
sendme
printh 91
prints "display_mode",0
printh 00
prints display_mode,0
printh FF FF FF
printh 91
prints "charset",0
printh 00
prints charset,0
printh FF FF FF
printh 92
prints "tft_version",0
printh 00
prints tft_version.txt,0
printh 00
printh FF FF FF
covx counter.val,aux1.txt,0,0
esph_version.txt="Retry #"+aux1.txt
sys0=counter.val%10
if(sys0==0)
{
baud=115200
}
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"

View File

@@ -0,0 +1,792 @@
Page buttonpage01
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage01
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ●○○○
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page home
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage02
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,792 @@
Page buttonpage02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage02
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○●○○
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage03
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,792 @@
Page buttonpage03
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage03
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○●○
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage02
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage04
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,792 @@
Page buttonpage04
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage04
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○○●
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage03
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page home
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,859 @@
Page climate
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==1||embedded.val==1)
{
sendme
vis target_icon,0
vis target_high,0
vis target_low,0
vis current_temp,0
vis climateslider,0
vis slider_high,0
vis slider_low,0
vis button01,0
vis button02,0
vis button03,0
vis button04,0
vis button05,0
vis button06,0
vis button07,0
}else
{
page home
}
Page Exit Event
covx embedded.val,va2.txt,0,0
if(timer0.en==1)
{
timer0.en=0
covx temp_number0.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"temperature\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
}
if(timer1.en==1)
{
timer1.en=0
covx temp_number1.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_high\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
}
if(timer2.en==1)
{
timer2.en=0
covx temp_number2.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_low\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
}
Variable (string) va1
Attributes
ID : 24
Scope : local
Text :
Max. Text Size: 10
Variable (string) climatesetting
Attributes
ID : 25
Scope : local
Text :
Max. Text Size: 255
Variable (string) lastclick
Attributes
ID : 26
Scope : local
Text :
Max. Text Size: 255
Variable (int32) temp_offset
Attributes
ID : 28
Scope: local
Value: 0
Variable (int32) temp_step
Attributes
ID : 29
Scope: local
Value: 0
Variable (int32) temp_number0
Attributes
ID : 33
Scope: local
Value: 0
Variable (int32) va0
Attributes
ID : 34
Scope: local
Value: 0
Variable (int32) embedded
Attributes
ID : 35
Scope: global
Value: 0
Variable (string) va2
Attributes
ID : 36
Scope : local
Text :
Max. Text Size: 10
Variable (string) click_comp
Attributes
ID : 38
Scope : local
Text :
Max. Text Size: 8
Variable (int32) active_slider
Attributes
ID : 42
Scope: local
Value: 1
Variable (int32) is_temp_range
Attributes
ID : 44
Scope: local
Value: 0
Variable (int32) temp_number1
Attributes
ID : 48
Scope: local
Value: 0
Variable (int32) temp_number2
Attributes
ID : 49
Scope: local
Value: 0
Text current_temp
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text page_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text target_icon
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value01_icon
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value01
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text value02_icon
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text value03_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text button01
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"auto\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button02
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat_cool\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button03
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button04
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"cool\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button05
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"dry\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button06
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"fan_only\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button07
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"off\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button08
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"climate\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button09
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Events
Touch Press Event
click_comp.txt="button09"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"climate\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text target_high
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text target_low
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider slider_high
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 20
Upper range limit: 40
Lower range limit: 0
Events
Touch Release Event
active_slider.val=1
temp_number1.val=slider_high.val*temp_step.val
temp_number1.val+=temp_offset.val
va0.val=temp_number1.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number1.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
timer1.en=1
Slider slider_low
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 20
Upper range limit: 40
Lower range limit: 0
Events
Touch Release Event
active_slider.val=2
temp_number2.val=slider_low.val*temp_step.val
temp_number2.val+=temp_offset.val
va0.val=temp_number2.val/10
covx va0.val,target_low.txt,0,0
va0.val=temp_number2.val%10
covx va0.val,va1.txt,0,0
target_low.txt+="."+va1.txt
timer2.en=1
Slider climateslider
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 20
Upper range limit: 40
Lower range limit: 0
Events
Touch Release Event
active_slider.val=0
temp_number0.val=climateslider.val*temp_step.val
temp_number0.val+=temp_offset.val
va0.val=temp_number0.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number0.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
timer0.en=1
Button button_back
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Hotspot decrease_temp
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
if(active_slider.val==0)
{
if(climateslider.val>0)
{
climateslider.val--
temp_number0.val=climateslider.val*temp_step.val
temp_number0.val+=temp_offset.val
va0.val=temp_number0.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number0.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==1)
{
if(slider_high.val>0)
{
slider_high.val--
temp_number1.val=slider_high.val*temp_step.val
temp_number1.val+=temp_offset.val
va0.val=temp_number1.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number1.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==2)
{
if(slider_low.val>0)
{
slider_low.val--
temp_number2.val=slider_low.val*temp_step.val
temp_number2.val+=temp_offset.val
va0.val=temp_number2.val/10
covx va0.val,target_low.txt,0,0
va0.val=temp_number2.val%10
covx va0.val,va1.txt,0,0
target_low.txt+="."+va1.txt
}
}
Touch Release Event
if(active_slider.val==0)
{
timer0.en=1
}else if(active_slider.val==1)
{
timer1.en=1
}else if(active_slider.val==2)
{
timer2.en=1
}
Hotspot increase_temp
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
if(active_slider.val==0)
{
if(climateslider.val<climateslider.maxval)
{
climateslider.val++
temp_number0.val=climateslider.val*temp_step.val
temp_number0.val+=temp_offset.val
va0.val=temp_number0.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number0.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==1)
{
if(slider_high.val<slider_high.maxval)
{
slider_high.val++
temp_number1.val=slider_high.val*temp_step.val
temp_number1.val+=temp_offset.val
va0.val=temp_number1.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number1.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==2)
{
if(slider_low.val<slider_low.maxval)
{
slider_low.val++
temp_number2.val=slider_low.val*temp_step.val
temp_number2.val+=temp_offset.val
va0.val=temp_number2.val/10
covx va0.val,target_low.txt,0,0
va0.val=temp_number2.val%10
covx va0.val,va1.txt,0,0
target_low.txt+="."+va1.txt
}
}
Touch Release Event
if(active_slider.val==0)
{
timer0.en=1
}else if(active_slider.val==1)
{
timer1.en=1
}else if(active_slider.val==2)
{
timer2.en=1
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer timer0
Attributes
ID : 27
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer0.en=0
covx embedded.val,va2.txt,0,0
covx temp_number0.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"temperature\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
Timer click_timer
Attributes
ID : 39
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \"climate\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 40
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer timer1
Attributes
ID : 46
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer1.en=0
covx embedded.val,va2.txt,0,0
covx temp_number1.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_high\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
Timer timer2
Attributes
ID : 47
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer2.en=0
covx embedded.val,va2.txt,0,0
covx temp_number2.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_low\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,151 @@
Page confirm
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (int32) page_id
Attributes
ID : 3
Scope: global
Value: 0
Variable (string) aux
Attributes
ID : 5
Scope : local
Text :
Max. Text Size: 255
Variable (string) page_name
Attributes
ID : 9
Scope : global
Text :
Max. Text Size: 12
Variable (string) component
Attributes
ID : 10
Scope : global
Text :
Max. Text Size: 10
Text t0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text title
Attributes
ID : 4
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Please confirm
Max. Text Size : 100
Text body
Attributes
ID : 8
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Please confirm
Max. Text Size : 255
Button bclose
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 10
Events
Touch Release Event
page page_id.val
Button bt_accept
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î— 
Max. Text Size : 3
Events
Touch Release Event
aux.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+component.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints aux.txt,0
printh 00
printh FF FF FF
page page_id.val
Button bt_clear
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…™
Max. Text Size : 10
Events
Touch Release Event
page page_id.val
Timer wakeup_timer
Attributes
ID : 11
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,202 @@
Page cover
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (string) va1
Attributes
ID : 7
Scope : local
Text : newtxt
Max. Text Size: 10
Variable (string) coversetting
Attributes
ID : 11
Scope : local
Text :
Max. Text Size: 255
Text battery_value
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text cover_value
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text icon_state
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text battery_icon
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider coverslider
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
covx coverslider.val,va1.txt,0,0
cover_value.txt=va1.txt+"%"
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
printh 92
prints "localevent",0
printh 00
prints coversetting.txt,0
printh 00
printh FF FF FF
Button cover_open
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Button cover_close
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : ï„›
Max. Text Size : 3
Events
Touch Press Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Button cover_stop
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Button button_back
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Timer wakeup_timer
Attributes
ID : 13
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,376 @@
Page entitypage01
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text value01_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value05_label
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value04_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value02_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value03_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text entity01_label
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text value06_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value07_label
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value08_label
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value01_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value02_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value03_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value04_pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value05_pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value06_pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value07_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value08_pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value01
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value02
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value03
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value04
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value05
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value06
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value07
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value08
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text page_index
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ●○○○
Max. Text Size : 12
Button button_back
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 30
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page entitypage04
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page entitypage02
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
page entitypage03
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
page entitypage04
}
}

View File

@@ -0,0 +1,376 @@
Page entitypage02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text value01_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value05_label
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value04_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value02_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value03_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text entity02_label
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text value06_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value07_label
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value08_label
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value01_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value02_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value03_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value04_pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value05_pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value06_pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value07_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value08_pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value01
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value02
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value03
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value04
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value05
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value06
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value07
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value08
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text page_index
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○●○○
Max. Text Size : 12
Button button_back
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 30
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page entitypage01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page entitypage03
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,376 @@
Page entitypage03
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text value01_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value05_label
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value04_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value02_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value03_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text entity03_label
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text value06_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value07_label
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value08_label
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value01_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value02_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value03_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value04_pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value05_pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value06_pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value07_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value08_pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value01
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value02
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value03
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value04
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value05
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value06
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value07
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value08
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text page_index
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○●○
Max. Text Size : 12
Button button_back
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 30
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page entitypage02
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page entitypage04
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
page entitypage01
}
}

View File

@@ -0,0 +1,376 @@
Page entitypage04
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text value01_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value05_label
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value04_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value02_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value03_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text entity04_label
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text value06_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value07_label
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value08_label
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value01_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value02_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value03_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value04_pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value05_pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value06_pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value07_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value08_pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value01
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value02
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value03
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value04
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value05
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value06
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value07
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value08
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text page_index
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○○●
Max. Text Size : 12
Button button_back
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 30
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page entitypage03
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page entitypage01
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
page entitypage01
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,377 @@
Page fan
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (string) fansetting
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 255
Variable (string) va0
Attributes
ID : 8
Scope : local
Text :
Max. Text Size: 10
Text fan_value
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_label
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text icon_state
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider fanslider
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 4
Lower range limit: 0
Events
Touch Release Event
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
timer0.en=1
Button button_up
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : ï‘­
Max. Text Size : 3
Events
Touch Press Event
if(fanslider.val<fanslider.maxval)
{
fanslider.val++
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
}
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
Touch Release Event
timer0.en=1
Button button_on
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
fanslider.val=fanslider.maxval/2
sys0=fanslider.maxval*5
sys0%=10
if(sys0>=5)
{
fanslider.val++
}
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
Touch Release Event
timer0.en=1
Button button_down
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
if(fanslider.val>fanslider.minval)
{
fanslider.val--
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
}
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
Touch Release Event
timer0.en=1
Button button_off
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
fanslider.val=fanslider.minval
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
fansetting.txt="{\"page\": \"fan\", \"key\": \"stop\", \"value\": "+va0.txt+"}"
printh 92
prints "localevent",0
printh 00
prints fansetting.txt,0
printh 00
printh FF FF FF
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
Touch Release Event
timer0.en=0
Button button_back
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Timer swipestore
Attributes
ID : 5
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer timer0
Attributes
ID : 13
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer0.en=0
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
fansetting.txt="{\"page\": \"fan\", \"key\": \"percentage\", \"value\": "+va0.txt+"}"
printh 92
prints "localevent",0
printh 00
prints fansetting.txt,0
printh 00
printh FF FF FF
Timer wakeup_timer
Attributes
ID : 15
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 4
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,723 @@
Page home
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
sendme
back_page_id=0
vis bt_notific,is_notification
vis bt_qrcode,is_qrcode
vis bt_entities,is_entities
if(display_mode==3)
{
vis left_bt_text,0
vis right_bt_text,0
}
Variable (string) lastclick
Attributes
ID : 33
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 41
Scope : local
Text :
Max. Text Size: 8
Text time
Attributes
ID : 3
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Events
Touch Press Event
settings_timer.en=1
Touch Release Event
settings_timer.en=0
Text current_temp
Attributes
ID : 4
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 8
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"home\", \"component\": \"climate\", \"event\": \"click\"}",0
printh 00
printh FF FF FF
Text outdoor_temp
Attributes
ID : 5
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 8
Text date
Attributes
ID : 6
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Events
Touch Press Event
settings_timer.en=1
Touch Release Event
settings_timer.en=0
Text value01_state
Attributes
ID : 8
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text left_bt_text
Attributes
ID : 9
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text right_bt_text
Attributes
ID : 10
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text icon_top_01
Attributes
ID : 11
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_02
Attributes
ID : 12
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_03
Attributes
ID : 13
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_04
Attributes
ID : 14
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_05
Attributes
ID : 15
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_06
Attributes
ID : 16
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_07
Attributes
ID : 17
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_08
Attributes
ID : 18
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_09
Attributes
ID : 19
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_10
Attributes
ID : 20
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text value01_icon
Attributes
ID : 21
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text value03_state
Attributes
ID : 22
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 23
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text value02_icon
Attributes
ID : 24
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text value02_state
Attributes
ID : 25
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text wifi_icon
Attributes
ID : 26
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Events
Touch Press Event
settings_timer.en=1
Touch Release Event
settings_timer.en=0
Text indoortempicon
Attributes
ID : 27
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"home\", \"component\": \"climate\", \"event\": \"click\"}",0
printh 00
printh FF FF FF
Text bt_notific
Attributes
ID : 28
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Release Event
if(api==1)
{
page notification
}
Text bt_qrcode
Attributes
ID : 29
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Release Event
page qrcode
Text bt_entities
Attributes
ID : 30
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Release Event
if(api==1)
{
page entitypage01
}
Text button07
Attributes
ID : 31
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text meridiem
Attributes
ID : 32
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Events
Touch Press Event
settings_timer.en=1
Touch Release Event
settings_timer.en=0
Text button01
Attributes
ID : 38
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button02
Attributes
ID : 39
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button03
Attributes
ID : 40
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button04
Attributes
ID : 43
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button05
Attributes
ID : 44
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button06
Attributes
ID : 45
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Picture weather
Attributes
ID : 7
Scope : global
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
if(api==1)
{
page weather01
}
Dual-state Button left_bt_pic
Attributes
ID : 35
Scope : global
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text :
Max. Text Size : 0
Dual-state Button right_bt_pic
Attributes
ID : 36
Scope : global
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text :
Max. Text Size : 0
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer settings_timer
Attributes
ID : 34
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
page settings
Timer wakeup_timer
Attributes
ID : 37
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=25
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer click_timer
Attributes
ID : 42
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \"home\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
wakeup_timer.en=1 // Set brightness to saved value (from HA)
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx&&api==1)
{
page buttonpage04
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2&&api==1)
{
page buttonpage01
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100&&api==1)
{
page buttonpage02
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100&&api==1)
{
page buttonpage03
}
}

View File

@@ -0,0 +1,317 @@
Page keyb_num
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page page_id.val
}else
{
sendme
}
Variable (int32) page_id
Attributes
ID : 17
Scope: local
Value: 0
Variable (string) key
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 10
Variable (string) domain
Attributes
ID : 20
Scope : local
Text : alarm
Max. Text Size: 10
Variable (string) aux
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 255
Variable (string) value
Attributes
ID : 22
Scope : local
Text :
Max. Text Size: 10
Text t0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text pin
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text title
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Alarm
Max. Text Size : 30
Button b1
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 1
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b1.txt
Button bclose
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Release Event
page page_id.val
Button b2
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 2
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b2.txt
Button b3
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 3
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b3.txt
Button b4
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 4
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b4.txt
Button b5
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 5
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b5.txt
Button b6
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 6
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b6.txt
Button b7
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 7
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b7.txt
Button b8
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 8
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b8.txt
Button b9
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 9
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b9.txt
Button bclear
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID: on press
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Release Event
pin.txt=""
Button b0
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 0
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b0.txt
Button benter
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID: on press
State : unpressed
Text : î„«
Max. Text Size : 3
Events
Touch Release Event
aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints aux.txt,0
printh 00
printh FF FF FF
Button bview
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
if(pin.pw==1)
{
pin.pw=0
}else
{
pin.pw=1
}
Timer wakeup_timer
Attributes
ID : 23
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,668 @@
Page light
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis light_b_press,1
vis lightslider,1
vis light_value,1
// #### OFF Button #####
vis temp_b_press,0
vis color_b_pres,0
// #### OFF Value #####
vis temp_value,0
vis light_value_2,0
// #### OFF Slider #####
vis tempslider,0
vis colorwheel,0
// #### Hide color & temp buttons #####
vis temp_touch,0
vis temp_value_2,0
vis temp_button,0
vis color_touch,0
vis color_button,0
}
Variable (int32) rgb565
Attributes
ID : 22
Scope: local
Value: 0
Variable (string) va1
Attributes
ID : 23
Scope : local
Text : newtxt
Max. Text Size: 20
Variable (string) va2
Attributes
ID : 24
Scope : local
Text : newtxt
Max. Text Size: 10
Variable (string) va3
Attributes
ID : 25
Scope : local
Text : newtxt
Max. Text Size: 10
Variable (int32) currenttab
Attributes
ID : 26
Scope: local
Value: 0
Variable (string) lightsetting
Attributes
ID : 30
Scope : local
Text :
Max. Text Size: 255
Number ring
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Value : 0
Number field
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Value : 0
Text light_value
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_label
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text temp_value
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text light_value_2
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text temp_value_2
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text icon_state
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Picture light_button
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: disabled
Picture color_button
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: disabled
Picture temp_button
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
Picture light_b_press
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: disabled
Picture temp_b_press
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
Picture color_b_pres
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID: disabled
Picture colorwheel
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
// Circular Color Picker for Nextion (c) Max Zuidberg 2022
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Put this code in the touch press or release
// event of the pic component with the color wheel.
// Requires the two variables field.val and ring.val
//
// sya0 = x, sya1 = sya1
// Note the usage of the hidden sya0, sya1 variables
// within event code as local, temporary variable is fine.
sya0=tch0
sya1=tch1
//
// Convert absolute coordinates to coordinates relative to
// the color wheel center.
// sys0 = x_center, sys1 = y_center
sys0=colorwheel.w/2
sys0+=colorwheel.x
sys1=colorwheel.h/2
sys1+=colorwheel.y
sya0-=sys0
sya1-=sys1
//
// Determine ring
ring.val=0
// sys0 = r^2 = x^2 + y^2
sys0=sya0*sya0
sys1=sya1*sya1
sys0+=sys1
// repeat for all rings
if(sys0>=156)
{
ring.val++
}
if(sys0>=625)
{
ring.val++
}
if(sys0>=1406)
{
ring.val++
}
if(sys0>=2500)
{
ring.val++
}
if(sys0>=3906)
{
ring.val++
}
if(sys0>=5625)
{
ring.val++
}
if(sys0>=7656)
{
ring.val++
}
//
// Determine quadrant (0-3). Note: pixel y coords are inverted
// compared to mathematical y coords. But we want math. quadrants.
sya1*=-1
sys2=0
if(sya1<0)
{
sys2+=2
}
sys0=sya0*sya1
if(sys0<0)
{
sys2+=1
// In this case we also want to swap x and y otherwise the
// atan(abs(x/y)) (calculated below) gives values running
// "the wrong way" (cw instead of ccw).
sys1=sya1
sya1=sya0
sya0=sys1
}
//
field.val=sys2*6
//
// x,y sign is not required anymore
if(sya0<0)
{
sya0*=-1
}
if(sya1<0)
{
sya1*=-1
}
//
// Determine field in ring quadrant
// Factor 100000 chosen more or less arbitrarily.
// sys0 = 100000 * tan_a = 100000 * y / x
sys0=100000*sya1
sys0/=sya0
// repeat for all fields
if(sys0>=26794)
{
field.val++
}
if(sys0>=57735)
{
field.val++
}
if(sys0>=99999)
{
field.val++
}
if(sys0>=173205)
{
field.val++
}
if(sys0>=373205)
{
field.val++
}
covx r,va1.txt,0,0
covx g,va2.txt,0,0
covx b,va3.txt,0,0
va1.txt=""
va2.txt=""
va3.txt=""
Touch Release Event
// Adjust field.val "orientation" and offset to match the h value of the colors in the wheel
h=23-field.val// 0 <= field.val <= 23
// h is expected to be 0-6*256 (see hsv2rgb)
h*=6*256
h/=24// Number of fields
//
// s is expected to be 0-256 (see hsv2rgb)
s=ring.val*256
s/=8// Number of rings
// no "value" selectable; fix it to the maximum (matching the colors in the wheels shown.
v=255
click hsv2rgb,0
click rgb888to565,0
//colPreview.bco=rgb565.val
covx r,va1.txt,0,0
covx g,va2.txt,0,0
covx b,va3.txt,0,0
lightsetting.txt="{\"page\": \"light\", \"component\": \"rgb_color\", \"value\": ["+va1.txt+", "+va2.txt+", "+va3.txt+"]}"
printh 92
prints "nspanelevent",0
printh 00
prints lightsetting.txt,0
printh 00
printh FF FF FF
va1.txt=""
va2.txt=""
va3.txt=""
Slider lightslider
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
covx lightslider.val,va1.txt,0,0
light_value.txt=va1.txt+"%"
light_value_2.txt=va1.txt+"%"
lightsetting.txt="{\"page\": \"light\", \"key\": \"brightness_pct\", \"value\": "+va1.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lightsetting.txt,0
printh 00
printh FF FF FF
Slider tempslider
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 500
Lower range limit: 153
Events
Touch Release Event
covx tempslider.val,va1.txt,0,0
temp_value.txt=va1.txt
temp_value_2.txt=va1.txt
lightsetting.txt="{\"page\": \"light\", \"key\": \"color_temp\", \"value\": "+va1.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lightsetting.txt,0
printh 00
printh FF FF FF
Button button_back
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Hotspot hsv2rgb
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
// https://de.wikipedia.org/wiki/HSV-Farbraum#Umrechnung_HSV_in_RGB
// The values range from 0..255 instead of 0..1
// h ranges from 0..(6*256)
if(s>=256)
{
s=255
}else if(s<0)
{
s=0
}
if(v>=256)
{
v=255
}else if(v<0)
{
v=0
}
f=h&0xff
p=256-s
p*=v
p=p>>8// / 256
q=s*f// 0-256*256 = 0-65536
q=65536-q
q*=v
q=q>>16
t=256-f
t*=s
t=65536-t
t*=v
t=t>>16
//
f=h>>8
if(f==1)
{
r=q
g=v
b=p
}else if(f==2)
{
r=p
g=v
b=t
}else if(f==3)
{
r=p
g=q
b=v
}else if(f==4)
{
r=t
g=p
b=v
}else if(f==5)
{
r=v
g=p
b=q
}else
{
r=v
g=t
b=p
}
Hotspot rgb888to565
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
r=r&0xff
g=g&0xff
b=b&0xff
sys1=r>>3
sys2=sys1<<6
sys1=g>>2
sys2+=sys1
sys2=sys2<<5
sys1=b>>3
sys2+=sys1
rgb565.val=sys2
Hotspot light_touch
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
vis light_b_press,1
vis lightslider,1
vis light_value,1
vis temp_value_2,1
// #### OFF Button #####
vis temp_b_press,0
vis color_b_pres,0
// #### OFF Value #####
vis temp_value,0
vis light_value_2,0
// #### OFF Slider #####
vis tempslider,0
vis colorwheel,0
Hotspot temp_touch
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
vis temp_b_press,1
vis tempslider,1
vis temp_value,1
vis light_value_2,1
// #### OFF Button #####
vis light_b_press,0
vis color_b_pres,0
// #### OFF Value #####
vis light_value,0
vis temp_value_2,0
// #### OFF Slider #####
vis lightslider,0
vis colorwheel,0
Hotspot color_touch
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
vis color_b_pres,1
vis colorwheel,1
vis light_value_2,1
// #### OFF Button #####
vis light_b_press,0
vis temp_b_press,0
// #### OFF Value #####
vis light_value,0
vis temp_value,0
vis temp_value_2,0
// #### OFF Slider #####
vis lightslider,0
vis tempslider,0
// #### OFF Color #####
Timer swipestore
Attributes
ID : 21
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 32
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 20
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,423 @@
Page media_player
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (string) lastclick
Attributes
ID : 18
Scope : local
Text :
Max. Text Size: 255
Variable (string) va0
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 10
Variable (int32) is_muted
Attributes
ID : 22
Scope: local
Value: 0
Variable (int32) prg_current
Attributes
ID : 24
Scope: local
Value: 0
Variable (int32) prg_total
Attributes
ID : 25
Scope: local
Value: 0
Text page_label
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Media Player
Max. Text Size : 100
Text icon_state
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î„—
Max. Text Size : 10
Text vol_text
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text bt_vol_down
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
if(vol_slider.val>0)
{
vol_slider.val--
covx vol_slider.val,va0.txt,0,0
vol_text.txt=va0.txt+"%"
timer0.en=1
}
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text bt_vol_up
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
if(vol_slider.val<100)
{
vol_slider.val++
covx vol_slider.val,va0.txt,0,0
vol_text.txt=va0.txt+"%"
timer0.en=1
}
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text bt_mute
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
if(is_muted.val==0)
{
va0.txt="true"
}else
{
va0.txt="false"
}
lastclick.txt="{\"page\": \"media_player\", \"key\": \"volume_mute\", \"value\": \""+va0.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text time_current
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text time_total
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text track
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 255
Text artist
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 150
Text bt_prev
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î’­
Max. Text Size : 3
Events
Touch Release Event
lastclick.txt="{\"page\": \"media_player\", \"key\": \"media_previous_track\"}"
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"media_player\", \"key\": \"media_previous_track\"}",0
printh 00
printh FF FF FF
Text bt_play_pause
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"media_player\", \"key\": \"media_play_pause\"}",0
printh 00
printh FF FF FF
Text bt_next
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î’¬
Max. Text Size : 3
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"media_player\", \"key\": \"media_next_track\"}",0
printh 00
printh FF FF FF
Text bt_on_off
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"media_player\", \"key\": \"toggle\"}",0
printh 00
printh FF FF FF
Progress Bar time_progress
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
Value : 0
Slider vol_slider
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
covx vol_slider.val,va0.txt,0,0
vol_text.txt=va0.txt+"%"
timer0.en=1
Button button_back
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer timer0
Attributes
ID : 20
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer0.en=0
covx vol_slider.val,va0.txt,0,0
vol_text.txt=va0.txt+"%"
lastclick.txt="{\"page\": \"media_player\", \"key\": \"volume_set\", \"value\": "+va0.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Timer prg_timer
Attributes
ID : 23
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
if(prg_current.val<prg_total.val&&prg_total.val>0)
{
prg_current.val++
time_progress.val=100*prg_current.val/prg_total.val
covx prg_current.val,time_current.txt,0,0
}
// Progress - Total
sys0=prg_total.val/3600 //hours
sys2=prg_total.val%3600 //remainder
sys1=sys2/60 //minutes
sys2%=60 //seconds
time_total.txt=""
if(sys0>0)
{
covx sys0,time_total.txt,0,0
time_total.txt+=":"
if(sys1<10)
{
time_total.txt+="0"
}
}
covx sys1,va0.txt,0,0
time_total.txt+=va0.txt+":"
if(sys2<10)
{
time_total.txt+="0"
}
covx sys2,va0.txt,0,0
time_total.txt+=va0.txt
// Progress - Current
sys0=prg_current.val/3600 //hours
sys2=prg_current.val%3600 //remainder
sys1=sys2/60 //minutes
sys2%=60 //seconds
time_current.txt=""
if(sys0>0)
{
covx sys0,time_current.txt,0,0
time_current.txt+=":"
if(sys1<10)
{
time_current.txt+="0"
}
}
covx sys1,va0.txt,0,0
time_current.txt+=va0.txt+":"
if(sys2<10)
{
time_current.txt+="0"
}
covx sys2,va0.txt,0,0
time_current.txt+=va0.txt

View File

@@ -0,0 +1,183 @@
Page notification
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (string) lastclick
Attributes
ID : 5
Scope : local
Text :
Max. Text Size: 100
Text notifi_text01
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 512
Text notifi_label
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Button bt_accept
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î— 
Max. Text Size : 3
Events
Touch Release Event
lastclick.txt="{\"page\": \"notification\", \"component\": \"accept\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Button bt_clear
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…™
Max. Text Size : 10
Events
Touch Release Event
lastclick.txt="{\"page\": \"notification\", \"component\": \"clear\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Timer swipestore
Attributes
ID : 4
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 9
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 3
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,129 @@
Page qrcode
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
sendme
Text qrcode_label
Attributes
ID : 3
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
QR Code qrcode_value
Attributes
ID : 4
Scope : global
Dragging : 0
Send Component ID: on press and release
Text :
Max. Text Size : 75
Button button_back
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 6
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,101 @@
Page screensaver
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
sendme
dim=brightness_sleep
Touch Release Event
page back_page_id
Text text
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 1000
Events
Touch Press Event
page back_page_id
Timer swipestore
Attributes
ID : 3
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap wakeup
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
page back_page_id
TouchCap swipe
Attributes
ID : 2
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx&&api==1)
{
page buttonpage04
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2&&api==1)
{
page buttonpage01
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100&&api==1)
{
page buttonpage02
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100&&api==1)
{
page buttonpage03
}
}

View File

@@ -0,0 +1,321 @@
Page settings
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
sendme
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
vis lbl_sleep,0
vis bt_sleep,0
Text bright_text
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 80%
Max. Text Size : 4
Text dim_text
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 20%
Max. Text Size : 4
Text lbl_reboot
Attributes
ID : 5
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Reboot
Max. Text Size : 25
Events
Touch Press Event
tm_boot_page.en=1
Touch Release Event
tm_boot_page.en=0
Text lbl_sleep
Attributes
ID : 6
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Sleep mode
Max. Text Size : 25
Text lbl_bright
Attributes
ID : 7
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Bright
Max. Text Size : 25
Text lbl_dim
Attributes
ID : 8
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Dim
Max. Text Size : 25
Text lbl_brightness
Attributes
ID : 16
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Brightness
Max. Text Size : 25
Slider brightslider
Attributes
ID : 1
Scope : global
Dragging : 0
Send Component ID: on press and release
Position : 80
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
if(tm_bright.en==0)
{
tm_bright.en=1
}
Slider dimslider
Attributes
ID : 2
Scope : global
Dragging : 0
Send Component ID: on press and release
Position : 20
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
if(tm_dim.en==0)
{
tm_dim.en=1
}
Button button_back
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Dual-state Button bt_reboot
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Dual-state Button bt_sleep
Attributes
ID : 10
Scope : global
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Hotspot bt_bright_down
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
if(brightslider.val>0)
{
brightslider.val--
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
}
Hotspot bt_bright_up
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
if(brightslider.val<100)
{
brightslider.val++
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
}
Hotspot bt_dim_down
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
if(dimslider.val>0)
{
dimslider.val--
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
}
Hotspot bt_dim_up
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
if(dimslider.val<100)
{
dimslider.val++
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
}
Timer wakeup_timer
Attributes
ID : 17
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer tm_bright
Attributes
ID : 18
Scope : local
Period (ms): 100
Enabled : no
Events
Timer Event
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
tm_bright.en=0
Timer tm_dim
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : no
Events
Timer Event
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
tm_dim.en=0
Timer tm_boot_page
Attributes
ID : 20
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
page boot

View File

@@ -0,0 +1,263 @@
Page weather01
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ●○○○○
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather05
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather02
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,263 @@
Page weather02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○●○○○
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather03
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,263 @@
Page weather03
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○●○○
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather02
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather04
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,263 @@
Page weather04
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○○●○
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather03
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather05
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,263 @@
Page weather05
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○○○●
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather04
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather01
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,21 @@
Program.s
//The following code is only run once when power on, and is generally used for global variable definition and power on initialization data
int sys0=0,sys1=0,sys2=0,swipex=0,swipey=0,swipex2=0,swipey2=0,swipec=0,swipec2=0,swipedx=100,swipedy=100 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement
int r=0,g=0,b=0
int h=0,s=0,v=0
int p=0,q=0,t=0,f=0
int back_page_id=0
int dimdelta=0
int api=0 // 0 = disconnected from HA, 1 = connected to HA
int is_entities=0,is_qrcode=0,is_notification=0
int brightness=100,brightness_dim=40,brightness_sleep=0
int display_mode=2 // 1 = EU, 2 = US, 3 = US landscape, 4 = blank
int charset=2 // 1 = International (original), 2 = CJK
//bauds=115200//Configure baudrate
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
if(display_mode==1)
{
lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version
}
page 8//Power on start page boot

View File

@@ -0,0 +1,418 @@
Page alarm
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis bt_home,0
vis bt_away,0
vis bt_night,0
vis bt_vacat,0
vis bt_bypass,0
}
Variable (string) lastclick
Attributes
ID : 3
Scope : local
Text :
Max. Text Size: 255
Variable (string) code_format
Attributes
ID : 28
Scope : local
Text :
Max. Text Size: 15
Variable (string) entity
Attributes
ID : 29
Scope : local
Text :
Max. Text Size: 100
Variable (string) code_arm_req
Attributes
ID : 30
Scope : local
Text :
Max. Text Size: 1
Text page_label
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Alarm Control Panel
Max. Text Size : 100
Text icon_state
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î’—
Max. Text Size : 10
Text bt_home_text
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Home
Max. Text Size : 22
Text bt_away_text
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Away
Max. Text Size : 22
Text bt_night_text
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Night
Max. Text Size : 22
Text bt_vacat_text
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Vacation
Max. Text Size : 22
Text bt_bypass_text
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Bypass
Max. Text Size : 22
Text bt_disarm_text
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Disarm
Max. Text Size : 22
Text bt_home_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_away_icon
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_night_icon
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : ï §
Max. Text Size : 3
Text bt_vacat_icon
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_bypass_icon
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_disarm_icon
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Picture bt_home_pic
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_away_pic
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_night_pic
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_vacat_pic
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_bypass_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_disarm_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: disabled
Button button_back
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Hotspot bt_home
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_home_pic.pic=44
bt_home_text.bco=65024
bt_home_text.pco=0
bt_home_icon.bco=65024
bt_home_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"home\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_home_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_away
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_away_pic.pic=44
bt_away_text.bco=65024
bt_away_text.pco=0
bt_away_icon.bco=65024
bt_away_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"away\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_away_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_night
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_night_pic.pic=44
bt_night_text.bco=65024
bt_night_text.pco=0
bt_night_icon.bco=65024
bt_night_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"night\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_night_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_vacat
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_vacat_pic.pic=44
bt_vacat_text.bco=65024
bt_vacat_text.pco=0
bt_vacat_icon.bco=65024
bt_vacat_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"vacation\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_vacat_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_bypass
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_bypass_pic.pic=44
bt_bypass_text.bco=65024
bt_bypass_text.pco=0
bt_bypass_icon.bco=65024
bt_bypass_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"bypass\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_bypass_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_disarm
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_disarm_pic.pic=44
bt_disarm_text.bco=65024
bt_disarm_text.pco=0
bt_disarm_icon.bco=65024
bt_disarm_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"disarm\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_disarm_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Timer wakeup_timer
Attributes
ID : 32
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,197 @@
Page boot
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
sendme
dim=100
vis bt_reboot,0
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
Page Exit Event
dim=0
Variable (int32) counter
Attributes
ID : 11
Scope: local
Value: 0
Variable (string) aux1
Attributes
ID : 12
Scope : local
Text :
Max. Text Size: 10
Text ip_addr
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Initializing...
Max. Text Size : 15
Text t0
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Please wait...
Max. Text Size : 15
Text t1
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : The process can take several seconds!
Max. Text Size : 50
Text tft_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : TFT:
Max. Text Size : 4
Text esph_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ESPHome:
Max. Text Size : 8
Text bluep_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Blueprint:
Max. Text Size : 10
Text tft_version
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 4.2beta.1
Max. Text Size : 9
Text esph_version
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 9
Text bluep_version
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 9
Text baud_rate
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text framework
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Dual-state Button bt_reboot
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : Reboot
Max. Text Size : 6
Timer tm_esphome
Attributes
ID : 13
Scope : local
Period (ms): 30000
Enabled : yes
Events
Timer Event
counter.val++
if(counter.val>60)
{
rest
}
sendme
printh 91
prints "display_mode",0
printh 00
prints display_mode,0
printh FF FF FF
printh 91
prints "charset",0
printh 00
prints charset,0
printh FF FF FF
printh 92
prints "tft_version",0
printh 00
prints tft_version.txt,0
printh 00
printh FF FF FF
covx counter.val,aux1.txt,0,0
esph_version.txt="Retry #"+aux1.txt
sys0=counter.val%10
if(sys0==0)
{
baud=115200
}
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"

View File

@@ -0,0 +1,792 @@
Page buttonpage01
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage01
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ●○○○
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page home
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage02
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,792 @@
Page buttonpage02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage02
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○●○○
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage03
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,792 @@
Page buttonpage03
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage03
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○●○
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage02
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage04
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,792 @@
Page buttonpage04
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage04
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○○●
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage03
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page home
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,859 @@
Page climate
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==1||embedded.val==1)
{
sendme
vis target_icon,0
vis target_high,0
vis target_low,0
vis current_temp,0
vis climateslider,0
vis slider_high,0
vis slider_low,0
vis button01,0
vis button02,0
vis button03,0
vis button04,0
vis button05,0
vis button06,0
vis button07,0
}else
{
page home
}
Page Exit Event
covx embedded.val,va2.txt,0,0
if(timer0.en==1)
{
timer0.en=0
covx temp_number0.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"temperature\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
}
if(timer1.en==1)
{
timer1.en=0
covx temp_number1.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_high\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
}
if(timer2.en==1)
{
timer2.en=0
covx temp_number2.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_low\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
}
Variable (string) va1
Attributes
ID : 24
Scope : local
Text :
Max. Text Size: 10
Variable (string) climatesetting
Attributes
ID : 25
Scope : local
Text :
Max. Text Size: 255
Variable (string) lastclick
Attributes
ID : 26
Scope : local
Text :
Max. Text Size: 255
Variable (int32) temp_offset
Attributes
ID : 28
Scope: local
Value: 0
Variable (int32) temp_step
Attributes
ID : 29
Scope: local
Value: 1
Variable (int32) temp_number0
Attributes
ID : 33
Scope: local
Value: 0
Variable (int32) va0
Attributes
ID : 34
Scope: local
Value: 0
Variable (int32) embedded
Attributes
ID : 35
Scope: global
Value: 0
Variable (string) va2
Attributes
ID : 36
Scope : local
Text :
Max. Text Size: 10
Variable (string) click_comp
Attributes
ID : 38
Scope : local
Text :
Max. Text Size: 8
Variable (int32) active_slider
Attributes
ID : 42
Scope: local
Value: 1
Variable (int32) is_temp_range
Attributes
ID : 44
Scope: local
Value: 0
Variable (int32) temp_number1
Attributes
ID : 48
Scope: local
Value: 0
Variable (int32) temp_number2
Attributes
ID : 49
Scope: local
Value: 0
Text current_temp
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text page_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text target_icon
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value01_icon
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value01
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text value02_icon
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text value03_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text button01
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"auto\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button02
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat_cool\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button03
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button04
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"cool\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button05
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"dry\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button06
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"fan_only\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button07
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"off\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button08
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"climate\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button09
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Events
Touch Press Event
click_comp.txt="button09"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"climate\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text target_high
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text target_low
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider slider_high
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 200
Upper range limit: 400
Lower range limit: 0
Events
Touch Release Event
active_slider.val=1
temp_number1.val=slider_high.val*temp_step.val
temp_number1.val+=temp_offset.val
va0.val=temp_number1.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number1.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
timer1.en=1
Slider slider_low
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 200
Upper range limit: 400
Lower range limit: 0
Events
Touch Release Event
active_slider.val=2
temp_number2.val=slider_high.val*temp_step.val
temp_number2.val+=temp_offset.val
va0.val=temp_number2.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number2.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
timer2.en=1
Slider climateslider
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 200
Upper range limit: 400
Lower range limit: 0
Events
Touch Release Event
active_slider.val=0
temp_number0.val=slider_high.val*temp_step.val
temp_number0.val+=temp_offset.val
va0.val=temp_number0.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number0.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
timer0.en=1
Button button_back
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Hotspot decrease_temp
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
if(active_slider.val==0)
{
if(climateslider.val>0)
{
climateslider.val--
temp_number0.val=climateslider.val*temp_step.val
temp_number0.val+=temp_offset.val
va0.val=temp_number0.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number0.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==1)
{
if(slider_high.val>0)
{
slider_high.val--
temp_number1.val=slider_high.val*temp_step.val
temp_number1.val+=temp_offset.val
va0.val=temp_number1.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number1.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==2)
{
if(slider_low.val>0)
{
slider_low.val--
temp_number2.val=slider_low.val*temp_step.val
temp_number2.val+=temp_offset.val
va0.val=temp_number2.val/10
covx va0.val,target_low.txt,0,0
va0.val=temp_number2.val%10
covx va0.val,va1.txt,0,0
target_low.txt+="."+va1.txt
}
}
Touch Release Event
if(active_slider.val==0)
{
timer0.en=1
}else if(active_slider.val==1)
{
timer1.en=1
}else if(active_slider.val==2)
{
timer2.en=1
}
Hotspot increase_temp
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
if(active_slider.val==0)
{
if(climateslider.val<climateslider.maxval)
{
climateslider.val++
temp_number0.val=climateslider.val*temp_step.val
temp_number0.val+=temp_offset.val
va0.val=temp_number0.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number0.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==1)
{
if(slider_high.val<slider_high.maxval)
{
slider_high.val++
temp_number1.val=slider_high.val*temp_step.val
temp_number1.val+=temp_offset.val
va0.val=temp_number1.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number1.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==2)
{
if(slider_low.val<slider_low.maxval)
{
slider_low.val++
temp_number2.val=slider_low.val*temp_step.val
temp_number2.val+=temp_offset.val
va0.val=temp_number2.val/10
covx va0.val,target_low.txt,0,0
va0.val=temp_number2.val%10
covx va0.val,va1.txt,0,0
target_low.txt+="."+va1.txt
}
}
Touch Release Event
if(active_slider.val==0)
{
timer0.en=1
}else if(active_slider.val==1)
{
timer1.en=1
}else if(active_slider.val==2)
{
timer2.en=1
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer timer0
Attributes
ID : 27
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer0.en=0
covx embedded.val,va2.txt,0,0
covx temp_number0.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"temperature\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
Timer click_timer
Attributes
ID : 39
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \"climate\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 40
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer timer1
Attributes
ID : 46
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer1.en=0
covx embedded.val,va2.txt,0,0
covx temp_number1.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_high\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
Timer timer2
Attributes
ID : 47
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer2.en=0
covx embedded.val,va2.txt,0,0
covx temp_number2.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_low\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,151 @@
Page confirm
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (int32) page_id
Attributes
ID : 3
Scope: global
Value: 0
Variable (string) aux
Attributes
ID : 5
Scope : local
Text :
Max. Text Size: 255
Variable (string) page_name
Attributes
ID : 9
Scope : global
Text :
Max. Text Size: 12
Variable (string) component
Attributes
ID : 10
Scope : global
Text :
Max. Text Size: 10
Text t0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text title
Attributes
ID : 4
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Please confirm
Max. Text Size : 100
Text body
Attributes
ID : 8
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Please confirm
Max. Text Size : 255
Button bclose
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 10
Events
Touch Release Event
page page_id.val
Button bt_accept
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î— 
Max. Text Size : 3
Events
Touch Release Event
aux.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+component.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints aux.txt,0
printh 00
printh FF FF FF
page page_id.val
Button bt_clear
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…™
Max. Text Size : 10
Events
Touch Release Event
page page_id.val
Timer wakeup_timer
Attributes
ID : 11
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,202 @@
Page cover
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (string) va1
Attributes
ID : 7
Scope : local
Text : newtxt
Max. Text Size: 10
Variable (string) coversetting
Attributes
ID : 11
Scope : local
Text :
Max. Text Size: 255
Text battery_value
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text cover_value
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text icon_state
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text battery_icon
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider coverslider
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
covx coverslider.val,va1.txt,0,0
cover_value.txt=va1.txt+"%"
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
printh 92
prints "localevent",0
printh 00
prints coversetting.txt,0
printh 00
printh FF FF FF
Button cover_open
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Button cover_close
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : ï„›
Max. Text Size : 3
Events
Touch Press Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Button cover_stop
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Button button_back
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Timer wakeup_timer
Attributes
ID : 13
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,376 @@
Page entitypage01
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text value01_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value05_label
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value04_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value02_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value03_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text entity01_label
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text value06_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value07_label
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value08_label
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value01_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value02_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value03_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value04_pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value05_pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value06_pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value07_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value08_pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value01
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value02
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value03
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value04
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value05
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value06
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value07
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value08
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text page_index
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ●○○○
Max. Text Size : 12
Button button_back
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 30
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page entitypage04
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page entitypage02
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
page entitypage03
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
page entitypage04
}
}

View File

@@ -0,0 +1,376 @@
Page entitypage02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text value01_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value05_label
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value04_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value02_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value03_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text entity02_label
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text value06_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value07_label
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value08_label
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value01_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value02_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value03_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value04_pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value05_pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value06_pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value07_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value08_pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value01
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value02
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value03
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value04
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value05
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value06
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value07
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value08
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text page_index
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○●○○
Max. Text Size : 12
Button button_back
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 30
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page entitypage01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page entitypage03
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,376 @@
Page entitypage03
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text value01_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value05_label
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value04_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value02_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value03_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text entity03_label
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text value06_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value07_label
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value08_label
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value01_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value02_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value03_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value04_pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value05_pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value06_pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value07_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value08_pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value01
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value02
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value03
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value04
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value05
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value06
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value07
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value08
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text page_index
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○●○
Max. Text Size : 12
Button button_back
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 30
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page entitypage02
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page entitypage04
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
page entitypage01
}
}

View File

@@ -0,0 +1,376 @@
Page entitypage04
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text value01_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value05_label
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value04_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value02_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value03_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text entity04_label
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text value06_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value07_label
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value08_label
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text value01_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value02_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value03_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value04_pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value05_pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value06_pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value07_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value08_pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value01
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value02
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value03
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value04
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value05
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value06
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value07
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value08
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 30
Text page_index
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○○●
Max. Text Size : 12
Button button_back
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 30
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page entitypage03
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page entitypage01
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
page entitypage01
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,377 @@
Page fan
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (string) fansetting
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 255
Variable (string) va0
Attributes
ID : 8
Scope : local
Text :
Max. Text Size: 10
Text fan_value
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_label
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text icon_state
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider fanslider
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 4
Lower range limit: 0
Events
Touch Release Event
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
timer0.en=1
Button button_up
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : ï‘­
Max. Text Size : 3
Events
Touch Press Event
if(fanslider.val<fanslider.maxval)
{
fanslider.val++
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
}
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
Touch Release Event
timer0.en=1
Button button_on
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
fanslider.val=fanslider.maxval/2
sys0=fanslider.maxval*5
sys0%=10
if(sys0>=5)
{
fanslider.val++
}
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
Touch Release Event
timer0.en=1
Button button_down
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
if(fanslider.val>fanslider.minval)
{
fanslider.val--
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
}
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
Touch Release Event
timer0.en=1
Button button_off
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
fanslider.val=fanslider.minval
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
fansetting.txt="{\"page\": \"fan\", \"key\": \"stop\", \"value\": "+va0.txt+"}"
printh 92
prints "localevent",0
printh 00
prints fansetting.txt,0
printh 00
printh FF FF FF
if(fanslider.val>fanslider.minval)
{
button_off.pco=59164
button_down.pco=59164
}else
{
button_off.pco=10597
button_down.pco=10597
}
if(fanslider.val<fanslider.maxval)
{
button_up.pco=59164
}else
{
button_up.pco=10597
}
Touch Release Event
timer0.en=0
Button button_back
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Timer swipestore
Attributes
ID : 5
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer timer0
Attributes
ID : 13
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer0.en=0
sys0=100*fanslider.val/fanslider.maxval
covx sys0,va0.txt,0,0
fan_value.txt=va0.txt+"%"
fansetting.txt="{\"page\": \"fan\", \"key\": \"percentage\", \"value\": "+va0.txt+"}"
printh 92
prints "localevent",0
printh 00
prints fansetting.txt,0
printh 00
printh FF FF FF
Timer wakeup_timer
Attributes
ID : 15
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 4
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,723 @@
Page home
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
sendme
back_page_id=0
vis bt_notific,is_notification
vis bt_qrcode,is_qrcode
vis bt_entities,is_entities
if(display_mode==3)
{
vis left_bt_text,0
vis right_bt_text,0
}
Variable (string) lastclick
Attributes
ID : 33
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 41
Scope : local
Text :
Max. Text Size: 8
Text time
Attributes
ID : 3
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Events
Touch Press Event
settings_timer.en=1
Touch Release Event
settings_timer.en=0
Text current_temp
Attributes
ID : 4
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 8
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"home\", \"component\": \"climate\", \"event\": \"click\"}",0
printh 00
printh FF FF FF
Text outdoor_temp
Attributes
ID : 5
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 8
Text date
Attributes
ID : 6
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Events
Touch Press Event
settings_timer.en=1
Touch Release Event
settings_timer.en=0
Text value01_state
Attributes
ID : 8
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text left_bt_text
Attributes
ID : 9
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text right_bt_text
Attributes
ID : 10
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text icon_top_01
Attributes
ID : 11
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_02
Attributes
ID : 12
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_03
Attributes
ID : 13
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_04
Attributes
ID : 14
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_05
Attributes
ID : 15
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_06
Attributes
ID : 16
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_07
Attributes
ID : 17
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_08
Attributes
ID : 18
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_09
Attributes
ID : 19
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text icon_top_10
Attributes
ID : 20
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text value01_icon
Attributes
ID : 21
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text value03_state
Attributes
ID : 22
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 23
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text value02_icon
Attributes
ID : 24
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Text value02_state
Attributes
ID : 25
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text wifi_icon
Attributes
ID : 26
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Events
Touch Press Event
settings_timer.en=1
Touch Release Event
settings_timer.en=0
Text indoortempicon
Attributes
ID : 27
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"home\", \"component\": \"climate\", \"event\": \"click\"}",0
printh 00
printh FF FF FF
Text bt_notific
Attributes
ID : 28
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Release Event
if(api==1)
{
page notification
}
Text bt_qrcode
Attributes
ID : 29
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Release Event
page qrcode
Text bt_entities
Attributes
ID : 30
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Release Event
if(api==1)
{
page entitypage01
}
Text button07
Attributes
ID : 31
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text meridiem
Attributes
ID : 32
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Events
Touch Press Event
settings_timer.en=1
Touch Release Event
settings_timer.en=0
Text button01
Attributes
ID : 38
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button02
Attributes
ID : 39
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button03
Attributes
ID : 40
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button04
Attributes
ID : 43
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button05
Attributes
ID : 44
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button06
Attributes
ID : 45
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 3
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Picture weather
Attributes
ID : 7
Scope : global
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
if(api==1)
{
page weather01
}
Dual-state Button left_bt_pic
Attributes
ID : 35
Scope : global
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text :
Max. Text Size : 0
Dual-state Button right_bt_pic
Attributes
ID : 36
Scope : global
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text :
Max. Text Size : 0
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer settings_timer
Attributes
ID : 34
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
page settings
Timer wakeup_timer
Attributes
ID : 37
Scope : local
Period (ms): 50
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=25
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer click_timer
Attributes
ID : 42
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \"home\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
wakeup_timer.en=1 // Set brightness to saved value (from HA)
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx&&api==1)
{
page buttonpage04
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2&&api==1)
{
page buttonpage01
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100&&api==1)
{
page buttonpage02
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100&&api==1)
{
page buttonpage03
}
}

View File

@@ -0,0 +1,311 @@
Page keyb_num
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page page_id.val
}else
{
sendme
}
Variable (int32) page_id
Attributes
ID : 17
Scope: local
Value: 0
Variable (string) key
Attributes
ID : 19
Scope : local
Text :
Max. Text Size: 10
Variable (string) domain
Attributes
ID : 20
Scope : local
Text : alarm
Max. Text Size: 10
Variable (string) aux
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 255
Variable (string) value
Attributes
ID : 22
Scope : local
Text :
Max. Text Size: 10
Text t0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text pin
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 60
Text title
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Alarm
Max. Text Size : 30
Button b1
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 1
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b1.txt
Button bclose
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Release Event
page page_id.val
Button b2
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 2
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b2.txt
Button b3
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press
State : unpressed
Text : 3
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b3.txt
Button b4
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 4
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b4.txt
Button b5
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 5
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b5.txt
Button b6
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 6
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b6.txt
Button b7
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 7
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b7.txt
Button b8
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 8
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b8.txt
Button b9
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: on press
State : unpressed
Text : 9
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b9.txt
Button bclear
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Release Event
pin.txt=""
Button b0
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 0
Max. Text Size : 1
Events
Touch Release Event
pin.txt+=b0.txt
Button benter
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î„«
Max. Text Size : 3
Events
Touch Release Event
aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
Button bview
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
if(pin.pw==1)
{
pin.pw=0
}else
{
pin.pw=1
}
Timer wakeup_timer
Attributes
ID : 23
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,668 @@
Page light
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis light_b_press,1
vis lightslider,1
vis light_value,1
// #### OFF Button #####
vis temp_b_press,0
vis color_b_pres,0
// #### OFF Value #####
vis temp_value,0
vis light_value_2,0
// #### OFF Slider #####
vis tempslider,0
vis colorwheel,0
// #### Hide color & temp buttons #####
vis temp_touch,0
vis temp_value_2,0
vis temp_button,0
vis color_touch,0
vis color_button,0
}
Variable (int32) rgb565
Attributes
ID : 22
Scope: local
Value: 0
Variable (string) va1
Attributes
ID : 23
Scope : local
Text : newtxt
Max. Text Size: 20
Variable (string) va2
Attributes
ID : 24
Scope : local
Text : newtxt
Max. Text Size: 10
Variable (string) va3
Attributes
ID : 25
Scope : local
Text : newtxt
Max. Text Size: 10
Variable (int32) currenttab
Attributes
ID : 26
Scope: local
Value: 0
Variable (string) lightsetting
Attributes
ID : 30
Scope : local
Text :
Max. Text Size: 255
Number ring
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Value : 0
Number field
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Value : 0
Text light_value
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_label
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text temp_value
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text light_value_2
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text temp_value_2
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text icon_state
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Picture light_button
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: disabled
Picture color_button
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: disabled
Picture temp_button
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
Picture light_b_press
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: disabled
Picture temp_b_press
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
Picture color_b_pres
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID: disabled
Picture colorwheel
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
// Circular Color Picker for Nextion (c) Max Zuidberg 2022
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Put this code in the touch press or release
// event of the pic component with the color wheel.
// Requires the two variables field.val and ring.val
//
// sya0 = x, sya1 = sya1
// Note the usage of the hidden sya0, sya1 variables
// within event code as local, temporary variable is fine.
sya0=tch0
sya1=tch1
//
// Convert absolute coordinates to coordinates relative to
// the color wheel center.
// sys0 = x_center, sys1 = y_center
sys0=colorwheel.w/2
sys0+=colorwheel.x
sys1=colorwheel.h/2
sys1+=colorwheel.y
sya0-=sys0
sya1-=sys1
//
// Determine ring
ring.val=0
// sys0 = r^2 = x^2 + y^2
sys0=sya0*sya0
sys1=sya1*sya1
sys0+=sys1
// repeat for all rings
if(sys0>=156)
{
ring.val++
}
if(sys0>=625)
{
ring.val++
}
if(sys0>=1406)
{
ring.val++
}
if(sys0>=2500)
{
ring.val++
}
if(sys0>=3906)
{
ring.val++
}
if(sys0>=5625)
{
ring.val++
}
if(sys0>=7656)
{
ring.val++
}
//
// Determine quadrant (0-3). Note: pixel y coords are inverted
// compared to mathematical y coords. But we want math. quadrants.
sya1*=-1
sys2=0
if(sya1<0)
{
sys2+=2
}
sys0=sya0*sya1
if(sys0<0)
{
sys2+=1
// In this case we also want to swap x and y otherwise the
// atan(abs(x/y)) (calculated below) gives values running
// "the wrong way" (cw instead of ccw).
sys1=sya1
sya1=sya0
sya0=sys1
}
//
field.val=sys2*6
//
// x,y sign is not required anymore
if(sya0<0)
{
sya0*=-1
}
if(sya1<0)
{
sya1*=-1
}
//
// Determine field in ring quadrant
// Factor 100000 chosen more or less arbitrarily.
// sys0 = 100000 * tan_a = 100000 * y / x
sys0=100000*sya1
sys0/=sya0
// repeat for all fields
if(sys0>=26794)
{
field.val++
}
if(sys0>=57735)
{
field.val++
}
if(sys0>=99999)
{
field.val++
}
if(sys0>=173205)
{
field.val++
}
if(sys0>=373205)
{
field.val++
}
covx r,va1.txt,0,0
covx g,va2.txt,0,0
covx b,va3.txt,0,0
va1.txt=""
va2.txt=""
va3.txt=""
Touch Release Event
// Adjust field.val "orientation" and offset to match the h value of the colors in the wheel
h=23-field.val// 0 <= field.val <= 23
// h is expected to be 0-6*256 (see hsv2rgb)
h*=6*256
h/=24// Number of fields
//
// s is expected to be 0-256 (see hsv2rgb)
s=ring.val*256
s/=8// Number of rings
// no "value" selectable; fix it to the maximum (matching the colors in the wheels shown.
v=255
click hsv2rgb,0
click rgb888to565,0
//colPreview.bco=rgb565.val
covx r,va1.txt,0,0
covx g,va2.txt,0,0
covx b,va3.txt,0,0
lightsetting.txt="{\"page\": \"light\", \"component\": \"rgb_color\", \"value\": ["+va1.txt+", "+va2.txt+", "+va3.txt+"]}"
printh 92
prints "nspanelevent",0
printh 00
prints lightsetting.txt,0
printh 00
printh FF FF FF
va1.txt=""
va2.txt=""
va3.txt=""
Slider lightslider
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
covx lightslider.val,va1.txt,0,0
light_value.txt=va1.txt+"%"
light_value_2.txt=va1.txt+"%"
lightsetting.txt="{\"page\": \"light\", \"key\": \"brightness_pct\", \"value\": "+va1.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lightsetting.txt,0
printh 00
printh FF FF FF
Slider tempslider
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 500
Lower range limit: 153
Events
Touch Release Event
covx tempslider.val,va1.txt,0,0
temp_value.txt=va1.txt
temp_value_2.txt=va1.txt
lightsetting.txt="{\"page\": \"light\", \"key\": \"color_temp\", \"value\": "+va1.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lightsetting.txt,0
printh 00
printh FF FF FF
Button button_back
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Hotspot hsv2rgb
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
// https://de.wikipedia.org/wiki/HSV-Farbraum#Umrechnung_HSV_in_RGB
// The values range from 0..255 instead of 0..1
// h ranges from 0..(6*256)
if(s>=256)
{
s=255
}else if(s<0)
{
s=0
}
if(v>=256)
{
v=255
}else if(v<0)
{
v=0
}
f=h&0xff
p=256-s
p*=v
p=p>>8// / 256
q=s*f// 0-256*256 = 0-65536
q=65536-q
q*=v
q=q>>16
t=256-f
t*=s
t=65536-t
t*=v
t=t>>16
//
f=h>>8
if(f==1)
{
r=q
g=v
b=p
}else if(f==2)
{
r=p
g=v
b=t
}else if(f==3)
{
r=p
g=q
b=v
}else if(f==4)
{
r=t
g=p
b=v
}else if(f==5)
{
r=v
g=p
b=q
}else
{
r=v
g=t
b=p
}
Hotspot rgb888to565
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
r=r&0xff
g=g&0xff
b=b&0xff
sys1=r>>3
sys2=sys1<<6
sys1=g>>2
sys2+=sys1
sys2=sys2<<5
sys1=b>>3
sys2+=sys1
rgb565.val=sys2
Hotspot light_touch
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
vis light_b_press,1
vis lightslider,1
vis light_value,1
vis temp_value_2,1
// #### OFF Button #####
vis temp_b_press,0
vis color_b_pres,0
// #### OFF Value #####
vis temp_value,0
vis light_value_2,0
// #### OFF Slider #####
vis tempslider,0
vis colorwheel,0
Hotspot temp_touch
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
vis temp_b_press,1
vis tempslider,1
vis temp_value,1
vis light_value_2,1
// #### OFF Button #####
vis light_b_press,0
vis color_b_pres,0
// #### OFF Value #####
vis light_value,0
vis temp_value_2,0
// #### OFF Slider #####
vis lightslider,0
vis colorwheel,0
Hotspot color_touch
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
vis color_b_pres,1
vis colorwheel,1
vis light_value_2,1
// #### OFF Button #####
vis light_b_press,0
vis temp_b_press,0
// #### OFF Value #####
vis light_value,0
vis temp_value,0
vis temp_value_2,0
// #### OFF Slider #####
vis lightslider,0
vis tempslider,0
// #### OFF Color #####
Timer swipestore
Attributes
ID : 21
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 32
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 20
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,422 @@
Page media_player
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (string) lastclick
Attributes
ID : 18
Scope : local
Text :
Max. Text Size: 255
Variable (string) va0
Attributes
ID : 21
Scope : local
Text :
Max. Text Size: 10
Variable (int32) is_muted
Attributes
ID : 22
Scope: local
Value: 0
Variable (int32) prg_current
Attributes
ID : 24
Scope: local
Value: 0
Variable (int32) prg_total
Attributes
ID : 25
Scope: local
Value: 0
Text page_label
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Media Player
Max. Text Size : 100
Text icon_state
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î„—
Max. Text Size : 10
Text vol_text
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 5
Text bt_vol_down
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
if(vol_slider.val>0)
{
vol_slider.val--
covx vol_slider.val,va0.txt,0,0
vol_text.txt=va0.txt+"%"
timer0.en=1
}
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text bt_vol_up
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
if(vol_slider.val<100)
{
vol_slider.val++
covx vol_slider.val,va0.txt,0,0
vol_text.txt=va0.txt+"%"
timer0.en=1
}
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text bt_mute
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
if(is_muted.val==0)
{
va0.txt="true"
}else
{
va0.txt="false"
}
lastclick.txt="{\"page\": \"media_player\", \"key\": \"volume_mute\", \"value\": \""+va0.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text time_current
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text time_total
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text track
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 255
Text artist
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 150
Text bt_prev
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î’­
Max. Text Size : 3
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"media_player\", \"key\": \"media_previous_track\"}",0
printh 00
printh FF FF FF
Text bt_play_pause
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"media_player\", \"key\": \"media_play_pause\"}",0
printh 00
printh FF FF FF
Text bt_next
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î’¬
Max. Text Size : 3
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"media_player\", \"key\": \"media_next_track\"}",0
printh 00
printh FF FF FF
Text bt_on_off
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"media_player\", \"key\": \"toggle\"}",0
printh 00
printh FF FF FF
Progress Bar time_progress
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
Value : 0
Slider vol_slider
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
covx vol_slider.val,va0.txt,0,0
vol_text.txt=va0.txt+"%"
timer0.en=1
Button button_back
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer timer0
Attributes
ID : 20
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer0.en=0
covx vol_slider.val,va0.txt,0,0
vol_text.txt=va0.txt+"%"
lastclick.txt="{\"page\": \"media_player\", \"key\": \"volume_set\", \"value\": "+va0.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Timer prg_timer
Attributes
ID : 23
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
if(prg_current.val<prg_total.val&&prg_total.val>0)
{
prg_current.val++
time_progress.val=100*prg_current.val/prg_total.val
covx prg_current.val,time_current.txt,0,0
}
// Progress - Total
sys0=prg_total.val/3600 //hours
sys2=prg_total.val%3600 //remainder
sys1=sys2/60 //minutes
sys2%=60 //seconds
time_total.txt=""
if(sys0>0)
{
covx sys0,time_total.txt,0,0
time_total.txt+=":"
if(sys1<10)
{
time_total.txt+="0"
}
}
covx sys1,va0.txt,0,0
time_total.txt+=va0.txt+":"
if(sys2<10)
{
time_total.txt+="0"
}
covx sys2,va0.txt,0,0
time_total.txt+=va0.txt
// Progress - Current
sys0=prg_current.val/3600 //hours
sys2=prg_current.val%3600 //remainder
sys1=sys2/60 //minutes
sys2%=60 //seconds
time_current.txt=""
if(sys0>0)
{
covx sys0,time_current.txt,0,0
time_current.txt+=":"
if(sys1<10)
{
time_current.txt+="0"
}
}
covx sys1,va0.txt,0,0
time_current.txt+=va0.txt+":"
if(sys2<10)
{
time_current.txt+="0"
}
covx sys2,va0.txt,0,0
time_current.txt+=va0.txt

View File

@@ -0,0 +1,183 @@
Page notification
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (string) lastclick
Attributes
ID : 5
Scope : local
Text :
Max. Text Size: 100
Text notifi_text01
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 512
Text notifi_label
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Button bt_accept
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î— 
Max. Text Size : 3
Events
Touch Release Event
lastclick.txt="{\"page\": \"notification\", \"component\": \"accept\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Button bt_clear
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…™
Max. Text Size : 3
Events
Touch Release Event
lastclick.txt="{\"page\": \"notification\", \"component\": \"clear\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Timer swipestore
Attributes
ID : 4
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 9
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 3
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,129 @@
Page qrcode
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
sendme
Text qrcode_label
Attributes
ID : 3
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
QR Code qrcode_value
Attributes
ID : 4
Scope : global
Dragging : 0
Send Component ID: on press and release
Text :
Max. Text Size : 75
Button button_back
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 6
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,101 @@
Page screensaver
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
sendme
dim=brightness_sleep
Touch Release Event
page back_page_id
Text text
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 1000
Events
Touch Press Event
page back_page_id
Timer swipestore
Attributes
ID : 3
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap wakeup
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
page back_page_id
TouchCap swipe
Attributes
ID : 2
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx&&api==1)
{
page buttonpage04
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2&&api==1)
{
page buttonpage01
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100&&api==1)
{
page buttonpage02
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100&&api==1)
{
page buttonpage03
}
}

View File

@@ -0,0 +1,417 @@
Page settings
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
sendme
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
vis lbl_sleep,0
vis bt_sleep,0
Text bright_text
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 80%
Max. Text Size : 4
Text dim_text
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 20%
Max. Text Size : 4
Text lbl_reboot
Attributes
ID : 5
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Reboot
Max. Text Size : 25
Events
Touch Press Event
tm_boot_page.en=1
Touch Release Event
tm_boot_page.en=0
Text lbl_sleep
Attributes
ID : 6
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Sleep mode
Max. Text Size : 25
Text lbl_bright
Attributes
ID : 7
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Bright
Max. Text Size : 25
Text lbl_dim
Attributes
ID : 8
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Dim
Max. Text Size : 25
Text lbl_brightness
Attributes
ID : 16
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Brightness
Max. Text Size : 25
Text t0
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î–§
Max. Text Size : 10
Events
Touch Release Event
if(brightslider.val<100)
{
brightslider.val++
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
}
Text t1
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î–§
Max. Text Size : 10
Events
Touch Release Event
if(dimslider.val<100)
{
dimslider.val++
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
}
Text t2
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î–§
Max. Text Size : 10
Events
Touch Release Event
if(dimslider.val>0)
{
dimslider.val--
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
}
Text t3
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î–§
Max. Text Size : 10
Events
Touch Release Event
if(brightslider.val>0)
{
brightslider.val--
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
}
Slider brightslider
Attributes
ID : 1
Scope : global
Dragging : 0
Send Component ID: on press and release
Position : 80
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
if(tm_bright.en==0)
{
tm_bright.en=1
}
Slider dimslider
Attributes
ID : 2
Scope : global
Dragging : 0
Send Component ID: on press and release
Position : 20
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
if(tm_dim.en==0)
{
tm_dim.en=1
}
Button button_back
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Dual-state Button bt_reboot
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Dual-state Button bt_sleep
Attributes
ID : 10
Scope : global
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Hotspot bt_bright_down
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
if(brightslider.val>0)
{
brightslider.val--
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
}
Hotspot bt_bright_up
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
if(brightslider.val<100)
{
brightslider.val++
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
}
Hotspot bt_dim_down
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
if(dimslider.val>0)
{
dimslider.val--
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
}
Hotspot bt_dim_up
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Release Event
if(dimslider.val<100)
{
dimslider.val++
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
}
Timer wakeup_timer
Attributes
ID : 21
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer tm_bright
Attributes
ID : 22
Scope : local
Period (ms): 100
Enabled : no
Events
Timer Event
covx brightslider.val,bright_text.txt,0,0
bright_text.txt+="%"
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
tm_bright.en=0
Timer tm_dim
Attributes
ID : 23
Scope : local
Period (ms): 100
Enabled : no
Events
Timer Event
covx dimslider.val,dim_text.txt,0,0
dim_text.txt+="%"
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
tm_dim.en=0
Timer tm_boot_page
Attributes
ID : 24
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
page boot

View File

@@ -0,0 +1,263 @@
Page weather01
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ●○○○○
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather05
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather02
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,263 @@
Page weather02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○●○○○
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather03
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,263 @@
Page weather03
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○●○○
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather02
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather04
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,263 @@
Page weather04
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○○●○
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather03
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather05
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,263 @@
Page weather05
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Text day
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 20
Text date
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text temperature
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value05
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value04
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value02
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value03
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 15
Text value01_icon
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03_icon
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_index
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○○○●
Max. Text Size : 15
Picture weather_icon
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: on press and release
Button button_back
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer wakeup_timer
Attributes
ID : 19
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page weather04
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page weather01
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,21 @@
Program.s
//The following code is only run once when power on, and is generally used for global variable definition and power on initialization data
int sys0=0,sys1=0,sys2=0,swipex=0,swipey=0,swipex2=0,swipey2=0,swipec=0,swipec2=0,swipedx=100,swipedy=100 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement
int r=0,g=0,b=0
int h=0,s=0,v=0
int p=0,q=0,t=0,f=0
int back_page_id=0
int dimdelta=0
int api=0 // 0 = disconnected from HA, 1 = connected to HA
int is_entities=0,is_qrcode=0,is_notification=0
int brightness=100,brightness_dim=40,brightness_sleep=0
int display_mode=3 // 1 = EU, 2 = US, 3 = US landscape, 4 = blank
int charset=2 // 1 = International (original), 2 = CJK
//bauds=115200//Configure baudrate
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
if(display_mode==1)
{
lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version
}
page 8//Power on start page boot

View File

@@ -0,0 +1,411 @@
Page alarm
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis bt_home,0
vis bt_away,0
vis bt_night,0
vis bt_vacat,0
vis bt_bypass,0
}
Variable (string) lastclick
Attributes
ID : 3
Scope : local
Text :
Max. Text Size: 255
Variable (string) code_format
Attributes
ID : 28
Scope : local
Text :
Max. Text Size: 15
Variable (string) code_arm_req
Attributes
ID : 29
Scope : local
Text :
Max. Text Size: 1
Text page_label
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Alarm Control Panel
Max. Text Size : 100
Text icon_state
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : î’—
Max. Text Size : 10
Text bt_home_text
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Home
Max. Text Size : 22
Text bt_away_text
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Away
Max. Text Size : 22
Text bt_night_text
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Night
Max. Text Size : 22
Text bt_vacat_text
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Vacation
Max. Text Size : 22
Text bt_bypass_text
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Bypass
Max. Text Size : 22
Text bt_disarm_text
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Disarm
Max. Text Size : 22
Text bt_home_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_away_icon
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_night_icon
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : ï §
Max. Text Size : 3
Text bt_vacat_icon
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_bypass_icon
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Text bt_disarm_icon
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 3
Picture bt_home_pic
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_away_pic
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_night_pic
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_vacat_pic
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_bypass_pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_disarm_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID: disabled
Button button_back
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Hotspot bt_home
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_home_pic.pic=44
bt_home_text.bco=65024
bt_home_text.pco=0
bt_home_icon.bco=65024
bt_home_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"home\", \"value\": \"click\", \"mui\": \""+bt_home_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_away
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_away_pic.pic=44
bt_away_text.bco=65024
bt_away_text.pco=0
bt_away_icon.bco=65024
bt_away_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"away\", \"value\": \"click\", \"mui\": \""+bt_away_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_night
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_night_pic.pic=44
bt_night_text.bco=65024
bt_night_text.pco=0
bt_night_icon.bco=65024
bt_night_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"night\", \"value\": \"click\", \"mui\": \""+bt_night_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_vacat
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_vacat_pic.pic=44
bt_vacat_text.bco=65024
bt_vacat_text.pco=0
bt_vacat_icon.bco=65024
bt_vacat_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"vacation\", \"value\": \"click\", \"mui\": \""+bt_vacat_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_bypass
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_bypass_pic.pic=44
bt_bypass_text.bco=65024
bt_bypass_text.pco=0
bt_bypass_icon.bco=65024
bt_bypass_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"bypass\", \"value\": \"click\", \"mui\": \""+bt_bypass_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_disarm
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
bt_disarm_pic.pic=44
bt_disarm_text.bco=65024
bt_disarm_text.pco=0
bt_disarm_icon.bco=65024
bt_disarm_icon.pco=0
Touch Release Event
lastclick.txt="{\"page\": \"alarm\", \"key\": \"disarm\", \"value\": \"click\", \"mui\": \""+bt_disarm_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Timer wakeup_timer
Attributes
ID : 31
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,200 @@
Page boot
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
sendme
dim=100
vis bt_reboot,0
sendme
dim=100
vis bt_reboot,0
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
Page Exit Event
dim=0
Variable (int32) counter
Attributes
ID : 11
Scope: local
Value: 0
Variable (string) aux1
Attributes
ID : 12
Scope : local
Text :
Max. Text Size: 10
Text ip_addr
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Initializing...
Max. Text Size : 15
Text t0
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Please wait...
Max. Text Size : 15
Text t1
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : The process can take several seconds!
Max. Text Size : 50
Text tft_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : TFT:
Max. Text Size : 4
Text esph_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ESPHome:
Max. Text Size : 8
Text bluep_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Blueprint:
Max. Text Size : 10
Text tft_version
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 4.2beta.1
Max. Text Size : 9
Text esph_version
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 9
Text bluep_version
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 9
Text baud_rate
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text framework
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Dual-state Button bt_reboot
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : Reboot
Max. Text Size : 6
Timer tm_esphome
Attributes
ID : 13
Scope : local
Period (ms): 30000
Enabled : yes
Events
Timer Event
counter.val++
if(counter.val>60)
{
rest
}
sendme
printh 91
prints "display_mode",0
printh 00
prints display_mode,0
printh FF FF FF
printh 91
prints "charset",0
printh 00
prints charset,0
printh FF FF FF
printh 92
prints "tft_version",0
printh 00
prints tft_version.txt,0
printh 00
printh FF FF FF
covx counter.val,aux1.txt,0,0
esph_version.txt="Retry #"+aux1.txt
sys0=counter.val%10
if(sys0==0)
{
baud=115200
}
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"

View File

@@ -0,0 +1,792 @@
Page buttonpage01
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage01
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ●○○○
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page home
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage02
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,792 @@
Page buttonpage02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage02
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○●○○
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage03
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,792 @@
Page buttonpage03
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage03
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○●○
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage02
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage04
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,792 @@
Page buttonpage04
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
vis 255,0
vis button_back,1
vis page_index,1
}
Variable (string) lastclick
Attributes
ID : 4
Scope : local
Text :
Max. Text Size: 100
Variable (string) click_comp
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 8
Variable (string) page_name
Attributes
ID : 9
Scope : local
Text : buttonpage04
Max. Text Size: 12
Variable (int32) confirm
Attributes
ID : 11
Scope: local
Value: 0
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text page_index
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : ○○○●
Max. Text Size : 12
Text button01pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button02pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button03pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button04pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button05pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button06pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button07pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button08pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 0
Text button01text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button02text
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button03text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button04text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button05text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button06text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button07text
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button08text
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 22
Text button01icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02bri
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03bri
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04bri
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05bri
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06bri
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07bri
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08bri
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Button button_back
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button01"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&1
if(sys0>0)
{
confirm.body.txt=button01text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button02
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button02"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&2
if(sys0>0)
{
confirm.body.txt=button02text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button03
Attributes
ID : 46
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button03"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&4
if(sys0>0)
{
confirm.body.txt=button03text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button04
Attributes
ID : 47
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button04"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&8
if(sys0>0)
{
confirm.body.txt=button04text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button05
Attributes
ID : 48
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button05"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&16
if(sys0>0)
{
confirm.body.txt=button05text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button06
Attributes
ID : 49
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button06"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&32
if(sys0>0)
{
confirm.body.txt=button06text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button07
Attributes
ID : 50
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button07"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&64
if(sys0>0)
{
confirm.body.txt=button07text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Hotspot button08
Attributes
ID : 51
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
sys0=confirm.val&128
if(sys0>0)
{
confirm.body.txt=button08text.txt
confirm.page_id.val=dp
confirm.page_name.txt=page_name.txt
confirm.component.txt=click_comp.txt
page confirm
}else
{
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer click_timer
Attributes
ID : 8
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 10
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage03
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page home
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,859 @@
Page climate
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==1||embedded.val==1)
{
sendme
vis target_icon,0
vis target_high,0
vis target_low,0
vis current_temp,0
vis climateslider,0
vis slider_high,0
vis slider_low,0
vis button01,0
vis button02,0
vis button03,0
vis button04,0
vis button05,0
vis button06,0
vis button07,0
}else
{
page home
}
Page Exit Event
covx embedded.val,va2.txt,0,0
if(timer0.en==1)
{
timer0.en=0
covx temp_number0.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"temperature\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
}
if(timer1.en==1)
{
timer1.en=0
covx temp_number1.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_high\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
}
if(timer2.en==1)
{
timer2.en=0
covx temp_number2.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_low\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
}
Variable (string) va1
Attributes
ID : 24
Scope : local
Text :
Max. Text Size: 10
Variable (string) climatesetting
Attributes
ID : 25
Scope : local
Text :
Max. Text Size: 255
Variable (string) lastclick
Attributes
ID : 26
Scope : local
Text :
Max. Text Size: 255
Variable (int32) temp_offset
Attributes
ID : 28
Scope: local
Value: 0
Variable (int32) temp_step
Attributes
ID : 29
Scope: local
Value: 0
Variable (int32) temp_number0
Attributes
ID : 33
Scope: local
Value: 0
Variable (int32) va0
Attributes
ID : 34
Scope: local
Value: 0
Variable (int32) embedded
Attributes
ID : 35
Scope: global
Value: 0
Variable (string) va2
Attributes
ID : 36
Scope : local
Text :
Max. Text Size: 10
Variable (string) click_comp
Attributes
ID : 38
Scope : local
Text :
Max. Text Size: 8
Variable (int32) active_slider
Attributes
ID : 42
Scope: local
Value: 1
Variable (int32) is_temp_range
Attributes
ID : 44
Scope: local
Value: 0
Variable (int32) temp_number1
Attributes
ID : 48
Scope: local
Value: 0
Variable (int32) temp_number2
Attributes
ID : 49
Scope: local
Value: 0
Text current_temp
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 25
Text page_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text target_icon
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value01_icon
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value01
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text value02_icon
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text value03_icon
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text value04_icon
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 6
Text button01
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"auto\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button02
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat_cool\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button03
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button04
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"cool\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button05
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"dry\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button06
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"fan_only\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button07
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 
Max. Text Size : 3
Events
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"off\", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Text button08
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Events
Touch Press Event
click_comp.txt="button08"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"climate\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text button09
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Events
Touch Press Event
click_comp.txt="button09"
click_timer.en=1
Touch Release Event
if(click_timer.en==1)
{
click_timer.en=0
lastclick.txt="{\"page\": \"climate\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}
Text target_high
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text target_low
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider slider_high
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 20
Upper range limit: 40
Lower range limit: 0
Events
Touch Release Event
active_slider.val=1
temp_number1.val=slider_high.val*temp_step.val
temp_number1.val+=temp_offset.val
va0.val=temp_number1.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number1.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
timer1.en=1
Slider slider_low
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 20
Upper range limit: 40
Lower range limit: 0
Events
Touch Release Event
active_slider.val=2
temp_number2.val=slider_low.val*temp_step.val
temp_number2.val+=temp_offset.val
va0.val=temp_number2.val/10
covx va0.val,target_low.txt,0,0
va0.val=temp_number2.val%10
covx va0.val,va1.txt,0,0
target_low.txt+="."+va1.txt
timer2.en=1
Slider climateslider
Attributes
ID : 45
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 20
Upper range limit: 40
Lower range limit: 0
Events
Touch Release Event
active_slider.val=0
temp_number0.val=climateslider.val*temp_step.val
temp_number0.val+=temp_offset.val
va0.val=temp_number0.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number0.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
timer0.en=1
Button button_back
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Hotspot decrease_temp
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
if(active_slider.val==0)
{
if(climateslider.val>0)
{
climateslider.val--
temp_number0.val=climateslider.val*temp_step.val
temp_number0.val+=temp_offset.val
va0.val=temp_number0.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number0.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==1)
{
if(slider_high.val>0)
{
slider_high.val--
temp_number1.val=slider_high.val*temp_step.val
temp_number1.val+=temp_offset.val
va0.val=temp_number1.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number1.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==2)
{
if(slider_low.val>0)
{
slider_low.val--
temp_number2.val=slider_low.val*temp_step.val
temp_number2.val+=temp_offset.val
va0.val=temp_number2.val/10
covx va0.val,target_low.txt,0,0
va0.val=temp_number2.val%10
covx va0.val,va1.txt,0,0
target_low.txt+="."+va1.txt
}
}
Touch Release Event
if(active_slider.val==0)
{
timer0.en=1
}else if(active_slider.val==1)
{
timer1.en=1
}else if(active_slider.val==2)
{
timer2.en=1
}
Hotspot increase_temp
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
if(active_slider.val==0)
{
if(climateslider.val<climateslider.maxval)
{
climateslider.val++
temp_number0.val=climateslider.val*temp_step.val
temp_number0.val+=temp_offset.val
va0.val=temp_number0.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number0.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==1)
{
if(slider_high.val<slider_high.maxval)
{
slider_high.val++
temp_number1.val=slider_high.val*temp_step.val
temp_number1.val+=temp_offset.val
va0.val=temp_number1.val/10
covx va0.val,target_high.txt,0,0
va0.val=temp_number1.val%10
covx va0.val,va1.txt,0,0
target_high.txt+="."+va1.txt
}
}else if(active_slider.val==2)
{
if(slider_low.val<slider_low.maxval)
{
slider_low.val++
temp_number2.val=slider_low.val*temp_step.val
temp_number2.val+=temp_offset.val
va0.val=temp_number2.val/10
covx va0.val,target_low.txt,0,0
va0.val=temp_number2.val%10
covx va0.val,va1.txt,0,0
target_low.txt+="."+va1.txt
}
}
Touch Release Event
if(active_slider.val==0)
{
timer0.en=1
}else if(active_slider.val==1)
{
timer1.en=1
}else if(active_slider.val==2)
{
timer2.en=1
}
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
Timer timer0
Attributes
ID : 27
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer0.en=0
covx embedded.val,va2.txt,0,0
covx temp_number0.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"temperature\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
Timer click_timer
Attributes
ID : 39
Scope : local
Period (ms): 800
Enabled : no
Events
Timer Event
lastclick.txt="{\"page\": \"climate\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
click_timer.en=0
Timer wakeup_timer
Attributes
ID : 40
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}
Timer timer1
Attributes
ID : 46
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer1.en=0
covx embedded.val,va2.txt,0,0
covx temp_number1.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_high\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
Timer timer2
Attributes
ID : 47
Scope : local
Period (ms): 1000
Enabled : no
Events
Timer Event
timer2.en=0
covx embedded.val,va2.txt,0,0
covx temp_number2.val,va1.txt,0,0
climatesetting.txt="{\"page\": \"climate\", \"key\": \"target_temp_low\", \"value\": "+va1.txt+", \"embedded\": "+va2.txt+"}"
printh 92
prints "localevent",0
printh 00
prints climatesetting.txt,0
printh 00
printh FF FF FF
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,151 @@
Page confirm
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (int32) page_id
Attributes
ID : 3
Scope: global
Value: 0
Variable (string) aux
Attributes
ID : 5
Scope : local
Text :
Max. Text Size: 255
Variable (string) page_name
Attributes
ID : 9
Scope : global
Text :
Max. Text Size: 12
Variable (string) component
Attributes
ID : 10
Scope : global
Text :
Max. Text Size: 10
Text t0
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text title
Attributes
ID : 4
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Please confirm
Max. Text Size : 100
Text body
Attributes
ID : 8
Scope : global
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : Please confirm
Max. Text Size : 255
Button bclose
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 10
Events
Touch Release Event
page page_id.val
Button bt_accept
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î— 
Max. Text Size : 3
Events
Touch Release Event
aux.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+component.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints aux.txt,0
printh 00
printh FF FF FF
page page_id.val
Button bt_clear
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…™
Max. Text Size : 10
Events
Touch Release Event
page page_id.val
Timer wakeup_timer
Attributes
ID : 11
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

View File

@@ -0,0 +1,202 @@
Page cover
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : on press and release
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
if(api==0)
{
page home
}else
{
sendme
}
Variable (string) va1
Attributes
ID : 7
Scope : local
Text : newtxt
Max. Text Size: 10
Variable (string) coversetting
Attributes
ID : 11
Scope : local
Text :
Max. Text Size: 255
Text battery_value
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text cover_value
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text page_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 100
Text icon_state
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Text battery_icon
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text :
Max. Text Size : 10
Slider coverslider
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: on press and release
Position : 0
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
covx coverslider.val,va1.txt,0,0
cover_value.txt=va1.txt+"%"
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
printh 92
prints "localevent",0
printh 00
prints coversetting.txt,0
printh 00
printh FF FF FF
Button cover_open
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Button cover_close
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : ï„›
Max. Text Size : 3
Events
Touch Press Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Button cover_stop
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : 
Max. Text Size : 3
Events
Touch Press Event
printh 92
prints "localevent",0
printh 00
prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Button button_back
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text : î…˜
Max. Text Size : 3
Events
Touch Press Event
page back_page_id
Timer wakeup_timer
Attributes
ID : 13
Scope : local
Period (ms): 100
Enabled : yes
Events
Timer Event
if(dim<brightness)
{
dimdelta=brightness-dim
dimdelta/=10
if(dimdelta<1)
{
dimdelta=1
}
dim+=dimdelta
}else
{
wakeup_timer.en=0
}

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