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

Dependencies:   mbed m3pi

main.cpp

Committer:
chris
Date:
2011-05-12
Revision:
4:291770676b56
Parent:
2:1f604c2aa261

File content as of revision 4:291770676b56:

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

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

int main() {

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

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