lib para o framework sgam
Dependencies: MPU6050 Grove_temperature
Dependents: example_smart-grid
Diff: peripheral/impl/Temperature.h
- Revision:
- 3:f998244e9f80
- Parent:
- 1:53edfdd6ac03
- Child:
- 4:f21aab30658a
diff -r b028b978980a -r f998244e9f80 peripheral/impl/Temperature.h --- a/peripheral/impl/Temperature.h Sat Jun 01 16:27:17 2019 +0000 +++ b/peripheral/impl/Temperature.h Sun Jun 02 16:51:13 2019 -0300 @@ -1,19 +1,21 @@ #ifndef SGAM_TEMPERATURE_H #define SGAM_TEMPERATURE_H +#include "mbed.h" #include "Sensor.h" #include "Grove_temperature.h" -class Temperature: public Sensor { +class Temperature: public Sensor<float> { public: Temperature(PinName pin); + virtual ~Temperature(); - virtual void* getValue(); - virtual void readOcurred( void* (*callBack)(void* value), float timeout = 0.0); + virtual float* getValue(); + virtual void readOcurred( void* (*callBack)(float* value), float timeout); private: Grove_temperature temperature; - void* value; -} -; + float value; +}; + #endif // SGAM_TEMPERATURE_H