Example program for the SeeedStudio Bot Shield, based on DigitalOut, PWM and AnalogIn pins.
Dependencies: SeeedShieldBot mbed
Diff: main.cpp
- Revision:
- 2:67a73907e626
- Parent:
- 1:d3c3ab54ee08
--- a/main.cpp Thu Jul 31 14:48:28 2014 +0000 +++ b/main.cpp Thu Jul 31 16:34:03 2014 +0000 @@ -36,7 +36,7 @@ speed = 0; while (speed < 1) { - speed += 0.1; + speed += 0.1f; bot.forward(speed); wait(1); };