Some changes to Interrupt.h

This commit is contained in:
Ziver Koc 2016-05-02 16:39:39 +02:00
parent d377bbc0a9
commit 4cf9170616
4 changed files with 98 additions and 44 deletions

View file

@ -1,16 +1,10 @@
#include "SensorPhotocell.h"
void pinInterrupt()
{
//++pulse;
}
#include <Arduino.h>
void SensorPhotocell::setup()
{
interrupt = new Interrupt(pinInterrupt);
interrupt->setupPinInterrupt(PC2); //PC3
Interrupt::setupPinInterrupt(PC2); //PC3
}
unsigned int SensorPhotocell::getConsumption()