From 095d18bca59bc076e441eba212b2917e96a640c8 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sat, 21 Sep 2024 19:27:17 +0200 Subject: [PATCH] board definition for T7-S3 (LILYGO / TTGO) --- boards/lilygo-t7-s3.json | 47 ++++++++++++++++++++++++++++++++++++++++ wled00/pin_manager.cpp | 7 ++++++ 2 files changed, 54 insertions(+) create mode 100644 boards/lilygo-t7-s3.json diff --git a/boards/lilygo-t7-s3.json b/boards/lilygo-t7-s3.json new file mode 100644 index 0000000000..4bf071fc7e --- /dev/null +++ b/boards/lilygo-t7-s3.json @@ -0,0 +1,47 @@ +{ + "build": { + "arduino":{ + "ldscript": "esp32s3_out.ld", + "memory_type": "qio_opi", + "partitions": "default_16MB.csv" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_TTGO_T7_S3", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0X303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi", + "bluetooth" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "LILYGO T3-S3", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "require_upload_port": true, + "speed": 921600 + }, + "url": "https://www.aliexpress.us/item/3256804591247074.html", + "vendor": "LILYGO" +} \ No newline at end of file diff --git a/wled00/pin_manager.cpp b/wled00/pin_manager.cpp index d1e7a18b45..07b5d42de1 100644 --- a/wled00/pin_manager.cpp +++ b/wled00/pin_manager.cpp @@ -120,6 +120,13 @@ String PinManagerClass::getPinSpecialText(int gpio) { // special purpose PIN in if (gpio > 32 && gpio < 38) return (F("(reserved) Octal PSRAM or Octal Flash")); #endif //if (gpio == 0 || gpio == 3 || gpio == 45 || gpio == 46) return (F("(strapping pin)")); + #ifdef ARDUINO_TTGO_T7_S3 + // experimental: a few special pins of the T7-S3 board + if (gpio == 2) return (F("(reserved) _VBAT voltage monitoring")); + if (gpio == 17) return (F("onboard LED")); + //if (gpio == 3) return (F("(cross-connected to pin 3-1)")); // WLEDMM experimental + //if (gpio == 12) return (F("(cross-connected to pin 12-1)")); // WLEDMM experimental + #endif #elif defined(CONFIG_IDF_TARGET_ESP32S2) // ESP32-S2