Open Nanich87 opened 1 year ago
This is the working configuration that I use.
[env:WT32-SC01_v3_2]
; overrides the default arduino-esp32 framework with an custom built arduino-esp32 framework
; the custom arduino-esp32 framework provides better power managment, dynamic frquency scaling and 80Mhz Flash/SPIRAM support
; built from https://github.com/Jason2866/esp32-arduino-lib-builder
platform_packages = framework-arduinoespressif32 @ https://github.com/sharandac/arduino-esp32-hedge-ng
platform = espressif32@4.4.0
board = esp32dev
framework = arduino
lib_archive = true
board_build.f_flash = 80000000L
board_build.flash_mode = qio
monitor_speed = 115200
monitor_filters =
default
esp32_exception_decoder
board_build.partitions = twatch2021_4MB.csv
board_build.embed_txtfiles =
src/gui/mainbar/setup_tile/time_settings/timezones.json
src/utils/osm_map/osmtileserver.json
build_type = release
build_flags =
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DARDUNIO_NG
-DUSER_SETUP_LOADED=1
-DST7796_DRIVER=1
-DTFT_WIDTH=480
-DTFT_HEIGHT=320
-DTFT_ROTATION=0
-DPIN_SDA=18
-DPIN_SCL=19
-DTFT_MISO=-1
-DTFT_MOSI=13
-DTFT_SCLK=14
-DTFT_CS=15
-DTFT_DC=21
-DTFT_RST=22
-DTFT_LED=23
-DSPI_FREQUENCY=40000000
-D WT32_SC01
-D LV_LVGL_H_INCLUDE_SIMPLE
-D CORE_DEBUG_LEVEL=3
-D SERIAL_RX_BUFFER_SIZE=256
-ffunction-sections
-fdata-sections
-Wl,--gc-sections
-Os
build_src_filter =
+<*>
lib_deps =
https://github.com/lvgl/lvgl.git#v7.11.0
ESP Async WebServer@>=1.2.0
AsyncTCP@>=1.1.1
ArduinoJson@>=6.15.2
luc-github/ESP32SSDP
PubSubClient@>=2.8
nailbuster/ESP8266FtpServer
https://github.com/tobozo/ESP32-targz/archive/refs/heads/1.0.5-beta.zip
https://github.com/mobizt/ESP-Mail-Client.git#v2.4.8
Bodmer/TFT_eSPI
https://github.com/adafruit/Adafruit_FT6206_Library
mikalhart/TinyGPSPlus
h2zero/NimBLE-Arduino @ ^1.3.8
Build tool used:
used Hardware:
Description of problem:
WT32-SC01 has wrong configuration for TFT SPI in platformio.ini
Additional information and things you've tried: My board is v3.2 The correct settings can be found here https://github.com/HASwitchPlate/openHASP/blob/master/user_setups/esp32/wt32-sc01.ini