Hello world program that just gets the m3pi moving

Dependencies:   mbed m3pi

main.cpp

Committer:
chris
Date:
2010-11-07
Revision:
3:f1b80fdc708c
Parent:
2:5a329194c74d
Child:
5:7619250a5b1d

File content as of revision 3:f1b80fdc708c:

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

m3pi m3pi(p23,p9,p10);

int main() {



    m3pi.locate(0,1);
    m3pi.printf("LO World");
    wait(5.0);

    m3pi.forward(0.5);
    wait (0.5);
    m3pi.left(0.5);
    wait (0.5);
    m3pi.backward(0.5);
    wait (0.5);
    m3pi.right(0.5);
    wait (0.5);

    m3pi.stop();

}