Simple motor controller library, using DIR, PWM, nSLP pin like pololu.
Revision 11:7493df5c5c40, committed 2021-02-21
- 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 |
--- 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()