From 166773b81dd0e0c62e082bd6f5b8328caa26e622 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sat, 18 May 2024 11:48:50 -0400 Subject: [PATCH] Wemos D1 added --- platformio.ini | 13 +++++++++++++ src/boards_pinout.h | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/platformio.ini b/platformio.ini index 15762e0f..c920c598 100644 --- a/platformio.ini +++ b/platformio.ini @@ -286,6 +286,19 @@ lib_deps = adafruit/Adafruit SSD1306 @ 2.5.7 +[env:WEMOS-D1-R32-RA02] +board = wemos_d1_uno32 +build_flags = + -Werror -Wall + -DWEMOS_D1_R32_RA02 + -DHAS_SX1278 + -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 +lib_deps = + ${common.lib_deps} + adafruit/Adafruit GFX Library @ 1.11.5 + adafruit/Adafruit SSD1306 @ 2.5.7 + + [env:ttgo-lora32-v21-915] board = ttgo-lora32-v21 build_flags = diff --git a/src/boards_pinout.h b/src/boards_pinout.h index 0cbf5704..2faf2d0a 100644 --- a/src/boards_pinout.h +++ b/src/boards_pinout.h @@ -95,6 +95,19 @@ #define A7670_RX_PIN 27 #endif +#ifdef WEMOS_D1_R32_RA02 + #define RADIO_SCLK_PIN 18 + #define RADIO_MISO_PIN 19 + #define RADIO_MOSI_PIN 23 + #define RADIO_CS_PIN 5 + #define RADIO_BUSY_PIN 12 + #define RADIO_RST_PIN 13 + #define RADIO_DIO1_PIN 14 + #define OLED_SDA 21 + #define OLED_SCL 22 + #define OLED_RST 36 +#endif + // OLED #if defined(TTGO_T_LORA32_V2_1) || defined(ESP32_DIY_LoRa) || defined(ESP32_DIY_1W_LoRa) || defined(TTGO_T_Beam_V1_0) || defined(TTGO_T_Beam_V1_2) || defined(TTGO_T_Beam_V1_0_SX1268) || defined(TTGO_T_Beam_V1_2_SX1262) || defined(OE5HWN_MeshCom) || defined(ESP32_DIY_LoRa_A7670) || defined(TTGO_T_LORA32_V2_1_915) #define OLED_SDA 21