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:
19:9f035b9e65ec
Parent:
18:d5527ce82e6b
--- a/PinMap.h	Mon Mar 12 15:00:02 2018 +0000
+++ b/PinMap.h	Fri Jun 01 22:07:08 2018 +0000
@@ -97,6 +97,59 @@
 #define LORA_DIO5       NC      //
 
 
+#elif defined(TARGET_NUCLEO_F411RE) // using the RFM95 board
+
+#define LED             LED1    // green
+
+#define LORA_SPI_MOSI   PC_12
+#define LORA_SPI_MISO   PC_11
+#define LORA_SPI_SCLK   PC_10
+#define LORA_CS         PA_0
+#define LORA_RESET      PA_1
+#define LORA_DIO0       PD_2    // DIO0=TxDone/RXDone
+#define LORA_DIO1       PB_7    //
+#define LORA_DIO2       PC_14   // DIO2=FhssChangeChannel
+#define LORA_DIO3       PC_15   // DIO3=CADDone
+#define LORA_DIO4       PH_0    // ????
+#define LORA_DIO5       NC      // unused?
+
+
+#elif defined(TARGET_MAX32630FTHR) // using the RFM95 board
+
+// #define LED             PB_3    // green
+#define LED             LED2    // green
+
+#define LORA_SPI_MOSI   P5_1
+#define LORA_SPI_MISO   P5_2
+#define LORA_SPI_SCLK   P5_0
+#define LORA_CS         P3_0
+#define LORA_RESET      P3_1
+#define LORA_DIO0       P3_2    // 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_MAX32620FTHR) // using the RFM95 board
+
+// #define LED             PB_3    // green
+#define LED             LED2    // green
+
+#define LORA_SPI_MOSI   P5_1
+#define LORA_SPI_MISO   P5_2
+#define LORA_SPI_SCLK   P5_0
+#define LORA_CS         P3_0
+#define LORA_RESET      P3_1
+#define LORA_DIO0       P3_2    // DIO0=TxDone/RXDone/CADDone
+#define LORA_DIO1       NC      //
+#define LORA_DIO2       NC      // 
+#define LORA_DIO3       NC      // 
+#define LORA_DIO4       NC      // 
+#define LORA_DIO5       NC      //
+
+
+
 #else 
 
 #error "unknown board"