This program is guided to help establish a connection between two RFM95 900MHz LoRa radio modules using Maxim Integrated's Feather MCUs (MAX32630FTHR Mbed and the MAX32620FTHR Mbed). Once the radios are configured after powering on and if the radios are wired correctly, the two radios will self identify as either a master or a slave, and will then proceed to PING and PONG back and forth. Information about what is happening between the radios can be seen if the two boards are hooked up to a USB COM port through the included DAPLINK/MAX32625PICO modules.

Dependencies:   BufferedSerial SX1276GenericLib USBDeviceHT max32630fthr

Fork of MAX326xxFTHR_LoRa_PingPong by Devin Alexander

Revision:
16:675f4d0ee9e9
Parent:
15:c70f65d606c4
Child:
17:98f2528e8399
--- a/PinMap.h	Tue Jan 30 09:51:21 2018 +0000
+++ b/PinMap.h	Thu Feb 22 11:12:24 2018 +0000
@@ -7,11 +7,15 @@
 
 
 #ifdef TARGET_NUCLEO_L476RG
- #define FEATURE_LORA   1
+ #define FEATURE_LORA
+ 
 #elif TARGET_DISCO_L072CZ_LRWAN1
- #define FEATURE_LORA   1
-#elif NUCLEO_L432KC
- #define FEATURE_LORA   1
+ #define FEATURE_LORA
+
+#elif TARGET_STM32L432KC
+ #define HELTEC_STM32L4
+ #define FEATURE_LORA
+ #define FEATURE_USBSERIAL
 #endif
 
 
@@ -50,6 +54,24 @@
 #define LORA_DIO4       PH_0    // ????
 #define LORA_DIO5       NC      // unused?
 
+#elif defined (HELTEC_STM32L4)
+
+#define POWER_VEXT      PA_3
+#define POWER_VEXT_ON   0
+#define POWER_VEXT_OFF  1
+
+#define LORA_SPI_MOSI   PA_7
+#define LORA_SPI_MISO   PA_6
+#define LORA_SPI_SCLK   PB_5
+#define LORA_CS         PA_4
+#define LORA_RESET      PA_1
+#define LORA_DIO0       PA_0    // DIO0=TxDone/RXDone/CADDone
+#define LORA_DIO1       NC      //
+#define LORA_DIO2       NC      // 
+#define LORA_DIO3       NC      // 
+#define LORA_DIO4       NC      // 
+#define LORA_DIO5       NC      // 
+
 #elif defined(TARGET_NUCLEO_L432KC) // using the RFM95 board
 
 
@@ -63,5 +85,10 @@
 #define LORA_DIO2       NC      // 
 #define LORA_DIO3       NC      // 
 #define LORA_DIO4       NC      // 
-#define LORA_DIO5       NC      // 
+#define LORA_DIO5       NC      //
+
+#else 
+
+#error "unknown board"
+
 #endif
\ No newline at end of file