hal/arduino/HalMultiSensor/SensorPhotocell.cpp

18 lines
No EOL
250 B
C++
Executable file

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