From 1a73c156972f28178c6987bad4ff706bb1428851 Mon Sep 17 00:00:00 2001 From: mcuw <112967559+mcuw@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:12:56 +0200 Subject: [PATCH] #8 add LilyGo T-Deck board --- README.md | 2 ++ boards/LilyGo-T-Deck.json | 40 +++++++++++++++++++++++++++++++++++++++ platformio.ini | 13 +++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 boards/LilyGo-T-Deck.json diff --git a/README.md b/README.md index 8a23611..a7a64d7 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,8 @@ Buy on AliExpress (affiliate links) ... - [LilyGo T-Watch S3](https://s.click.aliexpress.com/e/_DEZVvH1) - [LilyGo T-CameraPlus ESP32-S3](https://s.click.aliexpress.com/e/_DkytBeT) - [LilyGo T-RGB](https://s.click.aliexpress.com/e/_Dem6i0b) + - [LilyGo T-Deck](https://s.click.aliexpress.com/e/_DBPnZmL) + - [LilyGo T-Deck Plus](https://s.click.aliexpress.com/e/_DDeskaP) - ESP32 C6 with WiFi 6 and BT-5 LE - [UICPAL nanoESP32-C6](https://s.click.aliexpress.com/e/_DdZ83IB) with up to 16MB flash diff --git a/boards/LilyGo-T-Deck.json b/boards/LilyGo-T-Deck.json new file mode 100644 index 0000000..8cc381e --- /dev/null +++ b/boards/LilyGo-T-Deck.json @@ -0,0 +1,40 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "memory_type": "qio_opi", + "partitions": "default_16MB.csv" + }, + "core": "esp32", + "extra_flags": [ + "-D ARDUINO_USB_MODE=1", + "-D ARDUINO_RUNNING_CORE=1", + "-D BOARD_HAS_PSRAM=1", + "-D ARDUINO_RUNNING_CORE=1", + "-D ARDUINO_EVENT_RUNNING_CORE=1" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [["0x303A", "0x1001"]], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": ["wifi", "bluetooth"], + "debug": { + "default_tool": "esp-builtin", + "onboard_tools": ["esp-builtin"], + "openocd_target": "esp32s3.cfg" + }, + "frameworks": ["arduino", "espidf"], + "name": "LilyGo T-Deck (16M Flash 8M PSRAM )", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "require_upload_port": true, + "speed": 921600 + }, + "url": "https://www.lilygo.cc/products/t-deck", + "vendor": "LilyGo" +} \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 2eb323a..34e11db 100644 --- a/platformio.ini +++ b/platformio.ini @@ -236,6 +236,19 @@ lib_deps = [env:lilygo-t-rgb] board = LilyGo-T-RGB board_build.partitions = huge_app.csv +build_flags = + ${esp32s3.build_flags} +lib_deps = + ${esp32s3.lib_deps} + +; LILYGO: https://www.lilygo.cc/products/t-deck +; repository: https://github.com/Xinyuan-LilyGO/T-Deck +; Buy and support mcuw on aliexpress (affiliate link): +; - LilyGo T-Deck: https://s.click.aliexpress.com/e/_Dem6i0b +; - LilyGo T-Deck Plus: https://s.click.aliexpress.com/e/_DDeskaP +[env:lilygo-t-deck] +board = LilyGo-T-Deck +board_build.partitions = huge_app.csv build_flags = ${esp32s3.build_flags} lib_deps =