It is a test program of wallbot mini library.
Dependencies: mbed wallbotmini
Revision 0:37a76b1e82dc, committed 2013-11-02
- Comitter:
- jksoft
- Date:
- Sat Nov 02 01:06:09 2013 +0000
- Commit message:
- Rev1
Changed in this revision
diff -r 000000000000 -r 37a76b1e82dc main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Nov 02 01:06:09 2013 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" +#include "wallbotmini.h" + +wallbotmini wb; + +int main() { + + wb.sensor_calibrate(); + + while(!wb.GetSw()) + { + wb.set_led(wb.GetLinePosition()); + } + + wb.forward(1.0); + wait (1.0); + wb.left(1.0); + wait (1.0); + wb.backward(1.0); + wait (1.0); + wb.right(1.0); + wait (1.0); + + wb.stop(); + + while(1); + +}
diff -r 000000000000 -r 37a76b1e82dc mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Nov 02 01:06:09 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/f37f3b9c9f0b \ No newline at end of file
diff -r 000000000000 -r 37a76b1e82dc wallbotmini.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wallbotmini.lib Sat Nov 02 01:06:09 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/jksoft/code/wallbotmini/#a11da93ea3f6