Textile sensor
Dependents: MjTextileSensor_Hello
Diff: MjTextileSensor.h
- Revision:
- 0:9f5d5e904cb9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MjTextileSensor.h Wed Jul 01 13:58:31 2015 +0000 @@ -0,0 +1,19 @@ +#ifndef MJ_TEXTILESENSOR_H +#define MJ_TEXTILESENSOR_H + +#include "mbed.h" + +class MjTextileSensor +{ +public: + MjTextileSensor(I2C* i2c, uint8_t address); + bool GetVersion(uint8_t* majorVersion, uint8_t* minorVersion); + int GetSensorValues(uint8_t* sensorValues, size_t sensorValuesSize); + +private: + I2C *i2c; + uint8_t address; + +}; + +#endif