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

Dependencies:   mbed m3pi

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "m3pi.h"
00003 #include "SerialRPCInterface.h"
00004 
00005 SerialRPCInterface Interface(USBTX, USBRX); // defaults to 9600
00006 m3pi m3pi;
00007 
00008 int main() {
00009 
00010     m3pi.locate(0,1);
00011     m3pi.printf("USB RPC");
00012 
00013     // do nothing, just wait for RPC comands over USB
00014     while (1) {}
00015 }