Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MPU6050 Grove_temperature
Dependents: example_smart-grid
peripheral/Sensor.h
- Committer:
- AndersonIctus
- Date:
- 2019-06-02
- Revision:
- 3:f998244e9f80
- Parent:
- 1:53edfdd6ac03
- Child:
- 4:f21aab30658a
File content as of revision 3:f998244e9f80:
#ifndef SGAM_SENSOR_H #define SGAM_SENSOR_H #include "mbed.h" template <class T> class Sensor { public: Sensor() { } ; ~Sensor(){ }; virtual T* getValue() = 0; virtual void readOcurred( void* (*callBack)(T* value), float timeout) = 0; }; #endif // SGAM_SENSOR_H