esp-idf upload tft

Still a bit buggy, but this is probably the first working version of an esp-idf upload TFT to be published.
I will work more on this, but wanna have this commit as a reference.
This commit is contained in:
Edward Firmo
2023-10-31 22:48:36 +01:00
parent bfc18fd307
commit 09275f1414
2 changed files with 130 additions and 146 deletions

View File

@@ -9,13 +9,10 @@ substitutions:
################## Defaults ##################
# Just in case user forgets to set something #
nextion_update_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/raw/main/nspanel_eu.tft"
# nextion_update_blank_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/raw/main/custom_configuration/nspanel_blank.tft"
##############################################
##### DON'T CHANGE THIS #####
version: "4.1dev3"
upload_tft_chunk_size_max: "32768"
#############################
##### ESPHOME CONFIGURATION #####
@@ -716,10 +713,11 @@ display:
- id: disp1
platform: nextion
uart_id: tf_uart
#tft_url: ${nextion_update_url}
#tft_url: ${nextion_update_url} # Should come back when esp-idf Nextion is available
on_page: # I couldn't make this trigger to work, so used text_sensor nspanelevent and localevent instead
then:
- lambda: ESP_LOGW("display.disp1.on_page", "NEXTION PAGE CHANGED");
lambda: |-
ESP_LOGW("display.disp1.on_page", "NEXTION PAGE CHANGED");
ESP_LOGW("display.disp1.on_page", "New page: %i", int(x));
on_setup:
then:
- lambda: |-