H BRIDGE PARA MOTORES DC KL64Z
Dependencies: Motor mbed Servo
main.cpp
- Committer:
- mderrant
- Date:
- 2014-07-18
- Revision:
- 0:5f1b331ca523
- Child:
- 1:6ee374b19aaf
File content as of revision 0:5f1b331ca523:
#include "mbed.h" #include "Motor.h" Motor m(PTA1, PTA2, PTD3); // pwm, fwd, rev int main() { for (float s= -1.0; s < 1.0 ; s += 0.01) { m.speed(s); wait(0.02); } }