From 4731a30b85a160a52073bf8e10c7cf080952ec8e Mon Sep 17 00:00:00 2001 From: Chris Greening Date: Sun, 1 Oct 2023 19:58:23 +0100 Subject: [PATCH] Adds tinys3 config --- platformio.ini | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/platformio.ini b/platformio.ini index 97d6c1f..e4c07af 100644 --- a/platformio.ini +++ b/platformio.ini @@ -57,6 +57,50 @@ build_flags = monitor_filters = esp32_exception_decoder monitor_speed = 115200 +[env:TinyS3] +platform = espressif32 +board = um_tinys3 +framework = arduino +lib_deps = + SPI + SPIFFS + SD + FS + bodmer/TFT_eSPI + bodmer/JPEGDecoder + bitbank2/JPEGDEC + https://github.com/esp-arduino-libs/ESP32_JPEG + https://github.com/Bodmer/TJpg_Decoder +board_build.arduino.memory_type = dio_opi +build_flags = + ; maximum speed! + -Ofast + -DUSE_DMA + -DBOARD_HAS_PSRAM + ; TFT_eSPI setup + -DUSER_SETUP_LOADED + -DTFT_WIDTH=240 + -DTFT_HEIGHT=280 + -DST7789_DRIVER=1 + -DTFT_SCLK=6 + -DTFT_MISO=8 + -DTFT_MOSI=4 + -DTFT_RST=5 + -DTFT_DC=21 + -DTFT_CS=8 + -DTFT_BL=7 + -DTOUCH_CS=-1 + -DTFT_BACKLIGHT_ON=HIGH + -DLOAD_FONT2 + -DSPI_FREQUENCY=80000000 + ; make sure serial output works + -DARDUINO_USB_MODE=1 + -DARDUINO_USB_CDC_ON_BOOT=1 + -L .pio/libdeps/TinyS3/ESP32_JPEG/src/esp32s3 + -llibesp_codec.a +; decode exceptions +monitor_filters = esp32_exception_decoder +monitor_speed = 115200 [env:cheap-yellow-display] platform = espressif32