2016-05-02 10:56:15 +02:00
|
|
|
#ifndef SensorPhotocell_H
|
|
|
|
|
#define SensorPhotocell_H
|
2016-02-01 17:52:17 +01:00
|
|
|
|
2016-02-24 21:51:16 +01:00
|
|
|
#include "HalInterfaces.h"
|
|
|
|
|
#include "Interrupt.h"
|
2016-02-24 14:37:48 +01:00
|
|
|
|
2016-02-24 21:51:16 +01:00
|
|
|
|
2016-05-02 10:56:15 +02:00
|
|
|
class SensorPhotocell : public SensorPowerConsumption
|
2016-02-24 14:37:48 +01:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
virtual void setup();
|
|
|
|
|
virtual unsigned int getConsumption();
|
|
|
|
|
virtual void reset();
|
|
|
|
|
|
|
|
|
|
private:
|
2016-02-24 21:51:16 +01:00
|
|
|
Interrupt* interrupt;
|
2016-02-24 14:37:48 +01:00
|
|
|
unsigned int pulse;
|
2016-02-24 21:51:16 +01:00
|
|
|
};
|
2016-02-24 14:37:48 +01:00
|
|
|
|
2016-05-02 10:56:15 +02:00
|
|
|
#endif // SensorPhotocell_H
|