Control a DC motor via a standard H-bridge using a PwmOut pin to control speed and two DigitalOut pins to control direction. Can change pwm period on the PwmOut pin, and also brake high or low.
Fork of Motor by
Revisions of Motor.h
Revision | Date | Message | Actions |
---|---|---|---|
2:e138b2d99454 | 2017-04-11 | changed default brake to low | File Diff Annotate |
1:c75b234558af | 2010-09-07 | Added functionality to brake high or low. | File Diff Annotate |
0:f05e09f8f5d9 | 2010-09-02 | Added period(...) method to allow the period on the PwmOut pin to be changed. | File Diff Annotate |