From ad66a20f8e74ddf5ab8f351b29dd1678ad6e70d5 Mon Sep 17 00:00:00 2001 From: Sabering <39810634+Sabering1@users.noreply.github.com> Date: Sun, 20 Jul 2025 03:12:23 +0200 Subject: [PATCH] Add files via upload --- variants/ seeed_s3_gpio/pins_arduino.h | 21 +++++++++++++++++++++ variants/ seeed_s3_gpio/platformio.ini | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 variants/ seeed_s3_gpio/pins_arduino.h create mode 100644 variants/ seeed_s3_gpio/platformio.ini diff --git a/variants/ seeed_s3_gpio/pins_arduino.h b/variants/ seeed_s3_gpio/pins_arduino.h new file mode 100644 index 000000000..4f81c93c5 --- /dev/null +++ b/variants/ seeed_s3_gpio/pins_arduino.h @@ -0,0 +1,21 @@ +#ifndef Pins_Arduino_h +#define Pins_Arduino_h + +#include + +#define USB_VID 0x2886 +#define USB_PID 0x0059 + +// GPIO48 Reference: https://github.com/espressif/arduino-esp32/pull/8600 + +// The default Wire will be mapped to Screen and Sensors +static const uint8_t SDA = 47; +static const uint8_t SCL = 48; + +// Default SPI will be mapped to Radio +static const uint8_t MISO = 8; +static const uint8_t SCK = 7; +static const uint8_t MOSI = 9; +static const uint8_t SS = 5; + +#endif /* Pins_Arduino_h */ diff --git a/variants/ seeed_s3_gpio/platformio.ini b/variants/ seeed_s3_gpio/platformio.ini new file mode 100644 index 000000000..9d935e2e0 --- /dev/null +++ b/variants/ seeed_s3_gpio/platformio.ini @@ -0,0 +1,17 @@ +[env:seeed-xiao-s3] +extends = esp32s3_base +board = seeed-xiao-s3 +board_check = true +board_build.partitions = default_8MB.csv +upload_protocol = esptool +upload_speed = 921600 +lib_deps = + ${esp32s3_base.lib_deps} +build_unflags = + ${esp32s3_base.build_unflags} + -DARDUINO_USB_MODE=1 +build_flags = + ${esp32s3_base.build_flags} -DSEEED_XIAO_S3 -I variants/seeed_xiao_s3 + -DBOARD_HAS_PSRAM + + -DARDUINO_USB_MODE=0 \ No newline at end of file