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

Files at this revision

API Documentation at this revision

Comitter:
sgrsn
Date:
Sun Feb 21 10:34:19 2021 +0000
Branch:
use_base
Parent:
10:4413d4830297
Commit message:
Change nSLP pin default output when using TEXNITISController

Changed in this revision

MotorControler.h Show annotated file Show diff for this revision Revisions of this file
diff -r 4413d4830297 -r 7493df5c5c40 MotorControler.h
--- a/MotorControler.h	Sun Feb 21 09:28:35 2021 +0000
+++ b/MotorControler.h	Sun Feb 21 10:34:19 2021 +0000
@@ -87,7 +87,7 @@
     public:
     TEXNITISControler(PinName DIR, PinName PWM, PinName nSLP, ControlType control_type=SM) : MotorControler(DIR, PWM, nSLP, control_type)
     {
-        nSLP_ = 0;
+        nSLP_ = 1;
     }
     
     virtual void enableDriver()