Some Arduino refactoring and it builds now

This commit is contained in:
Ziver Koc 2016-05-02 10:56:15 +02:00
parent 606e767f34
commit d377bbc0a9
14 changed files with 92 additions and 62 deletions

View file

@ -1,24 +0,0 @@
#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;
}