hal/arduino/HalMultiSensor/SensorPhotocell.cpp
2016-05-10 16:04:39 +02:00

18 lines
No EOL
259 B
C++
Executable file

#include "SensorPhotocell.h"
#include <Arduino.h>
void SensorPhotocell::setup()
{
Interrupt::setupPinInterrupt(PC2); //PC3
}
void SensorPhotocell::read(PowerData& data)
{
data.consumption = pulse;
}
void SensorPhotocell::reset()
{
pulse = 0;
}