Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to compile with your YAML #8

Open
eth030 opened this issue Jan 10, 2023 · 7 comments
Open

Failing to compile with your YAML #8

eth030 opened this issue Jan 10, 2023 · 7 comments

Comments

@eth030
Copy link

eth030 commented Jan 10, 2023

Hi I am having issue with your yaml, can you look over it, maybe you can spot the error. Thank you very much.

INFO Reading configuration /config/esphome/s3.yaml...
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING GPIO0 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing propanemonitor (board: esp32s3box; framework: arduino; platform: platformio/espressif32 @ 5.0.0)
--------------------------------------------------------------------------------
Library Manager: Installing esphome/AsyncTCP-esphome @ 1.2.2
INFO Installing esphome/AsyncTCP-esphome @ 1.2.2
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Installing git+https://github.com/landonr/lilygo-tdisplays3-esphome.git
INFO Installing git+https://github.com/landonr/lilygo-tdisplays3-esphome.git
git version 2.30.2
Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-1278epqv'...
Library Manager: [email protected]+sha.986ca0a has been installed!
INFO [email protected]+sha.986ca0a has been installed!
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
INFO Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing bblanchon/ArduinoJson @ 6.18.5
INFO Installing bblanchon/ArduinoJson @ 6.18.5
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch3 
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- SPI @ 2.0.0
|-- FS @ 2.0.0
|-- SPIFFS @ 2.0.0
|-- TFT_eSPI @ 2.4.71+sha.986ca0a
|-- WiFi @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
|   |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- ArduinoJson @ 6.18.5
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/api/api_connection.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/api/api_pb2_service.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/api/api_server.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/api/list_entities.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/api/proto.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/api/subscribe_state.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/api/user_services.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/binary_sensor/automation.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/binary_sensor/binary_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/binary_sensor/filter.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/ble_rssi/ble_rssi_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/button/button.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/esp32/core.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/esp32/gpio.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/esp32/preferences.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/gpio/binary_sensor/gpio_binary_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/gpio/switch/gpio_switch.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/json/json_util.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/logger/logger.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/md5/md5.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/mdns/mdns_component.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/mdns/mdns_esp32_arduino.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/mdns/mdns_esp_idf.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/mdns/mdns_rp2040.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/mopeka_pro_check/mopeka_pro_check.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/network/util.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/number/automation.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/number/number.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/number/number_call.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/number/number_traits.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/ota/ota_backend_arduino_rp2040.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/ota/ota_component.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/restart/button/restart_button.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/script/script.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/sensor/automation.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/sensor/filter.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/sensor/sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/socket/socket.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/switch/automation.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/switch/switch.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/template/binary_sensor/template_binary_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/template/number/template_number.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/template/sensor/template_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/template/switch/template_switch.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/template/text_sensor/template_text_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/text_sensor/filter.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/text_sensor/text_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/uptime/uptime_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/web_server/list_entities.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/web_server/web_server.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/wifi/wifi_component.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/wifi/wifi_component_pico_w.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/wifi_info/wifi_info_text_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/components/wifi_signal/wifi_signal_sensor.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/application.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/color.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/component.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/component_iterator.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/controller.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/entity_base.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/helpers.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/log.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/scheduler.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/esphome/core/util.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/src/main.cpp.o
Generating partitions /data/propanemonitor/.pioenvs/propanemonitor/partitions.bin
Compiling /data/propanemonitor/.pioenvs/propanemonitor/libb3b/AsyncTCP-esphome/AsyncTCP.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/lib91f/SPI/SPI.cpp.o
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setup_Select.h:52,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:42,
                 from src/tft_espi_display.h:2,
                 from src/main.cpp:254:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:21: warning: "TFT_CS" redefined
 #define TFT_CS 6  // Chip select control pin (library pulls permanently low
 
In file included from /data/cache/platformio/packages/[email protected]/cores/esp32/Arduino.h:209,
                 from /data/cache/platformio/packages/[email protected]/libraries/WiFi/src/WiFiUdp.h:38,
                 from /data/cache/platformio/packages/[email protected]/libraries/DNSServer/src/DNSServer.h:3,
                 from src/esphome/components/captive_portal/captive_portal.h:6,
                 from src/esphome.h:22,
                 from src/main.cpp:3:
/data/cache/platformio/packages/[email protected]/variants/esp32s3box/pins_arduino.h:52: note: this is the location of the previous definition
 #define TFT_CS      5
 
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setup_Select.h:52,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:42,
                 from src/tft_espi_display.h:2,
                 from src/main.cpp:254:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:22: warning: "TFT_DC" redefined
 #define TFT_DC 7  // Data Command control pin - must use a pin in the range 0-31
 
In file included from /data/cache/platformio/packages/[email protected]/cores/esp32/Arduino.h:209,
                 from /data/cache/platformio/packages/[email protected]/libraries/WiFi/src/WiFiUdp.h:38,
                 from /data/cache/platformio/packages/[email protected]/libraries/DNSServer/src/DNSServer.h:3,
                 from src/esphome/components/captive_portal/captive_portal.h:6,
                 from src/esphome.h:22,
                 from src/main.cpp:3:
/data/cache/platformio/packages/[email protected]/variants/esp32s3box/pins_arduino.h:51: note: this is the location of the previous definition
 #define TFT_DC      4
 
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setup_Select.h:52,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:42,
                 from src/tft_espi_display.h:2,
                 from src/main.cpp:254:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:23: warning: "TFT_RST" redefined
 #define TFT_RST 5 // Reset pin, toggles on startup
 
In file included from /data/cache/platformio/packages/[email protected]/cores/esp32/Arduino.h:209,
                 from /data/cache/platformio/packages/[email protected]/libraries/WiFi/src/WiFiUdp.h:38,
                 from /data/cache/platformio/packages/[email protected]/libraries/DNSServer/src/DNSServer.h:3,
                 from src/esphome/components/captive_portal/captive_portal.h:6,
                 from src/esphome.h:22,
                 from src/main.cpp:3:
/data/cache/platformio/packages/[email protected]/variants/esp32s3box/pins_arduino.h:57: note: this is the location of the previous definition
 #define TFT_RST    48
 
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setup_Select.h:52,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:42,
                 from src/tft_espi_display.h:2,
                 from src/main.cpp:254:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:41: warning: "TFT_BL" redefined
 #define TFT_BL 38 // LED back-light (required for M5Stack)
 
In file included from /data/cache/platformio/packages/[email protected]/cores/esp32/Arduino.h:209,
                 from /data/cache/platformio/packages/[email protected]/libraries/WiFi/src/WiFiUdp.h:38,
                 from /data/cache/platformio/packages/[email protected]/libraries/DNSServer/src/DNSServer.h:3,
                 from src/esphome/components/captive_portal/captive_portal.h:6,
                 from src/esphome.h:22,
                 from src/main.cpp:3:
/data/cache/platformio/packages/[email protected]/variants/esp32s3box/pins_arduino.h:56: note: this is the location of the previous definition
 #define TFT_BL     45
 
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:68,
                 from src/tft_espi_display.h:2,
                 from src/main.cpp:254:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.h:11:3: warning: #warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update) [-Wcpp]
  #warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update)
   ^~~~~~~
In file included from src/tft_espi_display.h:2,
                 from src/main.cpp:254:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:882:8: warning: #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! [-Wcpp]
       #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available!
        ^~~~~~~
Archiving /data/propanemonitor/.pioenvs/propanemonitor/lib91f/libSPI.a
Compiling /data/propanemonitor/.pioenvs/propanemonitor/lib572/FS/FS.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/lib572/FS/vfs_api.cpp.o
Archiving /data/propanemonitor/.pioenvs/propanemonitor/libb3b/libAsyncTCP-esphome.a
Compiling /data/propanemonitor/.pioenvs/propanemonitor/lib4d2/SPIFFS/SPIFFS.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/lib57e/tdisplays3/TFT_eSPI.cpp.o
Archiving /data/propanemonitor/.pioenvs/propanemonitor/lib572/libFS.a
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:71:30: error: 'display' was not declared in this scope
       App.register_component(display);
                              ^~~~~~~
/config/esphome/s3.yaml:71:30: note: suggested alternative: 'delay'
       App.register_component(display);
                              ^~~~~~~
                              delay
/config/esphome/s3.yaml:72:22: error: could not convert '{display}' from '<brace-enclosed initializer list>' to 'std::vector<esphome::Component*>'
       return {display};
                      ^
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:534:16: error: 'display' was not declared in this scope
                           return display->tft.color565(255, 180, 0);           // orange
                ^      
/config/esphome/s3.yaml:534:16: note: suggested alternative: 'delay'
                           return display->tft.color565(255, 180, 0);           // orange
                ^      
                delay
/config/esphome/s3.yaml:536:16: error: 'display' was not declared in this scope
                           return display->tft.color565(255, 255, 0);           // yellow
                ^      
/config/esphome/s3.yaml:536:16: note: suggested alternative: 'delay'
                           return display->tft.color565(255, 255, 0);           // yellow
                ^      
                delay
/config/esphome/s3.yaml:538:16: error: 'display' was not declared in this scope
                           return display->tft.color565(180, 255, 0);           // greenyellow
                ^      
/config/esphome/s3.yaml:538:16: note: suggested alternative: 'delay'
                           return display->tft.color565(180, 255, 0);           // greenyellow
                ^      
                delay
/config/esphome/s3.yaml:540:16: error: 'display' was not declared in this scope
                           return display->tft.color565(0, 255, 0);             // green
                ^      
/config/esphome/s3.yaml:540:16: note: suggested alternative: 'delay'
                           return display->tft.color565(0, 255, 0);             // green
                ^      
                delay
/config/esphome/s3.yaml:542:18: error: 'display' was not declared in this scope
                             return display->tft.color565(255, 0, 0);           // red
                  ^      
/config/esphome/s3.yaml:542:18: note: suggested alternative: 'delay'
                             return display->tft.color565(255, 0, 0);           // red
                  ^      
                  delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:563:18: error: 'display' was not declared in this scope
                             return display->tft.color565(0, 0, 0);             // black
                  ^      
/config/esphome/s3.yaml:563:18: note: suggested alternative: 'delay'
                             return display->tft.color565(0, 0, 0);             // black
                  ^      
                  delay
/config/esphome/s3.yaml:567:18: error: 'display' was not declared in this scope
                             return display->tft.color565(255, 0, 0);           // red
                  ^      
/config/esphome/s3.yaml:567:18: note: suggested alternative: 'delay'
                             return display->tft.color565(255, 0, 0);           // red
                  ^      
                  delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:611:16: error: 'display' was not declared in this scope
                             return display->tft.color565(255, 180, 0);           // orange
                ^      
/config/esphome/s3.yaml:611:16: note: suggested alternative: 'delay'
                             return display->tft.color565(255, 180, 0);           // orange
                ^      
                delay
/config/esphome/s3.yaml:613:16: error: 'display' was not declared in this scope
                             return display->tft.color565(255, 255, 0);           // yellow
                ^      
/config/esphome/s3.yaml:613:16: note: suggested alternative: 'delay'
                             return display->tft.color565(255, 255, 0);           // yellow
                ^      
                delay
/config/esphome/s3.yaml:615:16: error: 'display' was not declared in this scope
                             return display->tft.color565(180, 255, 0);           // greenyellow
                ^      
/config/esphome/s3.yaml:615:16: note: suggested alternative: 'delay'
                             return display->tft.color565(180, 255, 0);           // greenyellow
                ^      
                delay
/config/esphome/s3.yaml:617:16: error: 'display' was not declared in this scope
                             return display->tft.color565(0, 255, 0);             // green
                ^      
/config/esphome/s3.yaml:617:16: note: suggested alternative: 'delay'
                             return display->tft.color565(0, 255, 0);             // green
                ^      
                delay
/config/esphome/s3.yaml:619:18: error: 'display' was not declared in this scope
                               return display->tft.color565(255, 0, 0);           // red
                  ^      
/config/esphome/s3.yaml:619:18: note: suggested alternative: 'delay'
                               return display->tft.color565(255, 0, 0);           // red
                  ^      
                  delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:642:18: error: 'display' was not declared in this scope
                     return display->tft.color565(0, 0, 0);             // black
                  ^  ~~~~
/config/esphome/s3.yaml:642:18: note: suggested alternative: 'delay'
                     return display->tft.color565(0, 0, 0);             // black
                  ^  ~~~~
                  delay
/config/esphome/s3.yaml:646:18: error: 'display' was not declared in this scope
                     return display->tft.color565(255, 0, 0);           // red
                  ^  ~~~~
/config/esphome/s3.yaml:646:18: note: suggested alternative: 'delay'
                     return display->tft.color565(255, 0, 0);           // red
                  ^  ~~~~
                  delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:670:18: error: 'display' was not declared in this scope
                             return display->tft.color565(0, 0, 0);             // black
                  ^      
/config/esphome/s3.yaml:670:18: note: suggested alternative: 'delay'
                             return display->tft.color565(0, 0, 0);             // black
                  ^      
                  delay
/config/esphome/s3.yaml:674:18: error: 'display' was not declared in this scope
                             return display->tft.color565(255, 0, 0);           // red
                  ^      
/config/esphome/s3.yaml:674:18: note: suggested alternative: 'delay'
                             return display->tft.color565(255, 0, 0);           // red
                  ^      
                  delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:702:18: error: 'display' was not declared in this scope
                             return display->tft.color565(0, 0, 0);             // black
                  ^      
/config/esphome/s3.yaml:702:18: note: suggested alternative: 'delay'
                             return display->tft.color565(0, 0, 0);             // black
                  ^      
                  delay
/config/esphome/s3.yaml:706:18: error: 'display' was not declared in this scope
                             return display->tft.color565(255, 0, 0);           // red
                  ^      
/config/esphome/s3.yaml:706:18: note: suggested alternative: 'delay'
                             return display->tft.color565(255, 0, 0);           // red
                  ^      
                  delay
Compiling /data/propanemonitor/.pioenvs/propanemonitor/lib7dc/WiFi/WiFi.cpp.o
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:834:33: error: 'display' was not declared in this scope
           int xWidth =              display->tft.width();
                                 ^~~~~~~
/config/esphome/s3.yaml:834:33: note: suggested alternative: 'delay'
           int xWidth =              display->tft.width();
                                 ^~~~~~~
                                 delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:923:33: error: 'display' was not declared in this scope
           int xWidth =              display->tft.width();
                                 ^~~~~~~
/config/esphome/s3.yaml:923:33: note: suggested alternative: 'delay'
           int xWidth =              display->tft.width();
                                 ^~~~~~~
                                 delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:1105:7: error: 'display' was not declared in this scope
           display->tft.fillScreen(TFT_BLACK);
       ^   ~~~
/config/esphome/s3.yaml:1105:7: note: suggested alternative: 'delay'
           display->tft.fillScreen(TFT_BLACK);
       ^   ~~~
       delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:1145:33: error: 'display' was not declared in this scope
           int xWidth =              display->tft.width();
                                 ^~~~~~~
/config/esphome/s3.yaml:1145:33: note: suggested alternative: 'delay'
           int xWidth =              display->tft.width();
                                 ^~~~~~~
                                 delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:1192:7: error: 'display' was not declared in this scope
           display->tft.fillScreen(TFT_BLACK);
       ^   ~~~
/config/esphome/s3.yaml:1192:7: note: suggested alternative: 'delay'
           display->tft.fillScreen(TFT_BLACK);
       ^   ~~~
       delay
/config/esphome/s3.yaml: In lambda function:
/config/esphome/s3.yaml:1221:7: error: 'display' was not declared in this scope
           display->tft.fillScreen(TFT_BLACK);
       ^   ~~~
/config/esphome/s3.yaml:1221:7: note: suggested alternative: 'delay'
           display->tft.fillScreen(TFT_BLACK);
       ^   ~~~
       delay
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setup_Select.h:52,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:42,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:21: warning: "TFT_CS" redefined
 #define TFT_CS 6  // Chip select control pin (library pulls permanently low
 
In file included from /data/cache/platformio/packages/[email protected]/cores/esp32/Arduino.h:209,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:30,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/cache/platformio/packages/[email protected]/variants/esp32s3box/pins_arduino.h:52: note: this is the location of the previous definition
 #define TFT_CS      5
 
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setup_Select.h:52,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:42,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:22: warning: "TFT_DC" redefined
 #define TFT_DC 7  // Data Command control pin - must use a pin in the range 0-31
 
In file included from /data/cache/platformio/packages/[email protected]/cores/esp32/Arduino.h:209,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:30,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/cache/platformio/packages/[email protected]/variants/esp32s3box/pins_arduino.h:51: note: this is the location of the previous definition
 #define TFT_DC      4
 
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setup_Select.h:52,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:42,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:23: warning: "TFT_RST" redefined
 #define TFT_RST 5 // Reset pin, toggles on startup
 
In file included from /data/cache/platformio/packages/[email protected]/cores/esp32/Arduino.h:209,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:30,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/cache/platformio/packages/[email protected]/variants/esp32s3box/pins_arduino.h:57: note: this is the location of the previous definition
 #define TFT_RST    48
 
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setup_Select.h:52,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:42,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:41: warning: "TFT_BL" redefined
 #define TFT_BL 38 // LED back-light (required for M5Stack)
 
In file included from /data/cache/platformio/packages/[email protected]/cores/esp32/Arduino.h:209,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:30,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/cache/platformio/packages/[email protected]/variants/esp32s3box/pins_arduino.h:56: note: this is the location of the previous definition
 #define TFT_BL     45
 
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:68,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.h:11:3: warning: #warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update) [-Wcpp]
  #warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update)
   ^~~~~~~
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:882:8: warning: #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! [-Wcpp]
       #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available!
        ^~~~~~~
Archiving /data/propanemonitor/.pioenvs/propanemonitor/lib4d2/libSPIFFS.a
Compiling /data/propanemonitor/.pioenvs/propanemonitor/lib7dc/WiFi/WiFiAP.cpp.o
Compiling /data/propanemonitor/.pioenvs/propanemonitor/lib7dc/WiFi/WiFiClient.cpp.o
*** [/data/propanemonitor/.pioenvs/propanemonitor/src/main.cpp.o] Error 1
In file included from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setup_Select.h:52,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.h:42,
                 from /data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/TFT_eSPI.cpp:17:
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.c: In member function 'uint8_t TFT_eSPI::readByte()':
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:32:16: warning: right shift count >= width of type [-Wshift-count-overflow]
 #define TFT_D0 39 // Must use pins in the range 0-31 for the data bus
                ^~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.c:115:16: note: in expansion of macro 'TFT_D0'
   b  = (((reg>>TFT_D0)&1) << 0);
                ^~~~~~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:33:16: warning: right shift count >= width of type [-Wshift-count-overflow]
 #define TFT_D1 40 // so a single register write sets/clears all bits.
                ^~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.c:116:16: note: in expansion of macro 'TFT_D1'
   b |= (((reg>>TFT_D1)&1) << 1);
                ^~~~~~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:34:16: warning: right shift count >= width of type [-Wshift-count-overflow]
 #define TFT_D2 41 // Pins can be randomly assigned, this does not affect
                ^~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.c:117:16: note: in expansion of macro 'TFT_D2'
   b |= (((reg>>TFT_D2)&1) << 2);
                ^~~~~~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:35:16: warning: right shift count >= width of type [-Wshift-count-overflow]
 #define TFT_D3 42 // TFT screen update performance.
                ^~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.c:118:16: note: in expansion of macro 'TFT_D3'
   b |= (((reg>>TFT_D3)&1) << 3);
                ^~~~~~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:36:16: warning: right shift count >= width of type [-Wshift-count-overflow]
 #define TFT_D4 45
                ^~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.c:119:16: note: in expansion of macro 'TFT_D4'
   b |= (((reg>>TFT_D4)&1) << 4);
                ^~~~~~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:37:16: warning: right shift count >= width of type [-Wshift-count-overflow]
 #define TFT_D5 46
                ^~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.c:120:16: note: in expansion of macro 'TFT_D5'
   b |= (((reg>>TFT_D5)&1) << 5);
                ^~~~~~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:38:16: warning: right shift count >= width of type [-Wshift-count-overflow]
 #define TFT_D6 47
                ^~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.c:121:16: note: in expansion of macro 'TFT_D6'
   b |= (((reg>>TFT_D6)&1) << 6);
                ^~~~~~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/User_Setups/Setup24_ST7789.h:39:16: warning: right shift count >= width of type [-Wshift-count-overflow]
 #define TFT_D7 48
                ^~
/data/propanemonitor/.piolibdeps/propanemonitor/tdisplays3/Processors/TFT_eSPI_ESP32_S3.c:122:16: note: in expansion of macro 'TFT_D7'
   b |= (((reg>>TFT_D7)&1) << 7);
                ^~~~~~
========================= [FAILED] Took 122.51 seconds =========================

@rperciaccante
Copy link
Owner

Can you confirm that you are using ESPHome version 2022.11 or higher?

@eth030
Copy link
Author

eth030 commented Jan 11, 2023

Can you confirm that you are using ESPHome version 2022.11 or higher?

ESPHome
Current version: 2022.12.3

@rperciaccante
Copy link
Owner

I just checked in a bunch of changes - the errors indicating the re-assignment of pins can be safely ignored for now.

@rperciaccante
Copy link
Owner

Can you confirm that you are using ESPHome version 2022.11 or higher?

@eisaheinig can you confirm you are using the tft_espi_display.h file included in this repo? There is a change in that file that will cause your errors if you are not using this version.

@rperciaccante
Copy link
Owner

Please make sure your tft_espi_display.h file looks like the following:

#include <SPI.h>
#include <TFT_eSPI.h>
#include "esphome.h"
#include "Free_Fonts.h"


#ifndef DISPLAYCONTROLLER
#define DISPLAYCONTROLLER


class DisplayController : public Component

{
	public:

	void setup() override {
		tft.init();
	}
	TFT_eSPI tft = TFT_eSPI();
	TFT_eSprite spr = TFT_eSprite(&tft); // Sprite object
	private:
};
DisplayController * display = new DisplayController();

#endif

@eth030
Copy link
Author

eth030 commented Jan 14, 2023

Can you confirm that you are using ESPHome version 2022.11 or higher?

@eisaheinig can you confirm you are using the tft_espi_display.h file included in this repo? There is a change in that file that will cause your errors if you are not using this version.

I was using the tft_espi from the manufacturer https://github.com/Xinyuan-LilyGO/T-Display-S3
Mine is way bigger than yours, pun not intended:

#include <SPI.h>
#include <TFT_eSPI.h>
#include "esphome.h"
#include "Free_Fonts.h"

#ifndef DISPLAYCONTROLLER
#define DISPLAYCONTROLLER

class DisplayController : public Component
{
	double barSize = 0;
	public:
	TFT_eSPI tft = TFT_eSPI();
	std::string time = "init";
	void setup() override {
		tft.init();
		tft.fillScreen(TFT_BLACK);
		tft.setRotation(3);
		tft.setFreeFont(FSB18);
	}

	void drawString(std::string text) {
	  	tft.setTextColor(TFT_RED, TFT_BLACK);
		tft.drawString(text.c_str(), 8, 64, GFXFF);
	}

	void drawBar() {
		tft.fillRect(0, 4, barSize, 8, TFT_RED);
		barSize+=1;
		if(barSize > 320) {
			tft.fillRect(0, 4, barSize, 8, TFT_BLACK);
			barSize = 0;
		}
	}

	void clear() {
		tft.fillScreen(TFT_BLACK);
	}

	void loop() override {
	}

	private:

};
DisplayController * displayControllerComponent = new DisplayController();

#endif

Thanks for helping out, I will try yours.

@rperciaccante
Copy link
Owner

That will do it. I edited that file to make the ESPHome code easier to read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants