library for the motor driver
Dependents: 4180_final_project
Fork of libTCS34725 by
Diff: TB6612FNG.cpp
- Revision:
- 7:e1be74ebe7be
- Parent:
- 5:822a7407ccb3
- Child:
- 8:fe6530d23d58
--- a/TB6612FNG.cpp Fri Mar 31 15:50:00 2017 +0000 +++ b/TB6612FNG.cpp Tue Apr 18 19:53:13 2017 +0000 @@ -24,6 +24,12 @@ } void TB6612FNG::stop(){ + *dir1 = 0; + *dir2 = 0; + *pwm = 1; +} + +void TB6612FNG::standby(){ on = false; *dir1 = 0; *dir2 = 0;