Motor driver library for the AP1017.
AKM Development Platform
AP1017 Motor Driver
Import libraryAP1017
Motor driver library for the AP1017.
Diff: AP1017.cpp
- Revision:
- 8:bc70a421ef4c
- Parent:
- 6:d4d3bc82d446
- Child:
- 9:1ca7d16de1c4
diff -r b19dbc46ac0e -r bc70a421ef4c AP1017.cpp --- a/AP1017.cpp Tue Apr 25 19:13:41 2017 +0000 +++ b/AP1017.cpp Wed May 03 18:55:18 2017 +0000 @@ -8,6 +8,8 @@ // Default constructor AP1017::AP1017(void) : motorOn(false), dutyCycle(0.0) { + // TODO: Move pin assignments to Ap1017Ctrl and pass references here + //motor = new PwmOut(P0_10); inA = new DigitalOut(P0_11); inB = new DigitalOut(P0_9);