20 lines
356 B
C++
Executable file
20 lines
356 B
C++
Executable file
#ifndef SensorPhotocell_H
|
|
#define SensorPhotocell_H
|
|
|
|
#include "HalInterfaces.h"
|
|
#include "Interrupt.h"
|
|
|
|
|
|
class SensorPhotocell : public SensorPowerConsumption
|
|
{
|
|
public:
|
|
virtual void setup();
|
|
virtual unsigned int getConsumption();
|
|
virtual void reset();
|
|
|
|
private:
|
|
Interrupt* interrupt;
|
|
unsigned int pulse;
|
|
};
|
|
|
|
#endif // SensorPhotocell_H
|