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
diff -r 560b232837cf -r e1be74ebe7be TB6612FNG.cpp --- 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;