library for the motor driver
Dependents: 4180_final_project
Fork of libTCS34725 by
Revision 8:fe6530d23d58, committed 2017-04-26
- Comitter:
- mwilkens241
- Date:
- Wed Apr 26 18:03:49 2017 +0000
- Parent:
- 7:e1be74ebe7be
- Commit message:
- changed the standby polarity
Changed in this revision
| TB6612FNG.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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){
