lib para o framework sgam

Dependencies:   MPU6050 Grove_temperature

Dependents:   example_smart-grid

Committer:
AndersonIctus
Date:
Sat Jun 01 13:17:03 2019 -0300
Revision:
1:53edfdd6ac03
Child:
3:f998244e9f80
- Incluir interfaces na biblioteca

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AndersonIctus 1:53edfdd6ac03 1 #ifndef SGAM_TEMPERATURE_H
AndersonIctus 1:53edfdd6ac03 2 #define SGAM_TEMPERATURE_H
AndersonIctus 1:53edfdd6ac03 3
AndersonIctus 1:53edfdd6ac03 4 #include "Sensor.h"
AndersonIctus 1:53edfdd6ac03 5 #include "Grove_temperature.h"
AndersonIctus 1:53edfdd6ac03 6
AndersonIctus 1:53edfdd6ac03 7 class Temperature: public Sensor {
AndersonIctus 1:53edfdd6ac03 8 public:
AndersonIctus 1:53edfdd6ac03 9 Temperature(PinName pin);
AndersonIctus 1:53edfdd6ac03 10
AndersonIctus 1:53edfdd6ac03 11 virtual void* getValue();
AndersonIctus 1:53edfdd6ac03 12 virtual void readOcurred( void* (*callBack)(void* value), float timeout = 0.0);
AndersonIctus 1:53edfdd6ac03 13
AndersonIctus 1:53edfdd6ac03 14 private:
AndersonIctus 1:53edfdd6ac03 15 Grove_temperature temperature;
AndersonIctus 1:53edfdd6ac03 16 void* value;
AndersonIctus 1:53edfdd6ac03 17 }
AndersonIctus 1:53edfdd6ac03 18 ;
AndersonIctus 1:53edfdd6ac03 19 #endif // SGAM_TEMPERATURE_H