Demo usage of LLAP library

Dependencies:   LLAPSerial mbed

Files at this revision

API Documentation at this revision

Comitter:
SomeRandomBloke
Date:
Wed Apr 16 20:28:38 2014 +0000
Parent:
2:d47dac2ce25b
Child:
4:530543332ac3
Commit message:

Changed in this revision

LLAPSerial.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/LLAPSerial.lib	Wed Apr 16 19:42:05 2014 +0000
+++ b/LLAPSerial.lib	Wed Apr 16 20:28:38 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/SomeRandomBloke/code/LLAPSerial/#ec6fbf70d110
+http://mbed.org/users/SomeRandomBloke/code/LLAPSerial/#0745fb4dbd8c
--- a/main.cpp	Wed Apr 16 19:42:05 2014 +0000
+++ b/main.cpp	Wed Apr 16 20:28:38 2014 +0000
@@ -27,20 +27,17 @@
 #include "mbed.h"
 #include "LLAPSerial.h"
 
-//LLAPSerial srf(PA_11, PA_12);
+//LLAPSerial srf(PA_11, PA_12, PA_9);
 // or
-LLAPSerial srf(PA_11, PA_12, false,"MB");
+LLAPSerial srf(PA_11, PA_12, PA_9, false,"MB");
 
 Serial pc(USBTX, USBRX);
 
-DigitalOut srfEnable(PA_9);
-
 int main()
 {
     pc.baud(115200);
     pc.printf("LLAP Test\n");
 
-    srfEnable = 1;
     srf.sendMessage("STARTED");
     wait_ms(100);
     srf.sendMessage("TMPA", "123");