library for the motor driver
Dependents: 4180_final_project
Fork of libTCS34725 by
Diff: TB6612FNG.cpp
- Revision:
- 8:fe6530d23d58
- Parent:
- 7:e1be74ebe7be
--- a/TB6612FNG.cpp Tue Apr 18 19:53:13 2017 +0000 +++ b/TB6612FNG.cpp Wed Apr 26 18:03:49 2017 +0000 @@ -20,7 +20,7 @@ *dir1 = 1; *dir2 = 1; *pwm = 0; - *stby = 0; + *stby = 1; } void TB6612FNG::stop(){ @@ -34,7 +34,7 @@ *dir1 = 0; *dir2 = 0; *pwm = 1; - *stby = 1; + *stby = 0; } void TB6612FNG::fwd(float speed){