Example program for the Ciseco SRF Shield, based on UART serial port connectivity (D0/D1 pins). This program sends SRF messages and prints out the received ones
Dependencies: LLAPSerial mbed
Fork of Ciseco_LLAP_Test by
Revision 2:d47dac2ce25b, committed 2014-04-16
- Comitter:
- SomeRandomBloke
- Date:
- Wed Apr 16 19:42:05 2014 +0000
- Parent:
- 1:808e9257d1ea
- Child:
- 3:537d95945591
- Commit message:
- added extended constructor
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 Tue Apr 15 22:16:05 2014 +0000 +++ b/LLAPSerial.lib Wed Apr 16 19:42:05 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/SomeRandomBloke/code/LLAPSerial/#8f3ec117823d +http://mbed.org/users/SomeRandomBloke/code/LLAPSerial/#ec6fbf70d110
--- a/main.cpp Tue Apr 15 22:16:05 2014 +0000 +++ b/main.cpp Wed Apr 16 19:42:05 2014 +0000 @@ -29,7 +29,7 @@ //LLAPSerial srf(PA_11, PA_12); // or -LLAPSerial srf(PA_11, PA_12, "MB"); +LLAPSerial srf(PA_11, PA_12, false,"MB"); Serial pc(USBTX, USBRX); @@ -50,7 +50,7 @@ srf.sendIntWithDP("TMPA", 1230,2); while( 1 ) { if( srf.bMsgReceived ) { - myled = !myled; + //myled = !myled; pc.printf("Received: %s\n\r",srf.sMessage ); srf.bMsgReceived = false; // Clear flag to indicate msg handled }