Kei Ohta
/
DualMotor_TA7291P
to daiki
Fork of DualMotor by
main.cpp
- Committer:
- simon
- Date:
- 2010-11-23
- Revision:
- 0:7bbc230e00d6
- Child:
- 1:5f71bf8eaed0
File content as of revision 0:7bbc230e00d6:
// Sweep the motor speed from full-speed reverse (-1.0) to full speed forwards (1.0) #include "mbed.h" #include "Motor.h" Motor m(p23, p6, p5); // pwm, fwd, rev int main() { for (float s= -1.0; s < 1.0 ; s += 0.01) { m.speed(s); wait(0.02); } }