got this sample program for 2+ sx1276 modules to communicate in a ping pong fashion. This program has been tested and verified to run with 915MHz Hope RFM95 modules running with MAX32620FTHR and MAX32630FTHR micro controllers.
Dependencies: BMI160 BufferedSerial SX1276GenericLib USBDeviceHT max32630fthr
Fork of STM32L0_LoRa by
Diff: SX1276GenericPingPong/GenericPingPong.cpp
- Revision:
- 19:9f035b9e65ec
- Parent:
- 16:675f4d0ee9e9
--- a/SX1276GenericPingPong/GenericPingPong.cpp Mon Mar 12 15:00:02 2018 +0000 +++ b/SX1276GenericPingPong/GenericPingPong.cpp Fri Jun 01 22:07:08 2018 +0000 @@ -19,7 +19,7 @@ /* Set this flag to '1' to use the LoRa modulation or to '0' to use FSK modulation */ #define USE_MODEM_LORA 1 #define USE_MODEM_FSK !USE_MODEM_LORA -#define RF_FREQUENCY RF_FREQUENCY_868_1 // Hz +#define RF_FREQUENCY RF_FREQUENCY_915_0 // Hz #define TX_OUTPUT_POWER 14 // 14 dBm #if USE_MODEM_LORA == 1 @@ -97,8 +97,9 @@ DigitalOut *led3; -int SX1276PingPong() +int SX1276PingPong(void) { + dprintf("TEST" ); #if( defined ( TARGET_KL25Z ) || defined ( TARGET_LPC11U6X ) ) DigitalOut *led = new DigitalOut(LED2); #elif defined(TARGET_NUCLEO_L073RZ) || defined(TARGET_DISCO_L072CZ_LRWAN1)