Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 7 months ago.
how to program motordriver.h?
As i saw the code from internet
- include "mbed.h"
- include "motordriver.h"
Motor m1(p21, p14, p12, 0); right motor: pwm, fwd, rev Motor m2(p22, p30, p24, 0); left motor: pwm, fwd, rev
int main() { m1.speed(1); 1 is the maximum speed forward and -1 is maximum backward m2.speed(0.5); } I don't know what is
Motor m1(p21, p14, p12, 0); right motor: pwm, fwd, rev kindly explain me pls