
Program to show how to drive the m3pi using RPC commands over the serial port
main.cpp
- Committer:
- chris
- Date:
- 2010-11-07
- Revision:
- 2:1f604c2aa261
- Parent:
- 1:8828d71a0cc2
- Child:
- 4:291770676b56
File content as of revision 2:1f604c2aa261:
#include "mbed.h" #include "m3pi.h" #include "SerialRPCInterface.h" SerialRPCInterface Interface(USBTX, USBRX); // defaults to 9600 m3pi m3pi(p23,p9,p10); int main() { m3pi.locate(0,1); m3pi.printf("USB RPC"); // do nothing, just wait for RPC comands over USB while (1) {} }