From 91dbd45f2fadf50090c8392ac78067772e410764 Mon Sep 17 00:00:00 2001 From: avdleun Date: Sun, 13 Oct 2019 19:52:33 +0200 Subject: [PATCH] add code for LoRa32U4 version 1.3 hardware Lora32U4 version 3 has different pin n --- lora32u4-sketch/lora32u4-sketch.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lora32u4-sketch/lora32u4-sketch.ino b/lora32u4-sketch/lora32u4-sketch.ino index 165bb2c..d0c5865 100644 --- a/lora32u4-sketch/lora32u4-sketch.ino +++ b/lora32u4-sketch/lora32u4-sketch.ino @@ -51,6 +51,7 @@ #define LoRa32u4II_1_1 11 #define LoRa32u4II_1_2 12 +#define LoRa32u4II_1_3 13 #if LoRa32u4II_VERSION == LoRa32u4II_1_1 #define DIO0 7 @@ -62,6 +63,11 @@ #define DIO1 1 #define DIO2 2 #define RESET_PIN 4 +#elif LoRa32u4II_VERSION == LoRa32u4II_1_3 + #define DIO0 7 + #define DIO1 5 + #define DIO2 LMIC_UNUSED_PIN + #define RESET_PIN 4 #else #define DIO0 0 #define DIO1 0