SX1276 Ping Pong Demo Application

Dependencies:   SX1276Lib mbed

Simple Ping-Pong demo application between two SX1276MB1xAs demo board.

Application demonstrating simple Tx/Rx between two boards. By default, each board starts as a "master" and will transmit a "Ping" message, and then wait for an answer. The first board receiving a "Ping" message will become a slave and answer the "master" with a "Pong". The Ping-Pong is then started

Revision:
8:f956dee63a56
Parent:
7:c1bbd6c56979
Child:
9:e764990e45df
--- a/main.cpp	Fri Sep 26 13:01:01 2014 +0000
+++ b/main.cpp	Tue Sep 30 11:11:52 2014 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 #include "main.h"
 #include "sx1276-hal.h"
-#include "mbed_debug.h"
+#include "debug.h"
 
 /* Set this flag to '1' to display debug messages on the console */
 #define DEBUG_MESSAGE   0
@@ -49,7 +49,7 @@
 #define RX_TIMEOUT_VALUE                                3500000   // in us
 #define BUFFER_SIZE                                     32        // Define the payload size here
 
-#if( defined ( TARGET_KL25Z ) )
+#if( defined ( TARGET_KL25Z ) || defined ( TARGET_LPC11U6X ) )
 DigitalOut led(LED2);
 #else
 DigitalOut led(LED1);