Turn on screen after turn off

This commit is contained in:
Edward Firmo
2023-11-30 14:11:36 +01:00
parent 72ab301a2a
commit 19e4e9d5b6
2 changed files with 2 additions and 1 deletions

View File

@@ -765,6 +765,7 @@ script:
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;

View File

@@ -68,7 +68,7 @@ esphome:
- wait_until:
condition:
- lambda: !lambda return disp1->is_setup();
timeout: 20s
timeout: 45s
- lambda: |-
static const char *const TAG = "on_boot";
nextion_status->execute();