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_SENSOR_H
AndersonIctus 1:53edfdd6ac03 2 #define SGAM_SENSOR_H
AndersonIctus 1:53edfdd6ac03 3
AndersonIctus 1:53edfdd6ac03 4 #include "mbed.h"
AndersonIctus 1:53edfdd6ac03 5
AndersonIctus 1:53edfdd6ac03 6 class Sensor {
AndersonIctus 1:53edfdd6ac03 7 public:
AndersonIctus 1:53edfdd6ac03 8 Sensor() { } ;
AndersonIctus 1:53edfdd6ac03 9 virtual ~Sensor();
AndersonIctus 1:53edfdd6ac03 10
AndersonIctus 1:53edfdd6ac03 11 virtual void* getValue() = 0;
AndersonIctus 1:53edfdd6ac03 12 virtual void readOcurred( void* (*callBack)(void* value), float timeout = 0.0) = 0;
AndersonIctus 1:53edfdd6ac03 13 };
AndersonIctus 1:53edfdd6ac03 14
AndersonIctus 1:53edfdd6ac03 15 #endif // SGAM_SENSOR_H