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
Diff: PinMap.h
- Revision:
- 17:98f2528e8399
- Parent:
- 16:675f4d0ee9e9
- Child:
- 18:d5527ce82e6b
diff -r 675f4d0ee9e9 -r 98f2528e8399 PinMap.h --- a/PinMap.h Thu Feb 22 11:12:24 2018 +0000 +++ b/PinMap.h Fri Feb 23 12:57:25 2018 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Helmut Tschemernjak + * Copyright (c) 2018 Helmut Tschemernjak * 30826 Garbsen (Hannover) Germany * Licensed under the Apache License, Version 2.0); */ @@ -21,6 +21,7 @@ #if defined(TARGET_DISCO_L072CZ_LRWAN1) +#define LED LED2 #define LORA_SPI_MOSI PA_7 #define LORA_SPI_MISO PA_6 @@ -56,10 +57,15 @@ #elif defined (HELTEC_STM32L4) +#define USER_BUTTON PH_3 // boot pin +#define LED PB_0 // red +#define LED2 PB_1 // green + #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 @@ -74,19 +80,22 @@ #elif defined(TARGET_NUCLEO_L432KC) // using the RFM95 board +// #define LED PB_3 // green +#define LED PB_5 // 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_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 PD_2 // DIO0=TxDone/RXDone/CADDone +#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 // + #else #error "unknown board"