Compare commits
18 Commits
bdd1726328
...
c57e4165d0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c57e4165d0 | ||
|
|
be1c8a264e | ||
|
|
f6d8d069cc | ||
|
|
2909ce6cc8 | ||
|
|
ba6f0264a6 | ||
|
|
15e1976715 | ||
|
|
88bb6ff176 | ||
|
|
cbdc47170f | ||
|
|
5cb2a193c6 | ||
|
|
cf4d0f9393 | ||
|
|
a0a17bcfa1 | ||
|
|
ae40f651be | ||
|
|
3df926cfc1 | ||
|
|
304233218a | ||
|
|
642c680cae | ||
|
|
da4b64ed95 | ||
|
|
7d5b2b8d30 | ||
|
|
019a882fe9 |
12
.github/workflows/validate_esphome.yml
vendored
12
.github/workflows/validate_esphome.yml
vendored
@@ -3,10 +3,12 @@ name: Validate ESPHome
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "nspanel_esphome*.yaml"
|
- "nspanel_esphome.yaml"
|
||||||
|
- "advanced/esphome/nspanel_esphome*.yaml"
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "nspanel_esphome*.yaml"
|
- "nspanel_esphome.yaml"
|
||||||
|
- "advanced/esphome/nspanel_esphome*.yaml"
|
||||||
#schedule:
|
#schedule:
|
||||||
# - cron: "0 0 * * *"
|
# - cron: "0 0 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -25,11 +27,11 @@ jobs:
|
|||||||
- name: Validate nspanel_esphome.yaml
|
- name: Validate nspanel_esphome.yaml
|
||||||
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome.yaml
|
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome.yaml
|
||||||
- name: Validate nspanel_esphome_advanced.yaml
|
- name: Validate nspanel_esphome_advanced.yaml
|
||||||
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_advanced.yaml
|
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
- name: Validate nspanel_esphome_addon_climate_cool.yaml
|
- name: Validate nspanel_esphome_addon_climate_cool.yaml
|
||||||
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_addon_climate_cool.yaml
|
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
|
||||||
- name: Validate nspanel_esphome_addon_climate_heat.yaml
|
- name: Validate nspanel_esphome_addon_climate_heat.yaml
|
||||||
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_addon_climate_heat.yaml
|
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
|
|
||||||
build_core:
|
build_core:
|
||||||
name: Core
|
name: Core
|
||||||
|
|||||||
33
.github/workflows/validate_esphome_beta.yml
vendored
33
.github/workflows/validate_esphome_beta.yml
vendored
@@ -4,7 +4,8 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "nspanel_esphome*.yaml"
|
- "nspanel_esphome.yaml"
|
||||||
|
- "advanced/esphome/nspanel_esphome*.yaml"
|
||||||
#schedule:
|
#schedule:
|
||||||
#- cron: "0 0 * * *"
|
#- cron: "0 0 * * *"
|
||||||
|
|
||||||
@@ -22,11 +23,11 @@ jobs:
|
|||||||
- name: Validate nspanel_esphome.yaml
|
- name: Validate nspanel_esphome.yaml
|
||||||
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome.yaml
|
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome.yaml
|
||||||
- name: Validate nspanel_esphome_advanced.yaml
|
- name: Validate nspanel_esphome_advanced.yaml
|
||||||
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_advanced.yaml
|
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
- name: Validate nspanel_esphome_addon_climate_cool.yaml
|
- name: Validate nspanel_esphome_addon_climate_cool.yaml
|
||||||
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_addon_climate_cool.yaml
|
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
|
||||||
- name: Validate nspanel_esphome_addon_climate_heat.yaml
|
- name: Validate nspanel_esphome_addon_climate_heat.yaml
|
||||||
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_addon_climate_heat.yaml
|
run: yamllint -c "./.yamllint/rules.yml" advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
|
|
||||||
build_core:
|
build_core:
|
||||||
name: Core
|
name: Core
|
||||||
@@ -108,18 +109,18 @@ jobs:
|
|||||||
yaml_file: "./.test/esphome_advanced_climate_cool_esp_idf.yaml"
|
yaml_file: "./.test/esphome_advanced_climate_cool_esp_idf.yaml"
|
||||||
version: beta
|
version: beta
|
||||||
|
|
||||||
build_climate_cool_advanced_esp_idf5:
|
#build_climate_cool_advanced_esp_idf5:
|
||||||
name: esp-idf v5 & Bluetooth proxy
|
# name: esp-idf v5 & Bluetooth proxy
|
||||||
runs-on: "ubuntu-latest"
|
# runs-on: "ubuntu-latest"
|
||||||
needs:
|
# needs:
|
||||||
- build_climate_cool_advanced_esp_idf
|
# - build_climate_cool_advanced_esp_idf
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4.1.0
|
# - uses: actions/checkout@v4.1.0
|
||||||
- name: Build core+advanced+climate_cool+esp_idf5
|
# - name: Build core+advanced+climate_cool+esp_idf5
|
||||||
uses: esphome/build-action@v1.8.0
|
# uses: esphome/build-action@v1.8.0
|
||||||
with:
|
# with:
|
||||||
yaml_file: "./.test/esphome_advanced_climate_cool_esp_idf5.yaml"
|
# yaml_file: "./.test/esphome_advanced_climate_cool_esp_idf5.yaml"
|
||||||
version: beta
|
# version: beta
|
||||||
|
|
||||||
build_climate_heat_advanced_customization:
|
build_climate_heat_advanced_customization:
|
||||||
name: Customizations
|
name: Customizations
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ substitutions:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include ../nspanel_esphome.yaml # Core package
|
core_package: !include ../nspanel_esphome.yaml # Core package
|
||||||
advanced_package: !include ../nspanel_esphome_advanced.yaml
|
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
#addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
|
#addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ substitutions:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include ../nspanel_esphome.yaml # Core package
|
core_package: !include ../nspanel_esphome.yaml # Core package
|
||||||
advanced_package: !include ../nspanel_esphome_advanced.yaml
|
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
|
addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
framework:
|
framework:
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ substitutions:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include ../nspanel_esphome.yaml # Core package
|
core_package: !include ../nspanel_esphome.yaml # Core package
|
||||||
advanced_package: !include ../nspanel_esphome_advanced.yaml
|
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
|
addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
framework:
|
framework:
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ substitutions:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include ../nspanel_esphome.yaml # Core package
|
core_package: !include ../nspanel_esphome.yaml # Core package
|
||||||
advanced_package: !include ../nspanel_esphome_advanced.yaml
|
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
#addon_climate_cold: !include ../nspanel_esphome_addon_climate_cold.yaml
|
#addon_climate_cold: !include ../advanced/esphome/nspanel_esphome_addon_climate_cold.yaml
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ substitutions:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include ../nspanel_esphome.yaml # Core package
|
core_package: !include ../nspanel_esphome.yaml # Core package
|
||||||
advanced_package: !include ../nspanel_esphome_advanced.yaml
|
advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
#addon_climate_cold: !include ../nspanel_esphome_addon_climate_cold.yaml
|
#addon_climate_cold: !include ../advanced/esphome/nspanel_esphome_addon_climate_cold.yaml
|
||||||
|
|
||||||
##### Customizations from Wiki #####
|
##### Customizations from Wiki #####
|
||||||
api:
|
api:
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ substitutions:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include ../nspanel_esphome.yaml # Core package
|
core_package: !include ../nspanel_esphome.yaml # Core package
|
||||||
#advanced_package: !include ../nspanel_esphome_advanced.yaml
|
#advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
|
addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ substitutions:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include ../nspanel_esphome.yaml # Core package
|
core_package: !include ../nspanel_esphome.yaml # Core package
|
||||||
#advanced_package: !include ../nspanel_esphome_advanced.yaml
|
#advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
#addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
|
#addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ substitutions:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include ../nspanel_esphome.yaml # Core package
|
core_package: !include ../nspanel_esphome.yaml # Core package
|
||||||
#advanced_package: !include ../nspanel_esphome_advanced.yaml
|
#advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
#addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
#addon_climate_heat: !include ../advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
|
||||||
#addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
|
#addon_climate_cool: !include ../advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ So at this release we concentrated on cleaning up de code everywhere and shave s
|
|||||||
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.
|
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:
|
### Files that need to be reloaded:
|
||||||
1. nspanel_eu.tft, nspanel_us.tft or nspanel_us_land.tft - v4.1.2
|
1. nspanel_eu.tft, nspanel_us.tft or nspanel_us_land.tft - v4.1.4
|
||||||
2. nspanel_esphome.yaml - v4.1.2
|
2. nspanel_esphome.yaml - v4.1.4
|
||||||
3. nspanel_blueprint.yaml - v4.1.2
|
3. nspanel_blueprint.yaml - v4.1.4
|
||||||
|
|
||||||
####
|
####
|
||||||
|
|
||||||
@@ -103,6 +103,10 @@ packages:
|
|||||||
- Upload TFT remove dependency to from ESPHome Nextion component
|
- Upload TFT remove dependency to from ESPHome Nextion component
|
||||||
- Fix light icon color on buttons
|
- Fix light icon color on buttons
|
||||||
- Fix climate page not updating properly
|
- 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
|
||||||
|
|
||||||
|
|
||||||
## Details of noteworthy changes
|
## Details of noteworthy changes
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
####################################################################################################
|
#####################################################################################################
|
||||||
##### NSPanel ESPHome Add-on for Climate control - Shared - This will be called by heat/cool #####
|
##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint #####
|
||||||
##### Add-on for https://github.com/Blackymas/NSPanel_HA_Blueprint #####
|
##### ESPHome Add-on for Climate control - Shared - This will be called by heat/cool #####
|
||||||
####################################################################################################
|
##### 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:
|
substitutions:
|
||||||
### Local thermostat defaults ###
|
### Local thermostat defaults ###
|
||||||
37
advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
Normal file
37
advanced/esphome/nspanel_esphome_addon_climate_cool.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
#####################################################################################################
|
||||||
|
##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint #####
|
||||||
|
##### ESPHome Add-on for Climate control - Cool #####
|
||||||
|
##### 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
|
||||||
|
cooler_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: "15"
|
||||||
|
temp_max: "45"
|
||||||
|
|
||||||
|
##### DO NOT CHANGE THIS #####
|
||||||
|
addon_climate_cool: "true"
|
||||||
|
addon_climate_heat: "false"
|
||||||
|
##############################
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- id: !extend thermostat_embedded
|
||||||
|
min_cooling_off_time: ${min_off_time}s
|
||||||
|
min_cooling_run_time: ${min_run_time}s
|
||||||
|
cool_action:
|
||||||
|
- switch.turn_on: relay_${cooler_relay}
|
||||||
|
preset:
|
||||||
|
- name: "Off"
|
||||||
|
default_target_temperature_high: ${temp_min} ${temp_units}
|
||||||
|
mode: "off"
|
||||||
|
- name: Home
|
||||||
|
default_target_temperature_high: 21 ${temp_units}
|
||||||
|
|
||||||
|
packages:
|
||||||
|
core_package: !include nspanel_esphome_addon_climate_base.yaml
|
||||||
37
advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
Normal file
37
advanced/esphome/nspanel_esphome_addon_climate_heat.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
#####################################################################################################
|
||||||
|
##### 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
|
||||||
@@ -4,6 +4,8 @@
|
|||||||
##### PLEASE only make changes if it is necessary and also the required knowledge is available. #####
|
##### 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. #####
|
##### For normal use with the Blueprint, no changes are necessary. #####
|
||||||
#####################################################################################################
|
#####################################################################################################
|
||||||
|
##### ATTENTION: This will add advanced elements to the core system and requires the core part. #####
|
||||||
|
#####################################################################################################
|
||||||
|
|
||||||
substitutions:
|
substitutions:
|
||||||
|
|
||||||
@@ -138,20 +140,6 @@ script:
|
|||||||
static const char *const TAG = "script.upload_tft";
|
static const char *const TAG = "script.upload_tft";
|
||||||
ESP_LOGD(TAG, "Starting...");
|
ESP_LOGD(TAG, "Starting...");
|
||||||
|
|
||||||
nextion_init->publish_state(false);
|
|
||||||
disp1->set_backlight_brightness(1);
|
|
||||||
disp1->hide_component("255");
|
|
||||||
stop_all->execute();
|
|
||||||
|
|
||||||
std::vector<uint8_t> buffer_;
|
|
||||||
|
|
||||||
bool is_updating_ = false;
|
|
||||||
|
|
||||||
bool upload_first_chunk_sent_ = false;
|
|
||||||
|
|
||||||
int content_length_ = 0;
|
|
||||||
int tft_size_ = 0;
|
|
||||||
|
|
||||||
auto delay_seconds_ = [](int seconds) {
|
auto delay_seconds_ = [](int seconds) {
|
||||||
ESP_LOGD(TAG, "Wait %i seconds", seconds);
|
ESP_LOGD(TAG, "Wait %i seconds", seconds);
|
||||||
for (int i = 0; i < (seconds*4); i++) {
|
for (int i = 0; i < (seconds*4); i++) {
|
||||||
@@ -164,6 +152,54 @@ script:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::string framework = "Unknown";
|
||||||
|
#ifdef ARDUINO
|
||||||
|
framework = "Arduino";
|
||||||
|
#elif defined(ESP_PLATFORM)
|
||||||
|
framework = "ESP-IDF";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
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...");
|
||||||
|
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);
|
||||||
|
|
||||||
|
std::vector<uint8_t> buffer_;
|
||||||
|
|
||||||
|
bool is_updating_ = false;
|
||||||
|
|
||||||
|
bool upload_first_chunk_sent_ = false;
|
||||||
|
|
||||||
|
int content_length_ = 0;
|
||||||
|
int tft_size_ = 0;
|
||||||
|
|
||||||
|
auto set_baud_rate_ = [](int baud_rate) {
|
||||||
|
#ifdef USE_ARDUINO
|
||||||
|
auto *uart = reinterpret_cast<uart::ESP32ArduinoUARTComponent *>(tf_uart);
|
||||||
|
#endif
|
||||||
|
#ifdef USE_ESP_IDF
|
||||||
|
auto *uart = reinterpret_cast<uart::IDFUARTComponent *>(tf_uart);
|
||||||
|
#endif
|
||||||
|
uart->set_baud_rate(baud_rate);
|
||||||
|
uart->setup();
|
||||||
|
};
|
||||||
|
|
||||||
auto send_nextion_command = [](const std::string &command) -> bool
|
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 = "script.upload_tft.send_nextion_command";
|
||||||
@@ -363,8 +399,8 @@ script:
|
|||||||
{
|
{
|
||||||
static const char *const TAG = "script.upload_tft.upload_tft_arduino";
|
static const char *const TAG = "script.upload_tft.upload_tft_arduino";
|
||||||
ESP_LOGD(TAG, "Nextion TFT upload requested");
|
ESP_LOGD(TAG, "Nextion TFT upload requested");
|
||||||
ESP_LOGD(TAG, "url: %s", url.c_str());
|
ESP_LOGD(TAG, " url: %s", url.c_str());
|
||||||
ESP_LOGD(TAG, "baud_rate: %i", update_baud_rate_);
|
ESP_LOGD(TAG, " baud_rate: %i", update_baud_rate_);
|
||||||
|
|
||||||
if (is_updating_) {
|
if (is_updating_) {
|
||||||
ESP_LOGD(TAG, "Currently updating");
|
ESP_LOGD(TAG, "Currently updating");
|
||||||
@@ -440,8 +476,9 @@ script:
|
|||||||
// Tells the Nextion the content length of the tft file and baud rate it will be sent at
|
// Tells the Nextion the content length of the tft file and baud rate it will be sent at
|
||||||
// Once the Nextion accepts the command it will wait until the file is successfully uploaded
|
// Once the Nextion accepts the command it will wait until the file is successfully uploaded
|
||||||
// If it fails for any reason a power cycle of the display will be needed
|
// If it fails for any reason a power cycle of the display will be needed
|
||||||
sprintf(command, "whmi-wris %d,%" PRIu32 ",1", content_length_, update_baud_rate_);
|
sprintf(command, "whmi-wris %d,%d,1", content_length_, update_baud_rate_);
|
||||||
|
|
||||||
|
ESP_LOGD(TAG, "Clear serial receive buffer: %d", id(tf_uart).available());
|
||||||
// Clear serial receive buffer
|
// Clear serial receive buffer
|
||||||
uint8_t d;
|
uint8_t d;
|
||||||
while (id(tf_uart).available()) {
|
while (id(tf_uart).available()) {
|
||||||
@@ -450,16 +487,16 @@ script:
|
|||||||
|
|
||||||
send_nextion_command(command);
|
send_nextion_command(command);
|
||||||
|
|
||||||
if (update_baud_rate_ != id(tf_uart).get_baud_rate())
|
if (update_baud_rate_ != id(tf_uart).get_baud_rate()) {
|
||||||
{
|
set_baud_rate_(update_baud_rate_);
|
||||||
id(tf_uart).set_baud_rate(update_baud_rate_);
|
//id(tf_uart).set_baud_rate(update_baud_rate_);
|
||||||
id(tf_uart).setup();
|
//id(tf_uart).setup();
|
||||||
|
//delay_seconds_(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string response;
|
|
||||||
ESP_LOGD(TAG, "Waiting for upgrade response");
|
ESP_LOGD(TAG, "Waiting for upgrade response");
|
||||||
recv_ret_string_(response, 2000, true); // This can take some time to return
|
std::string response;
|
||||||
|
recv_ret_string_(response, 5000, true); // This can take some time to return
|
||||||
// The Nextion display will, if it's ready to accept data, send a 0x05 byte.
|
// The Nextion display will, if it's ready to accept data, send a 0x05 byte.
|
||||||
ESP_LOGD(TAG, "Upgrade response is [%s]",
|
ESP_LOGD(TAG, "Upgrade response is [%s]",
|
||||||
format_hex_pretty(reinterpret_cast<const uint8_t *>(response.data()), response.size()).c_str());
|
format_hex_pretty(reinterpret_cast<const uint8_t *>(response.data()), response.size()).c_str());
|
||||||
@@ -628,8 +665,8 @@ script:
|
|||||||
auto upload_tft_ = [&](const std::string &url, unsigned int update_baud_rate_) -> bool {
|
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 = "script.upload_tft.upload_tft_esp_idf";
|
||||||
ESP_LOGD(TAG, "Nextion TFT upload requested");
|
ESP_LOGD(TAG, "Nextion TFT upload requested");
|
||||||
ESP_LOGD(TAG, "url: %s", url.c_str());
|
ESP_LOGD(TAG, " url: %s", url.c_str());
|
||||||
ESP_LOGD(TAG, "baud_rate: %i", update_baud_rate_);
|
ESP_LOGD(TAG, " baud_rate: %i", update_baud_rate_);
|
||||||
|
|
||||||
if (is_updating_) {
|
if (is_updating_) {
|
||||||
ESP_LOGW(TAG, "Currently updating");
|
ESP_LOGW(TAG, "Currently updating");
|
||||||
@@ -711,10 +748,10 @@ script:
|
|||||||
|
|
||||||
send_nextion_command(command);
|
send_nextion_command(command);
|
||||||
|
|
||||||
if (update_baud_rate_ != id(tf_uart).get_baud_rate())
|
if (update_baud_rate_ != id(tf_uart).get_baud_rate()) {
|
||||||
{
|
set_baud_rate_(update_baud_rate_);
|
||||||
id(tf_uart).set_baud_rate(update_baud_rate_);
|
//id(tf_uart).set_baud_rate(update_baud_rate_);
|
||||||
id(tf_uart).setup();
|
//id(tf_uart).setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string response;
|
std::string response;
|
||||||
@@ -759,36 +796,43 @@ script:
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned int upload_tries = 0;
|
ESP_LOGD(TAG, "Try #1 at 921600 bps");
|
||||||
while (upload_tries < 5) {
|
if (disp1->is_setup()) {
|
||||||
upload_tries++;
|
display_wrapped_text->execute("confirm.body", "Try #1 at 921600 bps", 18);
|
||||||
ESP_LOGD(TAG, "Try #%i", upload_tries);
|
delay_seconds_(1);
|
||||||
if (upload_tft_(url, id(tf_uart).get_baud_rate())) id(restart_nspanel).press();
|
|
||||||
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_(5);
|
|
||||||
}
|
}
|
||||||
unsigned int new_baud_rate;
|
if (upload_tft_(url, 921600)) id(restart_nspanel).press();
|
||||||
if (id(tf_uart).get_baud_rate() == 115200) {
|
ESP_LOGW(TAG, "Try #1 failed");
|
||||||
new_baud_rate = 921600;
|
if (disp1->is_setup()) display_wrapped_text->execute("confirm.body", "Try #1 failed", 18);
|
||||||
} else {
|
delay_seconds_(5);
|
||||||
new_baud_rate = 115200;
|
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, "Trying again at %i bps", new_baud_rate);
|
|
||||||
if (upload_tft_(url, new_baud_rate)) {
|
|
||||||
id(restart_nspanel).press();
|
|
||||||
}
|
|
||||||
ESP_LOGE(TAG, "TFT upload failed.");
|
|
||||||
ESP_LOGD(TAG, "Turn off Nextion");
|
ESP_LOGD(TAG, "Turn off Nextion");
|
||||||
id(screen_power).turn_off();
|
id(screen_power).turn_off();
|
||||||
delay_seconds_(2);
|
delay_seconds_(2);
|
||||||
ESP_LOGD(TAG, "Turn on Nextion");
|
ESP_LOGD(TAG, "Turn on Nextion");
|
||||||
id(screen_power).turn_on();
|
id(screen_power).turn_on();
|
||||||
ESP_LOGD(TAG, "Restarting esphome");
|
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);
|
delay_seconds_(2);
|
||||||
id(restart_nspanel).press();
|
id(restart_nspanel).press();
|
||||||
|
|
||||||
ESP_LOGD(TAG, "Finished!");
|
ESP_LOGD(TAG, "Finished!");
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#####################################################################################################
|
#####################################################################################################
|
||||||
##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint #####
|
##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint #####
|
||||||
##### ADVANCED CONFIG + FULL ESPHOME CODE! #####
|
##### ESPHOME ADVANCED #####
|
||||||
##### PLEASE only make changes if it is necessary and also the required knowledge is available. #####
|
##### 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. #####
|
##### For normal use with the Blueprint, no changes are necessary. #####
|
||||||
#####################################################################################################
|
#####################################################################################################
|
||||||
@@ -84,10 +84,6 @@ time:
|
|||||||
- component.update: api_timestamp
|
- component.update: api_timestamp
|
||||||
- component.update: device_timestamp
|
- component.update: device_timestamp
|
||||||
|
|
||||||
uart:
|
|
||||||
- id: !extend tf_uart
|
|
||||||
baud_rate: 921600
|
|
||||||
|
|
||||||
web_server:
|
web_server:
|
||||||
id: web_server_std
|
id: web_server_std
|
||||||
port: 80
|
port: 80
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
#####################################################################################################
|
#####################################################################################################
|
||||||
##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint #####
|
##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint #####
|
||||||
##### ADVANCED CONFIG + FULL ESPHOME CODE! #####
|
##### ESPHOME CORE #####
|
||||||
##### PLEASE only make changes if it is necessary and also the required knowledge is available. #####
|
##### 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. #####
|
##### For normal use with the Blueprint, no changes are necessary. #####
|
||||||
#####################################################################################################
|
#####################################################################################################
|
||||||
|
|
||||||
substitutions:
|
substitutions:
|
||||||
##### DON'T CHANGE THIS #####
|
##### DON'T CHANGE THIS #####
|
||||||
version: "4.1.3"
|
version: "4.1.4"
|
||||||
#############################
|
#############################
|
||||||
|
|
||||||
#external_components:
|
#external_components:
|
||||||
@@ -68,7 +68,7 @@ esphome:
|
|||||||
- wait_until:
|
- wait_until:
|
||||||
condition:
|
condition:
|
||||||
- lambda: !lambda return disp1->is_setup();
|
- lambda: !lambda return disp1->is_setup();
|
||||||
timeout: 45s
|
timeout: 20s
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
static const char *const TAG = "on_boot";
|
static const char *const TAG = "on_boot";
|
||||||
nextion_status->execute();
|
nextion_status->execute();
|
||||||
@@ -226,6 +226,9 @@ api:
|
|||||||
|
|
||||||
// Alarm page - Header
|
// Alarm page - Header
|
||||||
update_alarm_icon->execute("icon_state", state.c_str());
|
update_alarm_icon->execute("icon_state", state.c_str());
|
||||||
|
if (page_title.find("\\r") != std::string::npos) {
|
||||||
|
page_title = page_title.replace(page_title.find("\\r"), 2, " ");
|
||||||
|
}
|
||||||
disp1->set_component_text_printf("page_label", "%s", page_title.c_str());
|
disp1->set_component_text_printf("page_label", "%s", page_title.c_str());
|
||||||
disp1->set_component_text_printf("code_format", "%s", code_format.c_str());
|
disp1->set_component_text_printf("code_format", "%s", code_format.c_str());
|
||||||
if (code_arm_required) disp1->set_component_text_printf("code_arm_req", "1"); else disp1->set_component_text_printf("code_arm_req", "0");
|
if (code_arm_required) disp1->set_component_text_printf("code_arm_req", "1"); else disp1->set_component_text_printf("code_arm_req", "0");
|
||||||
@@ -432,6 +435,9 @@ api:
|
|||||||
detailed_entity->publish_state(entity);
|
detailed_entity->publish_state(entity);
|
||||||
std::string cmd_page = std::string("page ") + page.c_str();
|
std::string cmd_page = std::string("page ") + page.c_str();
|
||||||
disp1->send_command_printf(cmd_page.c_str());
|
disp1->send_command_printf(cmd_page.c_str());
|
||||||
|
if (page_label.find("\\r") != std::string::npos) {
|
||||||
|
page_label = page_label.replace(page_label.find("\\r"), 2, " ");
|
||||||
|
}
|
||||||
disp1->set_component_text_printf("page_label", "%s", page_label.c_str());
|
disp1->set_component_text_printf("page_label", "%s", page_label.c_str());
|
||||||
disp1->set_component_text_printf("back_page", "%s", back_page.c_str());
|
disp1->set_component_text_printf("back_page", "%s", back_page.c_str());
|
||||||
if (page == "climate")
|
if (page == "climate")
|
||||||
@@ -2094,23 +2100,27 @@ script:
|
|||||||
int startPos = 0;
|
int startPos = 0;
|
||||||
int endPos = 0;
|
int endPos = 0;
|
||||||
std::string wrappedText = "";
|
std::string wrappedText = "";
|
||||||
while (startPos < text_to_display.length()) {
|
if (text_to_display.find("\\r") != std::string::npos) {
|
||||||
while (text_to_display[startPos] == ' ' and startPos < text_to_display.length()) { startPos++; }
|
wrappedText = text_to_display;
|
||||||
int endPos = startPos + line_length_limit;
|
} else {
|
||||||
if (endPos >= text_to_display.length()) endPos = text_to_display.length();
|
while (startPos < text_to_display.length()) {
|
||||||
else
|
while (text_to_display[startPos] == ' ' and startPos < text_to_display.length()) { startPos++; }
|
||||||
{
|
int endPos = startPos + line_length_limit;
|
||||||
while (endPos > startPos && text_to_display[endPos] != ' ') { endPos--; }
|
if (endPos >= text_to_display.length()) endPos = text_to_display.length();
|
||||||
if (endPos == startPos) endPos = startPos + line_length_limit; // Handle case of long word
|
else
|
||||||
}
|
{
|
||||||
wrappedText += text_to_display.substr(startPos, endPos-startPos);
|
while (endPos > startPos && text_to_display[endPos] != ' ') { endPos--; }
|
||||||
if (endPos < text_to_display.length())
|
if (endPos == startPos) endPos = startPos + line_length_limit; // Handle case of long word
|
||||||
{
|
}
|
||||||
while (text_to_display[endPos] == ' ') { endPos--; }
|
wrappedText += text_to_display.substr(startPos, endPos-startPos);
|
||||||
if (endPos >= startPos) wrappedText += "\\r";
|
if (endPos < text_to_display.length())
|
||||||
}
|
{
|
||||||
startPos = endPos + 1; // Skip the space
|
while (text_to_display[endPos] == ' ') { endPos--; }
|
||||||
while (text_to_display[startPos] == ' ' and startPos < text_to_display.length()) { startPos++; }
|
if (endPos >= startPos) wrappedText += "\\r";
|
||||||
|
}
|
||||||
|
startPos = endPos + 1; // Skip the space
|
||||||
|
while (text_to_display[startPos] == ' ' and startPos < text_to_display.length()) { startPos++; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
disp1->set_component_text_printf(component.c_str(), "%s", wrappedText.c_str());
|
disp1->set_component_text_printf(component.c_str(), "%s", wrappedText.c_str());
|
||||||
|
|
||||||
Binary file not shown.
@@ -1,26 +1,26 @@
|
|||||||
Program.s
|
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
|
//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 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 r=0,g=0,b=0
|
||||||
int h=0,s=0,v=0
|
int h=0,s=0,v=0
|
||||||
int p=0,q=0,t=0,f=0
|
int p=0,q=0,t=0,f=0
|
||||||
int dimdelta=0
|
int dimdelta=0
|
||||||
int api=0 // 0 = disconnected from HA, 1 = connected to HA
|
int api=0 // 0 = disconnected from HA, 1 = connected to HA
|
||||||
int is_alarm=0,is_entities=0,is_qrcode=0,is_notification=0
|
int is_alarm=0,is_entities=0,is_qrcode=0,is_notification=0
|
||||||
int brightness=100,brightness_dim=40
|
int brightness=100,brightness_dim=40
|
||||||
int display_mode=1 // 1 = EU, 2 = US, 3 = US landscape
|
int display_mode=1 // 1 = EU, 2 = US, 3 = US landscape
|
||||||
//bauds=115200//Configure baudrate
|
//bauds=115200//Configure baudrate
|
||||||
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
|
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
|
||||||
randset 0,65535//used for touchevent sensor
|
randset 0,65535//used for touchevent sensor
|
||||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
if(display_mode==1)
|
if(display_mode==1)
|
||||||
{
|
{
|
||||||
lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version
|
lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version
|
||||||
}
|
}
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "",0
|
prints "",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
page 8//Power on start page boot
|
page 8//Power on start page boot
|
||||||
@@ -1,278 +1,278 @@
|
|||||||
Page boot
|
Page boot
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "boot",0
|
prints "boot",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
dim=0
|
dim=0
|
||||||
vis bt_reboot,0
|
vis bt_reboot,0
|
||||||
covx baud,baud_rate.txt,0,0
|
covx baud,baud_rate.txt,0,0
|
||||||
baud_rate.txt+=" bps"
|
baud_rate.txt+=" bps"
|
||||||
covx display_mode,aux2.txt,0,0
|
covx display_mode,aux2.txt,0,0
|
||||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints nspanelevent.txt,0
|
prints nspanelevent.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Page Exit Event
|
Page Exit Event
|
||||||
dim=0
|
dim=0
|
||||||
|
|
||||||
Variable (int32) counter
|
Variable (int32) counter
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (string) aux1
|
Variable (string) aux1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) nspanelevent
|
Variable (string) nspanelevent
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 150
|
Max. Text Size: 150
|
||||||
|
|
||||||
Variable (string) aux2
|
Variable (string) aux2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Text ip_addr
|
Text ip_addr
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Initializing...
|
Text : Initializing...
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text t0
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Please wait...
|
Text : Please wait...
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text t1
|
Text t1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : The process can take several seconds!
|
Text : The process can take several seconds!
|
||||||
Max. Text Size : 50
|
Max. Text Size : 50
|
||||||
|
|
||||||
Text tft_label
|
Text tft_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : TFT:
|
Text : TFT:
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
Text esph_label
|
Text esph_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : ESPHome:
|
Text : ESPHome:
|
||||||
Max. Text Size : 8
|
Max. Text Size : 8
|
||||||
|
|
||||||
Text bluep_label
|
Text bluep_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Blueprint:
|
Text : Blueprint:
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text tft_version
|
Text tft_version
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : 4.1.3
|
Text : 4.1.4
|
||||||
Max. Text Size : 9
|
Max. Text Size : 9
|
||||||
|
|
||||||
Text esph_version
|
Text esph_version
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 9
|
Max. Text Size : 9
|
||||||
|
|
||||||
Text bluep_version
|
Text bluep_version
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 9
|
Max. Text Size : 9
|
||||||
|
|
||||||
Text baud_rate
|
Text baud_rate
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text framework
|
Text framework
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Dual-state Button bt_reboot
|
Dual-state Button bt_reboot
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: on press and release
|
Send Component ID: on press and release
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : Reboot
|
Text : Reboot
|
||||||
Max. Text Size : 6
|
Max. Text Size : 6
|
||||||
|
|
||||||
Timer timer
|
Timer timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 65534
|
Period (ms): 65534
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
counter.val++
|
counter.val++
|
||||||
covx counter.val,aux1.txt,0,0
|
covx counter.val,aux1.txt,0,0
|
||||||
covx display_mode,aux2.txt,0,0
|
covx display_mode,aux2.txt,0,0
|
||||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||||
bluep_version.txt="Retry: "+aux1.txt
|
bluep_version.txt="Retry: "+aux1.txt
|
||||||
printh 92
|
printh 92
|
||||||
prints "nspanelevent",0
|
prints "nspanelevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints nspanelevent.txt,0
|
prints nspanelevent.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<100)
|
if(dim<100)
|
||||||
{
|
{
|
||||||
dimdelta=100-dim
|
dimdelta=100-dim
|
||||||
dimdelta/=25
|
dimdelta/=25
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer tm_esphome
|
Timer tm_esphome
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 30000
|
Period (ms): 30000
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(baud==115200)
|
if(baud==115200)
|
||||||
{
|
{
|
||||||
bauds=921600
|
bauds=921600
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
bauds=115200
|
bauds=115200
|
||||||
}
|
}
|
||||||
covx baud,baud_rate.txt,0,0
|
covx baud,baud_rate.txt,0,0
|
||||||
baud_rate.txt+=" bps"
|
baud_rate.txt+=" bps"
|
||||||
|
|
||||||
Timer tm_pageid
|
Timer tm_pageid
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 2500
|
Period (ms): 2500
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
covx display_mode,aux2.txt,0,0
|
covx display_mode,aux2.txt,0,0
|
||||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints nspanelevent.txt,0
|
prints nspanelevent.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ Text body
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Please confirm
|
Text : Please confirm
|
||||||
Max. Text Size : 22
|
Max. Text Size : 254
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -1,243 +1,243 @@
|
|||||||
Page cover
|
Page cover
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "cover",0
|
prints "cover",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Variable (string) va1
|
Variable (string) va1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Text : newtxt
|
Text : newtxt
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) coversetting
|
Variable (string) coversetting
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 255
|
Max. Text Size: 255
|
||||||
|
|
||||||
Variable (string) back_page
|
Variable (string) back_page
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Text : home
|
Text : home
|
||||||
Max. Text Size: 15
|
Max. Text Size: 15
|
||||||
|
|
||||||
Text battery_value
|
Text battery_value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text cover_value
|
Text cover_value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_label
|
Text page_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text icon_state
|
Text icon_state
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text battery_icon
|
Text battery_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Slider coverslider
|
Slider coverslider
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
Position : 0
|
Position : 0
|
||||||
Upper range limit: 100
|
Upper range limit: 100
|
||||||
Lower range limit: 0
|
Lower range limit: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
covx coverslider.val,va1.txt,0,0
|
covx coverslider.val,va1.txt,0,0
|
||||||
cover_value.txt=va1.txt+"%"
|
cover_value.txt=va1.txt+"%"
|
||||||
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
|
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints coversetting.txt,0
|
prints coversetting.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button cover_open
|
Button cover_open
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
|
prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button cover_close
|
Button cover_close
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
|
prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button cover_stop
|
Button cover_stop
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
|
prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
if(back_page.txt=="buttonpage01")
|
if(back_page.txt=="buttonpage01")
|
||||||
{
|
{
|
||||||
page buttonpage01
|
page buttonpage01
|
||||||
}else if(back_page.txt=="buttonpage02")
|
}else if(back_page.txt=="buttonpage02")
|
||||||
{
|
{
|
||||||
page buttonpage02
|
page buttonpage02
|
||||||
}else if(back_page.txt=="buttonpage03")
|
}else if(back_page.txt=="buttonpage03")
|
||||||
{
|
{
|
||||||
page buttonpage03
|
page buttonpage03
|
||||||
}else if(back_page.txt=="buttonpage04")
|
}else if(back_page.txt=="buttonpage04")
|
||||||
{
|
{
|
||||||
page buttonpage04
|
page buttonpage04
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,202 +1,202 @@
|
|||||||
Page notification
|
Page notification
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "notification",0
|
prints "notification",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Variable (string) lastclick
|
Variable (string) lastclick
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 100
|
Max. Text Size: 100
|
||||||
|
|
||||||
Text notifi_text01
|
Text notifi_text01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 250
|
Max. Text Size : 250
|
||||||
|
|
||||||
Text notifi_label
|
Text notifi_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Button bt_accept
|
Button bt_accept
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
lastclick.txt="{\"page\": \"notification\", \"component\": \"accept\", \"value\": \"release\"}"
|
lastclick.txt="{\"page\": \"notification\", \"component\": \"accept\", \"value\": \"release\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "nspanelevent",0
|
prints "nspanelevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints lastclick.txt,0
|
prints lastclick.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button bt_clear
|
Button bt_clear
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
lastclick.txt="{\"page\": \"notification\", \"component\": \"clear\", \"value\": \"release\"}"
|
lastclick.txt="{\"page\": \"notification\", \"component\": \"clear\", \"value\": \"release\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "nspanelevent",0
|
prints "nspanelevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints lastclick.txt,0
|
prints lastclick.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 120 B |
@@ -1,148 +1,148 @@
|
|||||||
Page qrcode
|
Page qrcode
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "qrcode",0
|
prints "qrcode",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text qrcode_label
|
Text qrcode_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
QR Code qrcode_value
|
QR Code qrcode_value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 75
|
Max. Text Size : 75
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,41 +1,41 @@
|
|||||||
Page screensaver
|
Page screensaver
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "screensaver",0
|
prints "screensaver",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
dim=0
|
dim=0
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
page orign.val
|
page orign.val
|
||||||
|
|
||||||
Variable (int32) orign
|
Variable (int32) orign
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
TouchCap wakeup
|
TouchCap wakeup
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page orign.val
|
page orign.val
|
||||||
|
|
||||||
Binary file not shown.
@@ -1,26 +1,26 @@
|
|||||||
Program.s
|
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
|
//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 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 r=0,g=0,b=0
|
||||||
int h=0,s=0,v=0
|
int h=0,s=0,v=0
|
||||||
int p=0,q=0,t=0,f=0
|
int p=0,q=0,t=0,f=0
|
||||||
int dimdelta=0
|
int dimdelta=0
|
||||||
int api=0 // 0 = disconnected from HA, 1 = connected to HA
|
int api=0 // 0 = disconnected from HA, 1 = connected to HA
|
||||||
int is_alarm=0,is_entities=0,is_qrcode=0,is_notification=0
|
int is_alarm=0,is_entities=0,is_qrcode=0,is_notification=0
|
||||||
int brightness=100,brightness_dim=40
|
int brightness=100,brightness_dim=40
|
||||||
int display_mode=2 // 1 = EU, 2 = US, 3 = US landscape
|
int display_mode=2 // 1 = EU, 2 = US, 3 = US landscape
|
||||||
//bauds=115200//Configure baudrate
|
//bauds=115200//Configure baudrate
|
||||||
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
|
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
|
||||||
randset 0,65535//used for touchevent sensor
|
randset 0,65535//used for touchevent sensor
|
||||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
if(display_mode==1)
|
if(display_mode==1)
|
||||||
{
|
{
|
||||||
lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version
|
lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version
|
||||||
}
|
}
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "",0
|
prints "",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
page 8//Power on start page boot
|
page 8//Power on start page boot
|
||||||
@@ -1,278 +1,278 @@
|
|||||||
Page boot
|
Page boot
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "boot",0
|
prints "boot",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
dim=0
|
dim=0
|
||||||
vis bt_reboot,0
|
vis bt_reboot,0
|
||||||
covx baud,baud_rate.txt,0,0
|
covx baud,baud_rate.txt,0,0
|
||||||
baud_rate.txt+=" bps"
|
baud_rate.txt+=" bps"
|
||||||
covx display_mode,aux2.txt,0,0
|
covx display_mode,aux2.txt,0,0
|
||||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints nspanelevent.txt,0
|
prints nspanelevent.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Page Exit Event
|
Page Exit Event
|
||||||
dim=0
|
dim=0
|
||||||
|
|
||||||
Variable (int32) counter
|
Variable (int32) counter
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (string) aux1
|
Variable (string) aux1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) nspanelevent
|
Variable (string) nspanelevent
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 150
|
Max. Text Size: 150
|
||||||
|
|
||||||
Variable (string) aux2
|
Variable (string) aux2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Text ip_addr
|
Text ip_addr
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Initializing...
|
Text : Initializing...
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text t0
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Please wait...
|
Text : Please wait...
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text t1
|
Text t1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : The process can take several seconds!
|
Text : The process can take several seconds!
|
||||||
Max. Text Size : 50
|
Max. Text Size : 50
|
||||||
|
|
||||||
Text tft_label
|
Text tft_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : TFT:
|
Text : TFT:
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
Text esph_label
|
Text esph_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : ESPHome:
|
Text : ESPHome:
|
||||||
Max. Text Size : 8
|
Max. Text Size : 8
|
||||||
|
|
||||||
Text bluep_label
|
Text bluep_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Blueprint:
|
Text : Blueprint:
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text tft_version
|
Text tft_version
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : 4.1.3
|
Text : 4.1.4
|
||||||
Max. Text Size : 9
|
Max. Text Size : 9
|
||||||
|
|
||||||
Text esph_version
|
Text esph_version
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 9
|
Max. Text Size : 9
|
||||||
|
|
||||||
Text bluep_version
|
Text bluep_version
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 9
|
Max. Text Size : 9
|
||||||
|
|
||||||
Text baud_rate
|
Text baud_rate
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text framework
|
Text framework
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Dual-state Button bt_reboot
|
Dual-state Button bt_reboot
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: on press and release
|
Send Component ID: on press and release
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : Reboot
|
Text : Reboot
|
||||||
Max. Text Size : 6
|
Max. Text Size : 6
|
||||||
|
|
||||||
Timer timer
|
Timer timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 65534
|
Period (ms): 65534
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
counter.val++
|
counter.val++
|
||||||
covx counter.val,aux1.txt,0,0
|
covx counter.val,aux1.txt,0,0
|
||||||
covx display_mode,aux2.txt,0,0
|
covx display_mode,aux2.txt,0,0
|
||||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||||
bluep_version.txt="Retry: "+aux1.txt
|
bluep_version.txt="Retry: "+aux1.txt
|
||||||
printh 92
|
printh 92
|
||||||
prints "nspanelevent",0
|
prints "nspanelevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints nspanelevent.txt,0
|
prints nspanelevent.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<100)
|
if(dim<100)
|
||||||
{
|
{
|
||||||
dimdelta=100-dim
|
dimdelta=100-dim
|
||||||
dimdelta/=25
|
dimdelta/=25
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer tm_esphome
|
Timer tm_esphome
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 30000
|
Period (ms): 30000
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(baud==115200)
|
if(baud==115200)
|
||||||
{
|
{
|
||||||
bauds=921600
|
bauds=921600
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
bauds=115200
|
bauds=115200
|
||||||
}
|
}
|
||||||
covx baud,baud_rate.txt,0,0
|
covx baud,baud_rate.txt,0,0
|
||||||
baud_rate.txt+=" bps"
|
baud_rate.txt+=" bps"
|
||||||
|
|
||||||
Timer tm_pageid
|
Timer tm_pageid
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 2500
|
Period (ms): 2500
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
covx display_mode,aux2.txt,0,0
|
covx display_mode,aux2.txt,0,0
|
||||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints nspanelevent.txt,0
|
prints nspanelevent.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -109,7 +109,7 @@ Text body
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Please confirm
|
Text : Please confirm
|
||||||
Max. Text Size : 22
|
Max. Text Size : 254
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -1,243 +1,243 @@
|
|||||||
Page cover
|
Page cover
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "cover",0
|
prints "cover",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Variable (string) va1
|
Variable (string) va1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Text : newtxt
|
Text : newtxt
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) coversetting
|
Variable (string) coversetting
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 255
|
Max. Text Size: 255
|
||||||
|
|
||||||
Variable (string) back_page
|
Variable (string) back_page
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Text : home
|
Text : home
|
||||||
Max. Text Size: 15
|
Max. Text Size: 15
|
||||||
|
|
||||||
Text battery_value
|
Text battery_value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text cover_value
|
Text cover_value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_label
|
Text page_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text icon_state
|
Text icon_state
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text battery_icon
|
Text battery_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Slider coverslider
|
Slider coverslider
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
Position : 0
|
Position : 0
|
||||||
Upper range limit: 100
|
Upper range limit: 100
|
||||||
Lower range limit: 0
|
Lower range limit: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
covx coverslider.val,va1.txt,0,0
|
covx coverslider.val,va1.txt,0,0
|
||||||
cover_value.txt=va1.txt+"%"
|
cover_value.txt=va1.txt+"%"
|
||||||
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
|
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints coversetting.txt,0
|
prints coversetting.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button cover_open
|
Button cover_open
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
|
prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button cover_close
|
Button cover_close
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
|
prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button cover_stop
|
Button cover_stop
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
|
prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
if(back_page.txt=="buttonpage01")
|
if(back_page.txt=="buttonpage01")
|
||||||
{
|
{
|
||||||
page buttonpage01
|
page buttonpage01
|
||||||
}else if(back_page.txt=="buttonpage02")
|
}else if(back_page.txt=="buttonpage02")
|
||||||
{
|
{
|
||||||
page buttonpage02
|
page buttonpage02
|
||||||
}else if(back_page.txt=="buttonpage03")
|
}else if(back_page.txt=="buttonpage03")
|
||||||
{
|
{
|
||||||
page buttonpage03
|
page buttonpage03
|
||||||
}else if(back_page.txt=="buttonpage04")
|
}else if(back_page.txt=="buttonpage04")
|
||||||
{
|
{
|
||||||
page buttonpage04
|
page buttonpage04
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,395 +1,395 @@
|
|||||||
Page entitypage01
|
Page entitypage01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "entitypage01",0
|
prints "entitypage01",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text value01_label
|
Text value01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value05_label
|
Text value05_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value04_label
|
Text value04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value02_label
|
Text value02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value03_label
|
Text value03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text entity01_label
|
Text entity01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Text value06_label
|
Text value06_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value07_label
|
Text value07_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value08_label
|
Text value08_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value01_pic
|
Text value01_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value02_pic
|
Text value02_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value03_pic
|
Text value03_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value04_pic
|
Text value04_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value05_pic
|
Text value05_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value06_pic
|
Text value06_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value07_pic
|
Text value07_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value08_pic
|
Text value08_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value06
|
Text value06
|
||||||
Attributes
|
Attributes
|
||||||
ID : 25
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value07
|
Text value07
|
||||||
Attributes
|
Attributes
|
||||||
ID : 26
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value08
|
Text value08
|
||||||
Attributes
|
Attributes
|
||||||
ID : 27
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 29
|
ID : 29
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 28
|
ID : 28
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 30
|
ID : 30
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page entitypage04
|
page entitypage04
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page entitypage02
|
page entitypage02
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
page entitypage03
|
page entitypage03
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
page entitypage04
|
page entitypage04
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,395 +1,395 @@
|
|||||||
Page entitypage02
|
Page entitypage02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "entitypage02",0
|
prints "entitypage02",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text value01_label
|
Text value01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value05_label
|
Text value05_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value04_label
|
Text value04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value02_label
|
Text value02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value03_label
|
Text value03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text entity02_label
|
Text entity02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Text value06_label
|
Text value06_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value07_label
|
Text value07_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value08_label
|
Text value08_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value01_pic
|
Text value01_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value02_pic
|
Text value02_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value03_pic
|
Text value03_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value04_pic
|
Text value04_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value05_pic
|
Text value05_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value06_pic
|
Text value06_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value07_pic
|
Text value07_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value08_pic
|
Text value08_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value06
|
Text value06
|
||||||
Attributes
|
Attributes
|
||||||
ID : 25
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value07
|
Text value07
|
||||||
Attributes
|
Attributes
|
||||||
ID : 26
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value08
|
Text value08
|
||||||
Attributes
|
Attributes
|
||||||
ID : 27
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 29
|
ID : 29
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 28
|
ID : 28
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 30
|
ID : 30
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page entitypage01
|
page entitypage01
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page entitypage03
|
page entitypage03
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,395 +1,395 @@
|
|||||||
Page entitypage03
|
Page entitypage03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "entitypage03",0
|
prints "entitypage03",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text value01_label
|
Text value01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value05_label
|
Text value05_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value04_label
|
Text value04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value02_label
|
Text value02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value03_label
|
Text value03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text entity03_label
|
Text entity03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Text value06_label
|
Text value06_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value07_label
|
Text value07_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value08_label
|
Text value08_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value01_pic
|
Text value01_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value02_pic
|
Text value02_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value03_pic
|
Text value03_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value04_pic
|
Text value04_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value05_pic
|
Text value05_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value06_pic
|
Text value06_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value07_pic
|
Text value07_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value08_pic
|
Text value08_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value06
|
Text value06
|
||||||
Attributes
|
Attributes
|
||||||
ID : 25
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value07
|
Text value07
|
||||||
Attributes
|
Attributes
|
||||||
ID : 26
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value08
|
Text value08
|
||||||
Attributes
|
Attributes
|
||||||
ID : 27
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 29
|
ID : 29
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 28
|
ID : 28
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 30
|
ID : 30
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page entitypage02
|
page entitypage02
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page entitypage04
|
page entitypage04
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
page entitypage01
|
page entitypage01
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,395 +1,395 @@
|
|||||||
Page entitypage04
|
Page entitypage04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "entitypage04",0
|
prints "entitypage04",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text value01_label
|
Text value01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value05_label
|
Text value05_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value04_label
|
Text value04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value02_label
|
Text value02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value03_label
|
Text value03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text entity04_label
|
Text entity04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Text value06_label
|
Text value06_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value07_label
|
Text value07_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value08_label
|
Text value08_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value01_pic
|
Text value01_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value02_pic
|
Text value02_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value03_pic
|
Text value03_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value04_pic
|
Text value04_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value05_pic
|
Text value05_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value06_pic
|
Text value06_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value07_pic
|
Text value07_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value08_pic
|
Text value08_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value06
|
Text value06
|
||||||
Attributes
|
Attributes
|
||||||
ID : 25
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value07
|
Text value07
|
||||||
Attributes
|
Attributes
|
||||||
ID : 26
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value08
|
Text value08
|
||||||
Attributes
|
Attributes
|
||||||
ID : 27
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 29
|
ID : 29
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 28
|
ID : 28
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 30
|
ID : 30
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page entitypage03
|
page entitypage03
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page entitypage01
|
page entitypage01
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
page entitypage01
|
page entitypage01
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,212 +1,212 @@
|
|||||||
Page notification
|
Page notification
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "notification",0
|
prints "notification",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Variable (string) lastclick
|
Variable (string) lastclick
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 100
|
Max. Text Size: 100
|
||||||
|
|
||||||
Text notifi_text01
|
Text notifi_text01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 250
|
Max. Text Size : 250
|
||||||
|
|
||||||
Text notifi_label
|
Text notifi_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Text loading
|
Text loading
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 1
|
Max. Text Size : 1
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Button bt_accept
|
Button bt_accept
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
lastclick.txt="{\"page\": \"notification\", \"component\": \"accept\", \"value\": \"release\"}"
|
lastclick.txt="{\"page\": \"notification\", \"component\": \"accept\", \"value\": \"release\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "nspanelevent",0
|
prints "nspanelevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints lastclick.txt,0
|
prints lastclick.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button bt_clear
|
Button bt_clear
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
lastclick.txt="{\"page\": \"notification\", \"component\": \"clear\", \"value\": \"release\"}"
|
lastclick.txt="{\"page\": \"notification\", \"component\": \"clear\", \"value\": \"release\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "nspanelevent",0
|
prints "nspanelevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints lastclick.txt,0
|
prints lastclick.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,148 +1,148 @@
|
|||||||
Page qrcode
|
Page qrcode
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "qrcode",0
|
prints "qrcode",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text qrcode_label
|
Text qrcode_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
QR Code qrcode_value
|
QR Code qrcode_value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 75
|
Max. Text Size : 75
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,41 +1,41 @@
|
|||||||
Page screensaver
|
Page screensaver
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "screensaver",0
|
prints "screensaver",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
dim=0
|
dim=0
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
page orign.val
|
page orign.val
|
||||||
|
|
||||||
Variable (int32) orign
|
Variable (int32) orign
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
TouchCap wakeup
|
TouchCap wakeup
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page orign.val
|
page orign.val
|
||||||
|
|
||||||
@@ -1,440 +1,440 @@
|
|||||||
Page settings
|
Page settings
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "settings",0
|
prints "settings",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
covx brightslider.val,bright_text.txt,0,0
|
covx brightslider.val,bright_text.txt,0,0
|
||||||
bright_text.txt+="%"
|
bright_text.txt+="%"
|
||||||
covx dimslider.val,dim_text.txt,0,0
|
covx dimslider.val,dim_text.txt,0,0
|
||||||
dim_text.txt+="%"
|
dim_text.txt+="%"
|
||||||
vis lbl_sleep,0
|
vis lbl_sleep,0
|
||||||
vis bt_sleep,0
|
vis bt_sleep,0
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text bright_text
|
Text bright_text
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : 80%
|
Text : 80%
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
Text dim_text
|
Text dim_text
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : 20%
|
Text : 20%
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
Text lbl_reboot
|
Text lbl_reboot
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Reboot
|
Text : Reboot
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text lbl_sleep
|
Text lbl_sleep
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Sleep mode
|
Text : Sleep mode
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text lbl_bright
|
Text lbl_bright
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Bright
|
Text : Bright
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text lbl_dim
|
Text lbl_dim
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Dim
|
Text : Dim
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text lbl_brightness
|
Text lbl_brightness
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Brightness
|
Text : Brightness
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text t0
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(brightslider.val<100)
|
if(brightslider.val<100)
|
||||||
{
|
{
|
||||||
brightslider.val++
|
brightslider.val++
|
||||||
covx brightslider.val,bright_text.txt,0,0
|
covx brightslider.val,bright_text.txt,0,0
|
||||||
bright_text.txt+="%"
|
bright_text.txt+="%"
|
||||||
printh 91
|
printh 91
|
||||||
prints "brightslider",0
|
prints "brightslider",0
|
||||||
printh 00
|
printh 00
|
||||||
prints brightslider.val,0
|
prints brightslider.val,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Text t1
|
Text t1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(dimslider.val<100)
|
if(dimslider.val<100)
|
||||||
{
|
{
|
||||||
dimslider.val++
|
dimslider.val++
|
||||||
covx dimslider.val,dim_text.txt,0,0
|
covx dimslider.val,dim_text.txt,0,0
|
||||||
dim_text.txt+="%"
|
dim_text.txt+="%"
|
||||||
printh 91
|
printh 91
|
||||||
prints "dimslider",0
|
prints "dimslider",0
|
||||||
printh 00
|
printh 00
|
||||||
prints dimslider.val,0
|
prints dimslider.val,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Text t2
|
Text t2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(dimslider.val>0)
|
if(dimslider.val>0)
|
||||||
{
|
{
|
||||||
dimslider.val--
|
dimslider.val--
|
||||||
covx dimslider.val,dim_text.txt,0,0
|
covx dimslider.val,dim_text.txt,0,0
|
||||||
dim_text.txt+="%"
|
dim_text.txt+="%"
|
||||||
printh 91
|
printh 91
|
||||||
prints "dimslider",0
|
prints "dimslider",0
|
||||||
printh 00
|
printh 00
|
||||||
prints dimslider.val,0
|
prints dimslider.val,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Text t3
|
Text t3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(brightslider.val>0)
|
if(brightslider.val>0)
|
||||||
{
|
{
|
||||||
brightslider.val--
|
brightslider.val--
|
||||||
covx brightslider.val,bright_text.txt,0,0
|
covx brightslider.val,bright_text.txt,0,0
|
||||||
bright_text.txt+="%"
|
bright_text.txt+="%"
|
||||||
printh 91
|
printh 91
|
||||||
prints "brightslider",0
|
prints "brightslider",0
|
||||||
printh 00
|
printh 00
|
||||||
prints brightslider.val,0
|
prints brightslider.val,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Slider brightslider
|
Slider brightslider
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: on press and release
|
Send Component ID: on press and release
|
||||||
Position : 80
|
Position : 80
|
||||||
Upper range limit: 100
|
Upper range limit: 100
|
||||||
Lower range limit: 0
|
Lower range limit: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(tm_bright.en==0)
|
if(tm_bright.en==0)
|
||||||
{
|
{
|
||||||
tm_bright.en=1
|
tm_bright.en=1
|
||||||
}
|
}
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Slider dimslider
|
Slider dimslider
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: on press and release
|
Send Component ID: on press and release
|
||||||
Position : 20
|
Position : 20
|
||||||
Upper range limit: 100
|
Upper range limit: 100
|
||||||
Lower range limit: 0
|
Lower range limit: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(tm_dim.en==0)
|
if(tm_dim.en==0)
|
||||||
{
|
{
|
||||||
tm_dim.en=1
|
tm_dim.en=1
|
||||||
}
|
}
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Dual-state Button bt_reboot
|
Dual-state Button bt_reboot
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: on press and release
|
Send Component ID: on press and release
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Dual-state Button bt_sleep
|
Dual-state Button bt_sleep
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : global
|
Scope : global
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: on press and release
|
Send Component ID: on press and release
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Hotspot bt_bright_down
|
Hotspot bt_bright_down
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(brightslider.val>0)
|
if(brightslider.val>0)
|
||||||
{
|
{
|
||||||
brightslider.val--
|
brightslider.val--
|
||||||
covx brightslider.val,bright_text.txt,0,0
|
covx brightslider.val,bright_text.txt,0,0
|
||||||
bright_text.txt+="%"
|
bright_text.txt+="%"
|
||||||
printh 91
|
printh 91
|
||||||
prints "brightslider",0
|
prints "brightslider",0
|
||||||
printh 00
|
printh 00
|
||||||
prints brightslider.val,0
|
prints brightslider.val,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Hotspot bt_bright_up
|
Hotspot bt_bright_up
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(brightslider.val<100)
|
if(brightslider.val<100)
|
||||||
{
|
{
|
||||||
brightslider.val++
|
brightslider.val++
|
||||||
covx brightslider.val,bright_text.txt,0,0
|
covx brightslider.val,bright_text.txt,0,0
|
||||||
bright_text.txt+="%"
|
bright_text.txt+="%"
|
||||||
printh 91
|
printh 91
|
||||||
prints "brightslider",0
|
prints "brightslider",0
|
||||||
printh 00
|
printh 00
|
||||||
prints brightslider.val,0
|
prints brightslider.val,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Hotspot bt_dim_down
|
Hotspot bt_dim_down
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(dimslider.val>0)
|
if(dimslider.val>0)
|
||||||
{
|
{
|
||||||
dimslider.val--
|
dimslider.val--
|
||||||
covx dimslider.val,dim_text.txt,0,0
|
covx dimslider.val,dim_text.txt,0,0
|
||||||
dim_text.txt+="%"
|
dim_text.txt+="%"
|
||||||
printh 91
|
printh 91
|
||||||
prints "dimslider",0
|
prints "dimslider",0
|
||||||
printh 00
|
printh 00
|
||||||
prints dimslider.val,0
|
prints dimslider.val,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Hotspot bt_dim_up
|
Hotspot bt_dim_up
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(dimslider.val<100)
|
if(dimslider.val<100)
|
||||||
{
|
{
|
||||||
dimslider.val++
|
dimslider.val++
|
||||||
covx dimslider.val,dim_text.txt,0,0
|
covx dimslider.val,dim_text.txt,0,0
|
||||||
dim_text.txt+="%"
|
dim_text.txt+="%"
|
||||||
printh 91
|
printh 91
|
||||||
prints "dimslider",0
|
prints "dimslider",0
|
||||||
printh 00
|
printh 00
|
||||||
prints dimslider.val,0
|
prints dimslider.val,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer tm_bright
|
Timer tm_bright
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0
|
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Timer tm_dim
|
Timer tm_dim
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
covx dimslider.val,dim_text.txt,0,0
|
covx dimslider.val,dim_text.txt,0,0
|
||||||
dim_text.txt+="%"
|
dim_text.txt+="%"
|
||||||
printh 91
|
printh 91
|
||||||
prints "dimslider",0
|
prints "dimslider",0
|
||||||
printh 00
|
printh 00
|
||||||
prints dimslider.val,0
|
prints dimslider.val,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
tm_dim.en=0
|
tm_dim.en=0
|
||||||
|
|
||||||
@@ -1,292 +1,292 @@
|
|||||||
Page weather01
|
Page weather01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "weather01",0
|
prints "weather01",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text day
|
Text day
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text date
|
Text date
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text temperature
|
Text temperature
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01_icon
|
Text value01_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02_icon
|
Text value02_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03_icon
|
Text value03_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04_icon
|
Text value04_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05_icon
|
Text value05_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text loading
|
Text loading
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 1
|
Max. Text Size : 1
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Picture weather_icon
|
Picture weather_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page weather05
|
page weather05
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page weather02
|
page weather02
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,292 +1,292 @@
|
|||||||
Page weather02
|
Page weather02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "weather02",0
|
prints "weather02",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text day
|
Text day
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text loading
|
Text loading
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 1
|
Max. Text Size : 1
|
||||||
|
|
||||||
Text date
|
Text date
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text temperature
|
Text temperature
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01_icon
|
Text value01_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02_icon
|
Text value02_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03_icon
|
Text value03_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04_icon
|
Text value04_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05_icon
|
Text value05_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Picture weather_icon
|
Picture weather_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page weather01
|
page weather01
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page weather03
|
page weather03
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,292 +1,292 @@
|
|||||||
Page weather03
|
Page weather03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "weather03",0
|
prints "weather03",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text day
|
Text day
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text loading
|
Text loading
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 1
|
Max. Text Size : 1
|
||||||
|
|
||||||
Text date
|
Text date
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text temperature
|
Text temperature
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01_icon
|
Text value01_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02_icon
|
Text value02_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03_icon
|
Text value03_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04_icon
|
Text value04_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05_icon
|
Text value05_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Picture weather_icon
|
Picture weather_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page weather02
|
page weather02
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page weather04
|
page weather04
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,292 +1,292 @@
|
|||||||
Page weather04
|
Page weather04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "weather04",0
|
prints "weather04",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text day
|
Text day
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text loading
|
Text loading
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 1
|
Max. Text Size : 1
|
||||||
|
|
||||||
Text date
|
Text date
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text temperature
|
Text temperature
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01_icon
|
Text value01_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02_icon
|
Text value02_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03_icon
|
Text value03_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04_icon
|
Text value04_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05_icon
|
Text value05_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Picture weather_icon
|
Picture weather_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page weather03
|
page weather03
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page weather05
|
page weather05
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,292 +1,292 @@
|
|||||||
Page weather05
|
Page weather05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "weather05",0
|
prints "weather05",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text day
|
Text day
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text loading
|
Text loading
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 1
|
Max. Text Size : 1
|
||||||
|
|
||||||
Text date
|
Text date
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text temperature
|
Text temperature
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text value01_icon
|
Text value01_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02_icon
|
Text value02_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03_icon
|
Text value03_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04_icon
|
Text value04_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05_icon
|
Text value05_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Picture weather_icon
|
Picture weather_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page weather04
|
page weather04
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page weather01
|
page weather01
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Binary file not shown.
@@ -1,26 +1,26 @@
|
|||||||
Program.s
|
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
|
//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 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 r=0,g=0,b=0
|
||||||
int h=0,s=0,v=0
|
int h=0,s=0,v=0
|
||||||
int p=0,q=0,t=0,f=0
|
int p=0,q=0,t=0,f=0
|
||||||
int dimdelta=0
|
int dimdelta=0
|
||||||
int api=0 // 0 = disconnected from HA, 1 = connected to HA
|
int api=0 // 0 = disconnected from HA, 1 = connected to HA
|
||||||
int is_alarm=0,is_entities=0,is_qrcode=0,is_notification=0
|
int is_alarm=0,is_entities=0,is_qrcode=0,is_notification=0
|
||||||
int brightness=100,brightness_dim=40
|
int brightness=100,brightness_dim=40
|
||||||
int display_mode=3 // 1 = EU, 2 = US, 3 = US landscape
|
int display_mode=3 // 1 = EU, 2 = US, 3 = US landscape
|
||||||
//bauds=115200//Configure baudrate
|
//bauds=115200//Configure baudrate
|
||||||
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
|
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
|
||||||
randset 0,65535//used for touchevent sensor
|
randset 0,65535//used for touchevent sensor
|
||||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||||
if(display_mode==1)
|
if(display_mode==1)
|
||||||
{
|
{
|
||||||
lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version
|
lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version
|
||||||
}
|
}
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "",0
|
prints "",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
page 8//Power on start page boot
|
page 8//Power on start page boot
|
||||||
@@ -1,278 +1,278 @@
|
|||||||
Page boot
|
Page boot
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "boot",0
|
prints "boot",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
dim=0
|
dim=0
|
||||||
vis bt_reboot,0
|
vis bt_reboot,0
|
||||||
covx baud,baud_rate.txt,0,0
|
covx baud,baud_rate.txt,0,0
|
||||||
baud_rate.txt+=" bps"
|
baud_rate.txt+=" bps"
|
||||||
covx display_mode,aux2.txt,0,0
|
covx display_mode,aux2.txt,0,0
|
||||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints nspanelevent.txt,0
|
prints nspanelevent.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Page Exit Event
|
Page Exit Event
|
||||||
dim=0
|
dim=0
|
||||||
|
|
||||||
Variable (int32) counter
|
Variable (int32) counter
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Variable (string) aux1
|
Variable (string) aux1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) nspanelevent
|
Variable (string) nspanelevent
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 150
|
Max. Text Size: 150
|
||||||
|
|
||||||
Variable (string) aux2
|
Variable (string) aux2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Text ip_addr
|
Text ip_addr
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Initializing...
|
Text : Initializing...
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text t0
|
Text t0
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Please wait...
|
Text : Please wait...
|
||||||
Max. Text Size : 15
|
Max. Text Size : 15
|
||||||
|
|
||||||
Text t1
|
Text t1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : The process can take several seconds!
|
Text : The process can take several seconds!
|
||||||
Max. Text Size : 50
|
Max. Text Size : 50
|
||||||
|
|
||||||
Text tft_label
|
Text tft_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : TFT:
|
Text : TFT:
|
||||||
Max. Text Size : 4
|
Max. Text Size : 4
|
||||||
|
|
||||||
Text esph_label
|
Text esph_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : ESPHome:
|
Text : ESPHome:
|
||||||
Max. Text Size : 8
|
Max. Text Size : 8
|
||||||
|
|
||||||
Text bluep_label
|
Text bluep_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Blueprint:
|
Text : Blueprint:
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text tft_version
|
Text tft_version
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : 4.1.3
|
Text : 4.1.4
|
||||||
Max. Text Size : 9
|
Max. Text Size : 9
|
||||||
|
|
||||||
Text esph_version
|
Text esph_version
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 9
|
Max. Text Size : 9
|
||||||
|
|
||||||
Text bluep_version
|
Text bluep_version
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 9
|
Max. Text Size : 9
|
||||||
|
|
||||||
Text baud_rate
|
Text baud_rate
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text framework
|
Text framework
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Dual-state Button bt_reboot
|
Dual-state Button bt_reboot
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: on press and release
|
Send Component ID: on press and release
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text : Reboot
|
Text : Reboot
|
||||||
Max. Text Size : 6
|
Max. Text Size : 6
|
||||||
|
|
||||||
Timer timer
|
Timer timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 65534
|
Period (ms): 65534
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
counter.val++
|
counter.val++
|
||||||
covx counter.val,aux1.txt,0,0
|
covx counter.val,aux1.txt,0,0
|
||||||
covx display_mode,aux2.txt,0,0
|
covx display_mode,aux2.txt,0,0
|
||||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||||
bluep_version.txt="Retry: "+aux1.txt
|
bluep_version.txt="Retry: "+aux1.txt
|
||||||
printh 92
|
printh 92
|
||||||
prints "nspanelevent",0
|
prints "nspanelevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints nspanelevent.txt,0
|
prints nspanelevent.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<100)
|
if(dim<100)
|
||||||
{
|
{
|
||||||
dimdelta=100-dim
|
dimdelta=100-dim
|
||||||
dimdelta/=25
|
dimdelta/=25
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer tm_esphome
|
Timer tm_esphome
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 30000
|
Period (ms): 30000
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(baud==115200)
|
if(baud==115200)
|
||||||
{
|
{
|
||||||
bauds=921600
|
bauds=921600
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
bauds=115200
|
bauds=115200
|
||||||
}
|
}
|
||||||
covx baud,baud_rate.txt,0,0
|
covx baud,baud_rate.txt,0,0
|
||||||
baud_rate.txt+=" bps"
|
baud_rate.txt+=" bps"
|
||||||
|
|
||||||
Timer tm_pageid
|
Timer tm_pageid
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 2500
|
Period (ms): 2500
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
covx display_mode,aux2.txt,0,0
|
covx display_mode,aux2.txt,0,0
|
||||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints nspanelevent.txt,0
|
prints nspanelevent.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -109,7 +109,7 @@ Text body
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text : Please confirm
|
Text : Please confirm
|
||||||
Max. Text Size : 22
|
Max. Text Size : 254
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
@@ -1,243 +1,243 @@
|
|||||||
Page cover
|
Page cover
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "cover",0
|
prints "cover",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Variable (string) va1
|
Variable (string) va1
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Text : newtxt
|
Text : newtxt
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) coversetting
|
Variable (string) coversetting
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 255
|
Max. Text Size: 255
|
||||||
|
|
||||||
Variable (string) back_page
|
Variable (string) back_page
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Text : home
|
Text : home
|
||||||
Max. Text Size: 15
|
Max. Text Size: 15
|
||||||
|
|
||||||
Text battery_value
|
Text battery_value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text cover_value
|
Text cover_value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_label
|
Text page_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 25
|
Max. Text Size : 25
|
||||||
|
|
||||||
Text icon_state
|
Text icon_state
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text battery_icon
|
Text battery_icon
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Slider coverslider
|
Slider coverslider
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
Position : 0
|
Position : 0
|
||||||
Upper range limit: 100
|
Upper range limit: 100
|
||||||
Lower range limit: 0
|
Lower range limit: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
covx coverslider.val,va1.txt,0,0
|
covx coverslider.val,va1.txt,0,0
|
||||||
cover_value.txt=va1.txt+"%"
|
cover_value.txt=va1.txt+"%"
|
||||||
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
|
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints coversetting.txt,0
|
prints coversetting.txt,0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button cover_open
|
Button cover_open
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
|
prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button cover_close
|
Button cover_close
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
|
prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button cover_stop
|
Button cover_stop
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
|
prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
if(back_page.txt=="buttonpage01")
|
if(back_page.txt=="buttonpage01")
|
||||||
{
|
{
|
||||||
page buttonpage01
|
page buttonpage01
|
||||||
}else if(back_page.txt=="buttonpage02")
|
}else if(back_page.txt=="buttonpage02")
|
||||||
{
|
{
|
||||||
page buttonpage02
|
page buttonpage02
|
||||||
}else if(back_page.txt=="buttonpage03")
|
}else if(back_page.txt=="buttonpage03")
|
||||||
{
|
{
|
||||||
page buttonpage03
|
page buttonpage03
|
||||||
}else if(back_page.txt=="buttonpage04")
|
}else if(back_page.txt=="buttonpage04")
|
||||||
{
|
{
|
||||||
page buttonpage04
|
page buttonpage04
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,395 +1,395 @@
|
|||||||
Page entitypage01
|
Page entitypage01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "entitypage01",0
|
prints "entitypage01",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text value01_label
|
Text value01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value05_label
|
Text value05_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value04_label
|
Text value04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value02_label
|
Text value02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value03_label
|
Text value03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text entity01_label
|
Text entity01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Text value06_label
|
Text value06_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value07_label
|
Text value07_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value08_label
|
Text value08_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value01_pic
|
Text value01_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value02_pic
|
Text value02_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value03_pic
|
Text value03_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value04_pic
|
Text value04_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value05_pic
|
Text value05_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value06_pic
|
Text value06_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value07_pic
|
Text value07_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value08_pic
|
Text value08_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value06
|
Text value06
|
||||||
Attributes
|
Attributes
|
||||||
ID : 25
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value07
|
Text value07
|
||||||
Attributes
|
Attributes
|
||||||
ID : 26
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value08
|
Text value08
|
||||||
Attributes
|
Attributes
|
||||||
ID : 27
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 29
|
ID : 29
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 28
|
ID : 28
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 30
|
ID : 30
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page entitypage04
|
page entitypage04
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page entitypage02
|
page entitypage02
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
page entitypage03
|
page entitypage03
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
page entitypage04
|
page entitypage04
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,395 +1,395 @@
|
|||||||
Page entitypage02
|
Page entitypage02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "entitypage02",0
|
prints "entitypage02",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text value01_label
|
Text value01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value05_label
|
Text value05_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value04_label
|
Text value04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value02_label
|
Text value02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value03_label
|
Text value03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text entity02_label
|
Text entity02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Text value06_label
|
Text value06_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value07_label
|
Text value07_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value08_label
|
Text value08_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value01_pic
|
Text value01_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value02_pic
|
Text value02_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value03_pic
|
Text value03_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value04_pic
|
Text value04_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value05_pic
|
Text value05_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value06_pic
|
Text value06_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value07_pic
|
Text value07_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value08_pic
|
Text value08_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value06
|
Text value06
|
||||||
Attributes
|
Attributes
|
||||||
ID : 25
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value07
|
Text value07
|
||||||
Attributes
|
Attributes
|
||||||
ID : 26
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value08
|
Text value08
|
||||||
Attributes
|
Attributes
|
||||||
ID : 27
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 29
|
ID : 29
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 28
|
ID : 28
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 30
|
ID : 30
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page entitypage01
|
page entitypage01
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page entitypage03
|
page entitypage03
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,395 +1,395 @@
|
|||||||
Page entitypage03
|
Page entitypage03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "entitypage03",0
|
prints "entitypage03",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text value01_label
|
Text value01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value05_label
|
Text value05_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value04_label
|
Text value04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value02_label
|
Text value02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value03_label
|
Text value03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text entity03_label
|
Text entity03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Text value06_label
|
Text value06_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value07_label
|
Text value07_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value08_label
|
Text value08_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value01_pic
|
Text value01_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value02_pic
|
Text value02_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value03_pic
|
Text value03_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value04_pic
|
Text value04_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value05_pic
|
Text value05_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value06_pic
|
Text value06_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value07_pic
|
Text value07_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value08_pic
|
Text value08_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value06
|
Text value06
|
||||||
Attributes
|
Attributes
|
||||||
ID : 25
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value07
|
Text value07
|
||||||
Attributes
|
Attributes
|
||||||
ID : 26
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value08
|
Text value08
|
||||||
Attributes
|
Attributes
|
||||||
ID : 27
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 28
|
ID : 28
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 29
|
ID : 29
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 30
|
ID : 30
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page entitypage02
|
page entitypage02
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page entitypage04
|
page entitypage04
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
page entitypage01
|
page entitypage01
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,395 +1,395 @@
|
|||||||
Page entitypage04
|
Page entitypage04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 0
|
ID : 0
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Locked : no
|
Locked : no
|
||||||
Swide up page ID : disabled
|
Swide up page ID : disabled
|
||||||
Swide down page ID : disabled
|
Swide down page ID : disabled
|
||||||
Swide left page ID : disabled
|
Swide left page ID : disabled
|
||||||
Swide right page ID: disabled
|
Swide right page ID: disabled
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Preinitialize Event
|
Preinitialize Event
|
||||||
if(api==0)
|
if(api==0)
|
||||||
{
|
{
|
||||||
page home
|
page home
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
printh 92
|
printh 92
|
||||||
prints "currentpage",0
|
prints "currentpage",0
|
||||||
printh 00
|
printh 00
|
||||||
prints "entitypage04",0
|
prints "entitypage04",0
|
||||||
printh 00
|
printh 00
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
}
|
}
|
||||||
|
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
printh 91
|
printh 91
|
||||||
prints "touchevent",0
|
prints "touchevent",0
|
||||||
printh 00
|
printh 00
|
||||||
prints rand,0
|
prints rand,0
|
||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Text value01_label
|
Text value01_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 3
|
ID : 3
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value05_label
|
Text value05_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 4
|
ID : 4
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value04_label
|
Text value04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 5
|
ID : 5
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value02_label
|
Text value02_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 6
|
ID : 6
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value03_label
|
Text value03_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 7
|
ID : 7
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text entity04_label
|
Text entity04_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 8
|
ID : 8
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 30
|
Max. Text Size : 30
|
||||||
|
|
||||||
Text value06_label
|
Text value06_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 9
|
ID : 9
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value07_label
|
Text value07_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 10
|
ID : 10
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value08_label
|
Text value08_label
|
||||||
Attributes
|
Attributes
|
||||||
ID : 11
|
ID : 11
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Text value01_pic
|
Text value01_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value02_pic
|
Text value02_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 13
|
ID : 13
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value03_pic
|
Text value03_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 14
|
ID : 14
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value04_pic
|
Text value04_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 15
|
ID : 15
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value05_pic
|
Text value05_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 16
|
ID : 16
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value06_pic
|
Text value06_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 17
|
ID : 17
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value07_pic
|
Text value07_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 18
|
ID : 18
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value08_pic
|
Text value08_pic
|
||||||
Attributes
|
Attributes
|
||||||
ID : 19
|
ID : 19
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 5
|
Max. Text Size : 5
|
||||||
|
|
||||||
Text value01
|
Text value01
|
||||||
Attributes
|
Attributes
|
||||||
ID : 20
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value02
|
Text value02
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value03
|
Text value03
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value04
|
Text value04
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value05
|
Text value05
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 24
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value06
|
Text value06
|
||||||
Attributes
|
Attributes
|
||||||
ID : 25
|
ID : 25
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value07
|
Text value07
|
||||||
Attributes
|
Attributes
|
||||||
ID : 26
|
ID : 26
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text value08
|
Text value08
|
||||||
Attributes
|
Attributes
|
||||||
ID : 27
|
ID : 27
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 10
|
Max. Text Size : 10
|
||||||
|
|
||||||
Text page_index
|
Text page_index
|
||||||
Attributes
|
Attributes
|
||||||
ID : 29
|
ID : 29
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Associated Keyboard: none
|
Associated Keyboard: none
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 20
|
Max. Text Size : 20
|
||||||
|
|
||||||
Button button_back
|
Button button_back
|
||||||
Attributes
|
Attributes
|
||||||
ID : 28
|
ID : 28
|
||||||
Scope : local
|
Scope : local
|
||||||
Dragging : 0
|
Dragging : 0
|
||||||
Send Component ID: disabled
|
Send Component ID: disabled
|
||||||
State : unpressed
|
State : unpressed
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size : 3
|
Max. Text Size : 3
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
page home
|
page home
|
||||||
|
|
||||||
Timer swipestore
|
Timer swipestore
|
||||||
Attributes
|
Attributes
|
||||||
ID : 2
|
ID : 2
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 50
|
Period (ms): 50
|
||||||
Enabled : no
|
Enabled : no
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
swipex=tch0
|
swipex=tch0
|
||||||
swipey=tch1
|
swipey=tch1
|
||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 30
|
ID : 30
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Timer Event
|
Timer Event
|
||||||
if(dim<brightness)
|
if(dim<brightness)
|
||||||
{
|
{
|
||||||
dimdelta=brightness-dim
|
dimdelta=brightness-dim
|
||||||
dimdelta/=10
|
dimdelta/=10
|
||||||
if(dimdelta<1)
|
if(dimdelta<1)
|
||||||
{
|
{
|
||||||
dimdelta=1
|
dimdelta=1
|
||||||
}
|
}
|
||||||
dim+=dimdelta
|
dim+=dimdelta
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
wakeup_timer.en=0
|
wakeup_timer.en=0
|
||||||
}
|
}
|
||||||
|
|
||||||
TouchCap swipe
|
TouchCap swipe
|
||||||
Attributes
|
Attributes
|
||||||
ID : 1
|
ID : 1
|
||||||
Scope: local
|
Scope: local
|
||||||
Value: 0
|
Value: 0
|
||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Press Event
|
Touch Press Event
|
||||||
swipestore.en=1 // Start swipestore timer
|
swipestore.en=1 // Start swipestore timer
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
swipestore.en=0
|
swipestore.en=0
|
||||||
// Touch has ended, x
|
// Touch has ended, x
|
||||||
if(tch0==0)
|
if(tch0==0)
|
||||||
{
|
{
|
||||||
swipec=swipex-tch2
|
swipec=swipex-tch2
|
||||||
// From Left to Right
|
// From Left to Right
|
||||||
if(swipec>swipedx)
|
if(swipec>swipedx)
|
||||||
{
|
{
|
||||||
page entitypage03
|
page entitypage03
|
||||||
}
|
}
|
||||||
// Right to Left
|
// Right to Left
|
||||||
swipec2=0-swipedx
|
swipec2=0-swipedx
|
||||||
if(swipec<swipec2)
|
if(swipec<swipec2)
|
||||||
{
|
{
|
||||||
page entitypage01
|
page entitypage01
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Touch has ended, y
|
// Touch has ended, y
|
||||||
if(tch1==0)
|
if(tch1==0)
|
||||||
{
|
{
|
||||||
swipec=swipey-tch3
|
swipec=swipey-tch3
|
||||||
// From Up to Down
|
// From Up to Down
|
||||||
if(swipec>100)
|
if(swipec>100)
|
||||||
{
|
{
|
||||||
page entitypage01
|
page entitypage01
|
||||||
}
|
}
|
||||||
// Down to Up
|
// Down to Up
|
||||||
swipec2=0-swipedy
|
swipec2=0-swipedy
|
||||||
if(swipec<-100)
|
if(swipec<-100)
|
||||||
{
|
{
|
||||||
//page
|
//page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user