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 MAX326xxFTHR_LoRa_RFM95 by
Diff: utils.cpp
- Revision:
- 19:9f035b9e65ec
- Parent:
- 17:98f2528e8399
--- a/utils.cpp Mon Mar 12 15:00:02 2018 +0000 +++ b/utils.cpp Fri Jun 01 22:07:08 2018 +0000 @@ -4,8 +4,12 @@ */ #include "main.h" +#define BAUD_RATE 115200 + + time_t cvt_date(char const *date, char const *time); + BufferedSerial *ser; #ifdef FEATURE_USBSERIAL USBSerialBuffered *usb; @@ -45,7 +49,7 @@ { #endif ser = new BufferedSerial(USBTX, USBRX); - ser->baud(230400); + ser->baud(BAUD_RATE); ser->format(8); } time_t t = cvt_date(__DATE__, __TIME__);