Simple Interface for Toshiba's TB6612FNG H-Bridge Motor Driver
Diff: TB6612FNG.cpp
- Revision:
- 5:535c74e61e36
- Parent:
- 3:1ae4f0bb91c6
--- a/TB6612FNG.cpp Thu Mar 14 18:41:55 2013 +0000 +++ b/TB6612FNG.cpp Thu Mar 21 17:06:45 2013 +0000 @@ -56,4 +56,10 @@ m_on=false; m_ctrl1=1; m_ctrl2=1; +} + +void TB6612FNG::setZeroDCReaction(bool brakeOnZeroDC) +{ + m_brakeOnZeroDC=brakeOnZeroDC; + on(); } \ No newline at end of file