lib para o framework sgam
Dependencies: MPU6050 Grove_temperature
Dependents: example_smart-grid
Diff: peripheral/impl/Temperature.h
- Revision:
- 1:53edfdd6ac03
- Child:
- 3:f998244e9f80
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/peripheral/impl/Temperature.h Sat Jun 01 13:17:03 2019 -0300 @@ -0,0 +1,19 @@ +#ifndef SGAM_TEMPERATURE_H +#define SGAM_TEMPERATURE_H + +#include "Sensor.h" +#include "Grove_temperature.h" + +class Temperature: public Sensor { +public: + Temperature(PinName pin); + + virtual void* getValue(); + virtual void readOcurred( void* (*callBack)(void* value), float timeout = 0.0); + +private: + Grove_temperature temperature; + void* value; +} +; +#endif // SGAM_TEMPERATURE_H