Fixed build issue

This commit is contained in:
Ziver Koc 2016-02-24 21:51:16 +01:00
parent bfc7308cce
commit 853f1d0fe8
14 changed files with 172 additions and 115 deletions

View file

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