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:
@@ -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: |-
|
||||
|
||||
Reference in New Issue
Block a user