Chris Styles
/
m3pi_USBSerialRPC
Program to show how to drive the m3pi using RPC commands over the serial port
Revision 0:3d8772528bc7, committed 2010-11-02
- Comitter:
- chris
- Date:
- Tue Nov 02 16:28:39 2010 +0000
- Child:
- 1:8828d71a0cc2
- Commit message:
- Updated USB Serial port to 9600 default
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RPCInterface.lib Tue Nov 02 16:28:39 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/MichaelW/code/RPCInterface/#08eeda3aae92
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m3pi.lib Tue Nov 02 16:28:39 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/chris/code/m3pi/#c38d2f980494
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Nov 02 16:28:39 2010 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +#include "m3pi.h" +#include "SerialRPCInterface.h" + +SerialRPCInterface Interface(USBTX, USBRX); // defaults to 9600 +m3pi pi(p8,p9,p10); + +int main() { + + pi.locate(0,1); + pi.printf("USB RPC"); + + // do nothing, just wait for RPC comands over USB + while (1) {} +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Nov 02 16:28:39 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e