
Example program for the Seeed Studio Shield Bot
Dependencies: SeeedStudioShieldBot mbed
main.cpp
- Committer:
- melse
- Date:
- 2013-07-15
- Revision:
- 0:96c652480857
File content as of revision 0:96c652480857:
#include "mbed.h" #include "SeeedStudioShieldBot.h" SeeedStudioShieldBot bot; float speed = 0; int main() { bot.enable_right_motor(); bot.enable_left_motor(); while(1) { speed += 0.1; bot.forward(speed); wait_ms(1000); if (speed == 1) { speed = 0; } } }