Chris Styles
/
m3pi_USBSerialRPC
Program to show how to drive the m3pi using RPC commands over the serial port
Diff: main.cpp
- Revision:
- 1:8828d71a0cc2
- Parent:
- 0:3d8772528bc7
- Child:
- 2:1f604c2aa261
diff -r 3d8772528bc7 -r 8828d71a0cc2 main.cpp --- a/main.cpp Tue Nov 02 16:28:39 2010 +0000 +++ b/main.cpp Tue Nov 02 16:59:56 2010 +0000 @@ -3,12 +3,12 @@ #include "SerialRPCInterface.h" SerialRPCInterface Interface(USBTX, USBRX); // defaults to 9600 -m3pi pi(p8,p9,p10); +m3pi m3pi(p8,p9,p10); int main() { - pi.locate(0,1); - pi.printf("USB RPC"); + m3pi.locate(0,1); + m3pi.printf("USB RPC"); // do nothing, just wait for RPC comands over USB while (1) {}