Chris Styles
/
m3pi_USBSerialRPC
Program to show how to drive the m3pi using RPC commands over the serial port
Diff: main.cpp
- Revision:
- 0:3d8772528bc7
- Child:
- 1:8828d71a0cc2
--- /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