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

Dependencies:   mbed m3pi

main.cpp

Committer:
chris
Date:
2010-11-02
Revision:
0:3d8772528bc7
Child:
1:8828d71a0cc2

File content as of revision 0:3d8772528bc7:

#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) {}
}