New on_touch event from Nextion component
This commit is contained in:
@@ -764,6 +764,8 @@ display:
|
|||||||
platform: nextion
|
platform: nextion
|
||||||
uart_id: tf_uart
|
uart_id: tf_uart
|
||||||
start_up_page: 8
|
start_up_page: 8
|
||||||
|
on_setup:
|
||||||
|
- script.execute: boot_sequence
|
||||||
on_page:
|
on_page:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
static const char *const TAG = "display.disp1.on_page";
|
static const char *const TAG = "display.disp1.on_page";
|
||||||
@@ -771,9 +773,9 @@ display:
|
|||||||
ESP_LOGD(TAG, "New page: %s (%i)" , id(page_names)[x].c_str(), x);
|
ESP_LOGD(TAG, "New page: %s (%i)" , id(page_names)[x].c_str(), x);
|
||||||
current_page->publish_state(id(page_names)[x].c_str());
|
current_page->publish_state(id(page_names)[x].c_str());
|
||||||
page_changed->execute(id(page_names)[x].c_str());
|
page_changed->execute(id(page_names)[x].c_str());
|
||||||
|
on_touch:
|
||||||
on_setup:
|
lambda: |-
|
||||||
- script.execute: boot_sequence
|
timer_reset_all->execute(current_page->state.c_str());
|
||||||
|
|
||||||
##### START - GLOBALS CONFIGURATION #####
|
##### START - GLOBALS CONFIGURATION #####
|
||||||
globals:
|
globals:
|
||||||
@@ -1246,6 +1248,7 @@ sensor:
|
|||||||
on_value:
|
on_value:
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
|
ESP_LOGE("sensor.touchevent", "Deprecated method called!");
|
||||||
timer_reset_all->execute(current_page->state.c_str());
|
timer_reset_all->execute(current_page->state.c_str());
|
||||||
|
|
||||||
##### INTERNAL TEMPERATURE SENSOR, ADC VALUE #####
|
##### INTERNAL TEMPERATURE SENSOR, ADC VALUE #####
|
||||||
|
|||||||
Reference in New Issue
Block a user