groep6 khbo
/
pimpmyrideseason1
project
Revision 0:7075af75d46f, committed 2015-02-05
- Comitter:
- mbed6_khbo
- Date:
- Thu Feb 05 13:36:21 2015 +0000
- Child:
- 1:b02103c44389
- Commit message:
- start
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m3pi.lib Thu Feb 05 13:36:21 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/chris/code/m3pi/#4b7d6ea9b35b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 05 13:36:21 2015 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" +#include "m3pi.h" + +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(); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Feb 05 13:36:21 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e188a91d3eaa \ No newline at end of file