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:
1:8828d71a0cc2
Parent:
0:3d8772528bc7
Child:
2:1f604c2aa261

File content as of revision 1:8828d71a0cc2:

#include "mbed.h"
#include "m3pi.h"
#include "SerialRPCInterface.h"

SerialRPCInterface Interface(USBTX, USBRX); // defaults to 9600
m3pi m3pi(p8,p9,p10);

int main() {

    m3pi.locate(0,1);
    m3pi.printf("USB RPC");

    // do nothing, just wait for RPC comands over USB
    while (1) {}
}