Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ap1017ctrl.cpp
- Revision:
- 49:c8f8946129b6
- Parent:
- 48:427bdb7bf31b
--- a/ap1017ctrl.cpp Tue Dec 19 12:18:13 2017 -0800 +++ b/ap1017ctrl.cpp Tue May 01 21:31:15 2018 +0000 @@ -26,12 +26,11 @@ inputA = new DigitalOut(DIGITAL_D0); inputB = new DigitalOut(DIGITAL_D1); - i2cMotor = new I2C(I2C_SDA0, I2C_SCL0); - i2cMotor->frequency(I2C_SPEED); + enable = new DigitalOut(DIGITAL_D9); switch (subId) { // template for multiple drivers case SUB_ID_AP1017: - ap1017 = new AP1017(inputA, inputB, i2cMotor); // Instantiate AP1017 + ap1017 = new AP1017(inputA, inputB, enable); // Instantiate AP1017 sensorName = "AP1017"; MSG("#AP1017 found.\r\n"); break;