From f7affae89878267ae59a567869b921c3f95ba8d3 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Wed, 1 Jan 2020 16:20:01 +0100 Subject: [PATCH 1/2] lolin32lora: wrong pin definitions corrected --- src/hal/lolin32lora.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hal/lolin32lora.h b/src/hal/lolin32lora.h index a14c9605..342a7208 100644 --- a/src/hal/lolin32lora.h +++ b/src/hal/lolin32lora.h @@ -26,15 +26,14 @@ #define CFG_sx1276_radio 1 // RFM95 module // Pins for LORA chip SPI interface, reset line and interrupt lines -#define LORA_SCK (5) -#define LORA_CS (18) -#define LORA_MISO (19) +#define LORA_SCK (18) +#define LORA_CS (5) +#define LORA_MISO (193 #define LORA_MOSI (27) #define LORA_RST (25) #define LORA_IRQ (27) #define LORA_IO1 (26) -#define LORA_IO2 LMIC_UNUSED_PIN -#define LORA_IO5 LMIC_UNUSED_PIN +#define LORA_IO2 (4) // Pins for I2C interface of OLED Display #define MY_OLED_SDA (21) From 05d489dd314b2846b9fb6004ea6ef9e5c8bc2ea4 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Wed, 1 Jan 2020 16:32:27 +0100 Subject: [PATCH 2/2] lolin32 hal files sanitized --- src/hal/lolin32litelora.h | 8 ++++---- src/hal/lolin32lora.h | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/hal/lolin32litelora.h b/src/hal/lolin32litelora.h index 7c0ebcf2..bbc52439 100644 --- a/src/hal/lolin32litelora.h +++ b/src/hal/lolin32litelora.h @@ -25,10 +25,10 @@ #define CFG_sx1276_radio 1 // RFM95 module // Pins for LORA chip SPI interface, reset line and interrupt lines -#define LORA_SCK (18) -#define LORA_CS (5) -#define LORA_MISO (19) -#define LORA_MOSI (23) +#define LORA_SCK SCK +#define LORA_CS SS +#define LORA_MISO MISO +#define LORA_MOSI MOSI #define LORA_RST (25) #define LORA_IRQ (27) #define LORA_IO1 (26) diff --git a/src/hal/lolin32lora.h b/src/hal/lolin32lora.h index 342a7208..cc3eccd2 100644 --- a/src/hal/lolin32lora.h +++ b/src/hal/lolin32lora.h @@ -26,18 +26,18 @@ #define CFG_sx1276_radio 1 // RFM95 module // Pins for LORA chip SPI interface, reset line and interrupt lines -#define LORA_SCK (18) -#define LORA_CS (5) -#define LORA_MISO (193 -#define LORA_MOSI (27) +#define LORA_SCK SCK +#define LORA_CS SS +#define LORA_MISO MISO +#define LORA_MOSI MOSI #define LORA_RST (25) #define LORA_IRQ (27) #define LORA_IO1 (26) #define LORA_IO2 (4) // Pins for I2C interface of OLED Display -#define MY_OLED_SDA (21) -#define MY_OLED_SCL (22) +#define MY_OLED_SDA SDA +#define MY_OLED_SCL SCL #define MY_OLED_RST NOT_A_PIN // I2C config for Microchip 24AA02E64 DEVEUI unique address