Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmanalogsensor.h
- Revision:
- 27:41aa9fb23a2f
- Parent:
- 13:d008249f0359
- Child:
- 29:b488d2c89fba
--- a/akmanalogsensor.h Wed Feb 22 21:56:05 2017 +0000 +++ b/akmanalogsensor.h Sat Mar 11 01:14:15 2017 +0000 @@ -47,22 +47,15 @@ */ virtual ~AkmAnalogSensor(); virtual AkmSensor::Status init(const uint8_t id, const uint8_t subid); - virtual bool isEvent(); virtual AkmSensor::Status startSensor(); virtual AkmSensor::Status startSensor(const float sec); virtual AkmSensor::Status stopSensor(); virtual AkmSensor::Status readSensorData(Message* msg); virtual Status requestCommand(Message* in, Message* out); - virtual char* getSensorName(); void eventCallback(); private: - bool event; - uint8_t primaryId; - uint8_t subId; - char* sensorName; - Ticker ticker; AnalogIn* ain; MCP342X* mcp3428;