groep6 khbo
/
pimpmyrideseason1
project
main.cpp
- Committer:
- mbed8_khbo
- Date:
- 2015-02-05
- Revision:
- 2:40793d508295
- Parent:
- 1:b02103c44389
File content as of revision 2:40793d508295:
#include "mbed.h" #include "m3pi.h" sdfghjklmù qszdfghjklmù DigitalOut myled(LED1); int main() { while(1) { m3pi.locate(0,1); m3pi.printf("sexy ride"); wait (2.0); m3pi.forward(0.5); // Forward half speed wait (0.5); // wait half a second m3pi.left(0.5); // Turn left at half speed wait (0.5); // wait half a second m3pi.backward(0.5);// Backward at half speed wait (0.5); // wait half a second m3pi.right(0.5); // Turn right at half speed wait (0.5); // wait half a second m3pi.stop(); } }