Modified for compatibility with Rev.E. hardware

Fork of AkmSensor by AKM Development Platform

Revision:
48:427bdb7bf31b
Parent:
47:221ec4b404ec
Child:
49:c8f8946129b6
diff -r 221ec4b404ec -r 427bdb7bf31b ap1017ctrl.cpp
--- a/ap1017ctrl.cpp	Thu Dec 14 00:21:43 2017 +0000
+++ b/ap1017ctrl.cpp	Tue Dec 19 12:18:13 2017 -0800
@@ -24,8 +24,8 @@
     freq = 100;
     interval = (freq > 0 ? 1/freq : 0);
     
-    inputA = new DigitalOut(P0_11);
-    inputB = new DigitalOut(P0_9);
+    inputA = new DigitalOut(DIGITAL_D0);
+    inputB = new DigitalOut(DIGITAL_D1);
     i2cMotor = new I2C(I2C_SDA0, I2C_SCL0);
     i2cMotor->frequency(I2C_SPEED);