hal/arduino/HalMultiSensor/SensorPhotocell.cpp

24 lines
315 B
C++
Raw Normal View History

#include "SensorPhotocell.h"
2016-02-24 21:51:16 +01:00
void pinInterrupt()
{
2016-02-24 21:51:16 +01:00
//++pulse;
}
void SensorPhotocell::setup()
{
2016-02-24 21:51:16 +01:00
interrupt = new Interrupt(pinInterrupt);
interrupt->setupPinInterrupt(PC2); //PC3
}
unsigned int SensorPhotocell::getConsumption()
{
return pulse;
}
void SensorPhotocell::reset()
{
pulse = 0;
}