diff --git a/examples/ttgo_tdisplay_s3/platformio.ini b/examples/ttgo_tdisplay_s3/platformio.ini index c3e2693b..2cabe755 100644 --- a/examples/ttgo_tdisplay_s3/platformio.ini +++ b/examples/ttgo_tdisplay_s3/platformio.ini @@ -18,33 +18,35 @@ extra_configs = ../../unified-lib-deps.ini ssid = ${sysenv.PIO_WIFI_SSID} password = ${sysenv.PIO_WIFI_PASSWORD} -[env] +[common] +platform = espressif32 framework = arduino upload_speed = 1500000 monitor_speed = 115200 build_flags = '-DWIFI_SSID="${wifi.ssid}"' '-DWIFI_PASS="${wifi.password}"' + -D ARDUINO_ESP32_DEV=1 -D CORE_DEBUG_LEVEL=0 lib_deps = ${commonlibs.lib_deps} -[env:esp32s3] -framework = ${env.framework} -upload_speed = ${env.upload_speed} -monitor_speed = ${env.monitor_speed} -platform = espressif32 @ 5.0.0 +[esp32_common] +platform = ${common.platform} +board = lolin32 +framework = ${common.framework} +upload_speed = ${common.upload_speed} +monitor_speed = ${common.monitor_speed} +build_flags = ${common.build_flags} +lib_deps = ${common.lib_deps} +board_build.partitions = min_spiffs.csv + +[env:ESP32S3] +extends = esp32_common board = esp32-s3-devkitc-1 -platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3 -lib_deps = ${env.lib_deps} -build_flags = - ${env.build_flags} - -DBOARD_HAS_PSRAM - -DARDUINO_USB_MODE=1 - -DARDUINO_USB_CDC_ON_BOOT=1 - -board_build.partitions = default_8MB.csv -board_build.arduino.memory_type = qspi_opi -board_build.flash_size = 8MB -board_build.psram_type = opi +; change microcontroller +board_build.mcu = esp32s3 +; change MCU frequency +board_build.f_cpu = 240000000L +