myxbee

Fork of XBEE by GDP 4

Revision:
1:ce4058bc0913
Parent:
0:8cdf90642ef6
Child:
2:983d482357b9
--- a/SwitchCase.h	Tue Oct 18 03:29:46 2016 +0000
+++ b/SwitchCase.h	Tue Oct 18 03:58:55 2016 +0000
@@ -1,8 +1,13 @@
 // Add commands you wish to implement to the switch statement and #define the command with the next unused letter of the alphabet
 // Please try to minimise the number of lines you add per command i.e. for adding a steer left command simply call steerLeft() which
 // you then define in a separate file. This will make it easier to keep track of the big picture of what other people are making
-// the car do
+// the car do. Also you should only need to edit this file and not the other two in this library.
 
+// To use the wireless comms simply #include "XBEE.h"
+// Create a serial object for the microcontroller being used. for the k64f(M4 board) do: Serial ArbitraryName(PTC17, PTC16);
+// Create an instance of XBEE passing by reference the serial object: XBEE xbee(&ArbitraryName);
+// In the infinite loop for the car add: xbee.checkForCommand(); This function passes any commands received through the switch case below.
+// This is all you need to get started. Additional functions you may wish to use can be found in the public section of the class in XBEE.h
 
 #define START 'A'
 #define STOP 'B'
@@ -20,7 +25,8 @@
         
         break;
         case STATUSSTRING:
-        sendCommand("But how long is a piece of string?\n");        
+        test();
+        sendCommand("But how long is a string?\n");        
         break;