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