Some Arduino refactoring and it builds now
This commit is contained in:
parent
606e767f34
commit
d377bbc0a9
14 changed files with 92 additions and 62 deletions
24
arduino/HalMultiSensor/SensorPhotocell.cpp
Executable file
24
arduino/HalMultiSensor/SensorPhotocell.cpp
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#include "SensorPhotocell.h"
|
||||
|
||||
|
||||
void pinInterrupt()
|
||||
{
|
||||
//++pulse;
|
||||
}
|
||||
|
||||
|
||||
void SensorPhotocell::setup()
|
||||
{
|
||||
interrupt = new Interrupt(pinInterrupt);
|
||||
interrupt->setupPinInterrupt(PC2); //PC3
|
||||
}
|
||||
|
||||
unsigned int SensorPhotocell::getConsumption()
|
||||
{
|
||||
return pulse;
|
||||
}
|
||||
|
||||
void SensorPhotocell::reset()
|
||||
{
|
||||
pulse = 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue