Simple motor controller library, using DIR, PWM, nSLP pin like pololu.

Revision:
8:ad953e0e3c0f
Parent:
6:7955a025adee
Child:
9:a5d6835f7168
--- a/MotorControler.cpp	Tue Feb 02 15:39:16 2021 +0000
+++ b/MotorControler.cpp	Sat Feb 20 08:05:15 2021 +0000
@@ -7,6 +7,11 @@
     current_speed_ = 0;
     md_type_ = md_type;
     control_type_ = control_type;
+    
+    if(md_type_ == TEXNITIS)
+    {
+        nSLP_ = 0;
+    }
 }
 
 float MotorControler::operator = (float speed) {