From b8eedabe9a5c72ade6dc351f907cad64e922bac4 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Wed, 4 Dec 2024 07:59:03 -0300 Subject: [PATCH] starting Xiao --- .../XIAO_ESP32S3_WIO_SX1262/board_pinout.h | 24 +++++++++++++++++++ .../XIAO_ESP32S3_WIO_SX1262/platformio.ini | 8 +++++++ 2 files changed, 32 insertions(+) create mode 100644 variants/XIAO_ESP32S3_WIO_SX1262/board_pinout.h create mode 100644 variants/XIAO_ESP32S3_WIO_SX1262/platformio.ini diff --git a/variants/XIAO_ESP32S3_WIO_SX1262/board_pinout.h b/variants/XIAO_ESP32S3_WIO_SX1262/board_pinout.h new file mode 100644 index 0000000..c27523f --- /dev/null +++ b/variants/XIAO_ESP32S3_WIO_SX1262/board_pinout.h @@ -0,0 +1,24 @@ +#ifndef BOARD_PINOUT_H_ +#define BOARD_PINOUT_H_ + + // LoRa Radio + #define HAS_SX1278 + #define RADIO_SCLK_PIN 15 + #define RADIO_MISO_PIN 13 + #define RADIO_MOSI_PIN 12 + #define RADIO_CS_PIN 14 + #define RADIO_RST_PIN 2 + #define RADIO_BUSY_PIN 25 + + // Display + #define HAS_DISPLAY + + #undef OLED_SDA + #undef OLED_SCL + #undef OLED_RST + + #define OLED_SDA 5 + #define OLED_SCL 4 + #define OLED_RST -1 + +#endif \ No newline at end of file diff --git a/variants/XIAO_ESP32S3_WIO_SX1262/platformio.ini b/variants/XIAO_ESP32S3_WIO_SX1262/platformio.ini new file mode 100644 index 0000000..17d17cf --- /dev/null +++ b/variants/XIAO_ESP32S3_WIO_SX1262/platformio.ini @@ -0,0 +1,8 @@ +[env:WEMOS-LOLIN32-OLED-DIY] +board = lolin32 +build_flags = + ${common.build_flags} + -D WEMOS_LOLIN32_OLED_DIY_LoRa +lib_deps = + ${common.lib_deps} + ${common.display_libs} \ No newline at end of file