AP1017 library for the Rev.E hardware with expanded capabilities.

Fork of AP1017 by AKM Development Platform

Revision:
1:4d4c77589134
Parent:
0:a0435a630c5d
Child:
2:8a644b1066c4
--- a/AP1017.h	Fri Apr 14 19:35:08 2017 +0000
+++ b/AP1017.h	Mon Apr 17 19:08:36 2017 +0000
@@ -5,8 +5,8 @@
 
 #define     MAX_FREQUENCY   5000
 #define     ENABLE_PIN      P0_10
-#define     INPUTA_PIN      P0_11
-#define     INPUTB_PIN      P0_9
+#define     INA_PIN         P0_11
+#define     INB_PIN         P0_9
 
 /**
  * This is a device driver for the AP1017 with pulse width modulation.
@@ -129,10 +129,10 @@
     float   pulseWidth_us;      // Pulse width in microseconds
     float   pwmPeriod_us;       // PWM period in microseconds
 
-    PwmOut      motor;          // Motor object
+    PwmOut      *motor;          // Motor object
     
-    DigitalOut  inA;            // Directions setting pin A
-    DigitalOut  inB;            // Direction setting pin B
+    DigitalOut  *inA;            // Directions setting pin A
+    DigitalOut  *inB;            // Direction setting pin B
     /* inA=L, inB=L -> Standby (Coast)
      * inA=H, inB=L -> Forward (CW)
      * inA=L, inB=H -> Reverse (CCW)