From a918817b205d6084b35812779bb0eaacf89de917 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Wed, 11 Nov 2020 20:15:56 +0100 Subject: [PATCH] Add ttgo-esp32-poe support --- platformio.ini | 2 -- src/hasp_ethernet_esp32.cpp | 2 ++ user_setups/esp32/TTGO-esp32-POE_ili9341.ini | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 8a446046..43dd1409 100644 --- a/platformio.ini +++ b/platformio.ini @@ -104,7 +104,6 @@ esp32_flags= -D HTTP_UPLOAD_BUFLEN=1024 ; lower http upload buffer -D MQTT_MAX_PACKET_SIZE=2048 ; longer PubSubClient messages ; -- hasp-lvgl build options ------------------------ - -D HASP_USE_WIFI=1 -D HASP_USE_MQTT=1 -D HASP_USE_HTTP=1 -D HASP_USE_MDNS=1 @@ -113,7 +112,6 @@ esp32_flags= -D HASP_USE_SPIFFS=1 -D HASP_USE_EEPROM=1 -D HASP_USE_GPIO=1 - -D HASP_USE_ETHERNET=0 stm32_flags= ${env.build_flags} diff --git a/src/hasp_ethernet_esp32.cpp b/src/hasp_ethernet_esp32.cpp index 85fa2eb1..0f290561 100644 --- a/src/hasp_ethernet_esp32.cpp +++ b/src/hasp_ethernet_esp32.cpp @@ -1,8 +1,10 @@ #include #include "ArduinoJson.h" #include "ArduinoLog.h" + #include "hasp_conf.h" #include "hasp_hal.h" +#include "hasp_debug.h" #if HASP_USE_ETHERNET > 0 diff --git a/user_setups/esp32/TTGO-esp32-POE_ili9341.ini b/user_setups/esp32/TTGO-esp32-POE_ili9341.ini index 0c896838..bbf50b10 100644 --- a/user_setups/esp32/TTGO-esp32-POE_ili9341.ini +++ b/user_setups/esp32/TTGO-esp32-POE_ili9341.ini @@ -30,6 +30,9 @@ build_flags = -D TFT_BCKL=16 ; None, configurable via web UI (e.g. 21) -D TOUCH_CS=32 ; (can also be 22 or 16) ; -- Options ---------------------------------------- - -D HASP_USE_TELNET=1 -D HASP_USE_ETHERNET=1 -D HASP_USE_WIFI=0 + +lib_ignore = + GxTFT + XPT2046_Touchscreen \ No newline at end of file