Some changes to Interrupt.h
This commit is contained in:
parent
d377bbc0a9
commit
4cf9170616
4 changed files with 98 additions and 44 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue