Hello world program that just gets the m3pi moving

Dependencies:   mbed m3pi

main.cpp

Committer:
chris
Date:
2010-11-02
Revision:
1:05bdd0697e72
Parent:
0:93bba564574a
Child:
2:5a329194c74d

File content as of revision 1:05bdd0697e72:

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

m3pi m3pi(p8,p9,p10);


int main() {



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

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

    pi.stop();

}