hal/arduino/HalMultiSensor/SensorPhotocell.cpp

24 lines
No EOL
315 B
C++
Executable file

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