Program to show how to drive the m3pi using RPC commands over the serial port

Dependencies:   mbed m3pi

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Tue Nov 02 16:59:56 2010 +0000
Parent:
0:3d8772528bc7
Child:
2:1f604c2aa261
Commit message:
Changed instance name from \"pi\" to \"m3pi\", and all references to it. This is for consistency

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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) {}