-
-
Notifications
You must be signed in to change notification settings - Fork 715
Description
Please add support for wt32-sc01 plus. There are a few other projects (see below) which use platformio to build solutions for this board, but it's hard to tell what's really necessary.
Additional info
See https://github.com/fritsjan/WT32-SC01-PLUS-PLATFORMIO which has:
After struggling to get it working with this parallel display, I found out that some of the display pins on the WT32-SC01-PLUS had a number higher than 31.
Unfortunately the TFT_eSPI library uses a trick which makes it impossible to use pins numbered above 31...Fortunately LovyanGFX library does not have this restriction.
...
First of all the WT32-SC01-PLUS is using a custom ESP32-S3 module made by WIRELESS-TAG.
It has 8Mb FLASH and 2Mb PSRAM. In platform.io the closest esp32-s3 for this is the um_tinys3 board.
So I used this here, see platform.ini for detailsNote that after uploading the firmware, the device is NOT automatically restarted, you have to do this manually (BUG in ESP32 library)
and platformio.ini
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:WT32-SC01-PLUS]
platform = espressif32
board = um_tinys3
framework = arduino
upload_speed = 921600
monitor_speed = 115200
;board_build.partitions = no_ota.csv
build_flags =
-DARDUINO_USB_CDC_ON_BOOT
-DLV_CONF_INCLUDE_SIMPLE
-DLV_COMP_CONF_INCLUDE_SIMPLE
-DLV_LVGL_H_INCLUDE_SIMPLE
-DBOARD_HAS_PSRAM
;-DDEBUG_TOUCH
-mfix-esp32-psram-cache-issue
-I src/ui/
-I src/
lib_deps =
SPI
;Wire
lovyan03/LovyanGFX@^0.4.18
lvgl/lvgl@^8.3.2
Also see https://github.com/HASwitchPlate/openHASP:
Which has this in platformio.ini:
; MIT License - Copyright (c) 2019-2023 Francis Van Roie
; For full license information read the LICENSE file in the project folder
;
; PlatformIO Project Configuration File
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
;**************************************************************
; Common project settings
;**************************************************************
[platformio]
extra_configs =
user_setups/lcd_config.ini
; -- Base configurations per platform
user_setups/esp32/_esp32.ini
user_setups/esp32s2/_esp32s2.ini
user_setups/esp32s3/_esp32s3.ini
; -- Put custom [env] files in this dir to be included in the build menu
user_setups/custom/*.ini
; -- Add customizations to this file only (copy and rename the template):
platformio_override.ini
; --- snip ---
And this in user_setups/esp32s3/_esp32s3.ini
; -- Platform specific build flags
[esp32s3]
extends = esp32
board_build.mcu = esp32s3
; --- snip ---
; -- The Arduino ESP32 v2.0.2 with 3 available flash sizes:
[arduino_esp32s3_v2]
extends = esp32s3
framework = arduino
;platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.01.01/platform-espressif32.zip
platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.06.04/platform-espressif32.zip
;platform = [email protected]
And this in user_setups/esp32s3/wt32-sc01-plus.ini
[wt32-sc01-plus]
extends = arduino_esp32s3_v2
board = esp32s3_qio_qspi
board_build.arduino.memory_type = qio_qspi
; --- snip ---
[env:wt32-sc01-plus_8MB]
extends = wt32-sc01-plus, flash_8mb
[env:wt32-sc01-plus_16MB]
extends = wt32-sc01-plus, flash_16mb
And this in boards/esp32s3_qio_qspi.json:
{
"build": {
"arduino": {
"ldscript": "esp32s3_out.ld",
"memory_type": "qio_qspi"
},
"boot": "qio",
"psram_type": "qspi",
"core": "esp32",
"extra_flags": [
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"mcu": "esp32s3",
"variant": "esp32s3",
"partitions": "esp32_partition_app1856k_spiffs320k.csv"
},
"connectivity": [
"wifi"
],
"debug": {
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"espidf",
"arduino"
],
"name": "Espressif Generic ESP32-S3 4M Flash, Tasmota 1856k Code/OTA, 320k FS",
"upload": {
"flash_size": "4MB",
"maximum_ram_size": 327680,
"maximum_size": 4194304,
"require_upload_port": true,
"speed": 921600
},
"url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/",
"vendor": "Espressif"
}