hal/arduino/HalMultiSensor/HardwarePhotocell.cpp
2016-02-24 21:51:16 +01:00

24 lines
No EOL
323 B
C++
Executable file

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