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
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
2:88f2d02183a4 | 2014-10-24 | masco | Motor |
1:c75b234558af | 2010-09-07 | aberk | Added functionality to brake high or low. |
0:f05e09f8f5d9 | 2010-09-02 | aberk | Added period(...) method to allow the period on the PwmOut pin to be changed. |