Patrick Clary
/
StarterBot
Control code for a simple robot
Revision 0:ead7f4c94f61, committed 2014-10-19
- Comitter:
- pclary
- Date:
- Sun Oct 19 07:54:04 2014 +0000
- Commit message:
- Barebones starterbot code
Changed in this revision
diff -r 000000000000 -r ead7f4c94f61 Motor.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Motor.lib Sun Oct 19 07:54:04 2014 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/pclary/code/Motor/#0d650a332dcc
diff -r 000000000000 -r ead7f4c94f61 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Oct 19 07:54:04 2014 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" +#include "Motor.h" + + +Motor rightMotor(D0, D1); +Motor leftMotor(D2, D3); + +DigitalIn rightBumper(D4); +DigitalIn leftBumper(D5); + +DigitalOut led(LED1); + + +int main() +{ + rightMotor = 0.0f; + leftMotor = 0.0f; + led = 0; + + while (true) + { + + } +}
diff -r 000000000000 -r ead7f4c94f61 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Oct 19 07:54:04 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file