lib para o framework sgam

Dependencies:   MPU6050 Grove_temperature

Dependents:   example_smart-grid

Committer:
AndersonIctus
Date:
Sun Jun 02 16:51:13 2019 -0300
Revision:
3:f998244e9f80
Parent:
1:53edfdd6ac03
Child:
4:f21aab30658a
- Inclusao dos Arquivos para o GIROSCOPIO !!

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 3:f998244e9f80 4 #include "mbed.h"
AndersonIctus 1:53edfdd6ac03 5 #include "Sensor.h"
AndersonIctus 1:53edfdd6ac03 6 #include "Grove_temperature.h"
AndersonIctus 1:53edfdd6ac03 7
AndersonIctus 3:f998244e9f80 8 class Temperature: public Sensor<float> {
AndersonIctus 1:53edfdd6ac03 9 public:
AndersonIctus 1:53edfdd6ac03 10 Temperature(PinName pin);
AndersonIctus 3:f998244e9f80 11 virtual ~Temperature();
AndersonIctus 1:53edfdd6ac03 12
AndersonIctus 3:f998244e9f80 13 virtual float* getValue();
AndersonIctus 3:f998244e9f80 14 virtual void readOcurred( void* (*callBack)(float* value), float timeout);
AndersonIctus 1:53edfdd6ac03 15
AndersonIctus 1:53edfdd6ac03 16 private:
AndersonIctus 1:53edfdd6ac03 17 Grove_temperature temperature;
AndersonIctus 3:f998244e9f80 18 float value;
AndersonIctus 3:f998244e9f80 19 };
AndersonIctus 3:f998244e9f80 20
AndersonIctus 1:53edfdd6ac03 21 #endif // SGAM_TEMPERATURE_H