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
2017-04-11, by javierjsp [Tue, 11 Apr 2017 19:55:45 +0000] rev 2
changed default brake to low
2010-09-07, by aberk [Tue, 07 Sep 2010 11:21:42 +0000] rev 1
Added functionality to brake high or low.
2010-09-02, by aberk [Thu, 02 Sep 2010 16:32:57 +0000] rev 0
Added period(...) method to allow the period on the PwmOut pin to be changed.