From 2b0cc514f0f03e06c040869b46e0f821248aa499 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Mon, 22 Apr 2024 13:25:52 -0400 Subject: [PATCH] WEMOS LOLIN32 added for testing --- platformio.ini | 9 +++++++++ src/pins_config.h | 29 +++++++++++++++++++++++------ 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/platformio.ini b/platformio.ini index 6f2aae18..89eb0443 100644 --- a/platformio.ini +++ b/platformio.ini @@ -154,4 +154,13 @@ build_flags = -DHELTEC_HTCT62 -DHAS_SX126X -DHAS_SX1262 + -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 + +[env:WEMOS-LOLIN32-OLED-DIY] +board = lolin32 +build_flags = + -Werror -Wall + -DWEMOS_LOLIN32_OLED_DIY_LoRa + -DHAS_SX127X + -DHAS_SX1278 -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 \ No newline at end of file diff --git a/src/pins_config.h b/src/pins_config.h index b7cda79e..c5c508a2 100644 --- a/src/pins_config.h +++ b/src/pins_config.h @@ -10,12 +10,12 @@ // LORA MODULES #if defined(TTGO_T_LORA32_V2_1) || defined(HELTEC_V2) || defined(ESP32_DIY_LoRa) || defined(TTGO_T_Beam_V1_2) || defined(TTGO_T_Beam_V1_0) -#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK -#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO -#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI -#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS -#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST -#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 #endif #if defined(HELTEC_V3) || defined(HELTEC_WS) @@ -40,6 +40,15 @@ #define RADIO_TXEN 25 #endif +#ifdef WEMOS_LOLIN32_OLED_DIY_LoRa +#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 +#endif + #if defined(TTGO_T_Beam_V1_0_SX1268) || defined(TTGO_T_Beam_V1_2_SX1262) #define RADIO_SCLK_PIN 5 #define RADIO_MISO_PIN 19 @@ -93,6 +102,12 @@ #define OLED_RST 21 #endif +#ifdef WEMOS_LOLIN32_OLED_DIY_LoRa +#define OLED_SDA 5 +#define OLED_SCL 4 +#define OLED_RST -1 +#endif + #ifndef HELTEC_HTCT62 #define HAS_DISPLAY #endif @@ -124,6 +139,8 @@ #endif + + #ifdef ESP32_C3_DIY_LoRa #define OLED_SDA 8 #define OLED_SCL 9