From bed9c96f4104065d9a947494c5257336d05c7c34 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 24 Dec 2018 12:08:12 +0100 Subject: [PATCH] update board files for LoPy, LoPy4, T-Beam (#2241) changed LORA_IO0 -> LORA_IRQ added LORA_RST added SS --- variants/lopy/pins_arduino.h | 7 ++++--- variants/lopy4/pins_arduino.h | 9 ++++++--- variants/t-beam/pins_arduino.h | 3 ++- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/variants/lopy/pins_arduino.h b/variants/lopy/pins_arduino.h index 5e2fc88a..93365766 100644 --- a/variants/lopy/pins_arduino.h +++ b/variants/lopy/pins_arduino.h @@ -17,9 +17,10 @@ #define LORA_MOSI 27 // GPIO27 - SX1276 MOSI #define LORA_CS 17 // GPIO17 - SX1276 CS #define LORA_RST 18 // GPIO18 - SX1276 RST -#define LORA_IO0 23 // GPIO23 - SX1276 IO0 -#define LORA_IO1 23 // GPIO23 - SX1276 IO1 tied by diode to IO0 -#define LORA_IO2 23 // GPIO23 - SX1276 IO2 tied by diode to IO0 +#define LORA_IRQ 23 // GPIO23 - SX1276 IO0 +#define LORA_IO0 LORA_IRQ // alias +#define LORA_IO1 LORA_IRQ // tied by diode to IO0 +#define LORA_IO2 LORA_IRQ // tied by diode to IO0 static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!! #define BUILTIN_LED LED_BUILTIN // backward compatibility diff --git a/variants/lopy4/pins_arduino.h b/variants/lopy4/pins_arduino.h index ef75b472..70f933ce 100644 --- a/variants/lopy4/pins_arduino.h +++ b/variants/lopy4/pins_arduino.h @@ -16,9 +16,11 @@ #define LORA_MISO 19 // GPIO19 - SX1276 MISO #define LORA_MOSI 27 // GPIO27 - SX1276 MOSI #define LORA_CS 18 // GPIO18 - SX1276 CS -#define LORA_IO0 23 // GPIO23 - SX1276 IO0 -#define LORA_IO1 23 // GPIO23 - SX1276 IO1 tied by diode to IO0 -#define LORA_IO2 23 // GPIO23 - SX1276 IO2 tied by diode to IO0 +#define LORA_IRQ 23 // GPIO23 - SX1276 IO0 +#define LORA_IO0 LORA_IRQ // alias +#define LORA_IO1 LORA_IRQ // tied by diode to IO0 +#define LORA_IO2 LORA_IRQ // tied by diode to IO0 +#define LORA_RST NOT_A_PIN static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!! #define BUILTIN_LED LED_BUILTIN // backward compatibility @@ -31,6 +33,7 @@ static const uint8_t RX = 3; static const uint8_t SDA = 12; static const uint8_t SCL = 13; +static const uint8_t SS = 18; static const uint8_t MOSI = 22; static const uint8_t MISO = 37; static const uint8_t SCK = 13; diff --git a/variants/t-beam/pins_arduino.h b/variants/t-beam/pins_arduino.h index 696e59aa..28fc84ef 100644 --- a/variants/t-beam/pins_arduino.h +++ b/variants/t-beam/pins_arduino.h @@ -17,7 +17,8 @@ #define LORA_MOSI 27 // GPIO27 - SX1276 MOSI #define LORA_CS 18 // GPIO18 - SX1276 CS #define LORA_RST 23 // GPIO23 - SX1276 RST -#define LORA_IO0 26 // GPIO26 - SX1276 IO0 +#define LORA_IRQ 26 // GPIO26 - SX1276 IO0 +#define LORA_IO0 LORA_IRQ // alias #define LORA_IO1 33 // GPIO33 - SX1276 IO1 #define LORA_IO2 32 // GPIO32 - SX1276 IO2