Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmanalogsensor.h
- Revision:
- 49:c8f8946129b6
- Parent:
- 43:45225713cd58
--- a/akmanalogsensor.h Tue Dec 19 12:18:13 2017 -0800 +++ b/akmanalogsensor.h Tue May 01 21:31:15 2018 +0000 @@ -3,7 +3,7 @@ #include "mbed.h" #include "akmsensor.h" -#include "mcp342x.h" +//#include "mcp342x.h" /** * Collection class for handling commands to all AKM Analog Sensor modules. @@ -96,7 +96,7 @@ * * @return Termination status type for debugging purposes. */ - virtual AkmSensor::Status init(const uint8_t id, const uint8_t subid); + virtual AkmSensor::Status init(const uint8_t p_id, const uint8_t s_id); /** * Process abstraction for starting sensor operation. @@ -142,7 +142,7 @@ private: Ticker ticker; AnalogIn* ain; - MCP342X* mcp3428; + AnalogIn* ain2; float interval; };