Some refactoring
This commit is contained in:
parent
78317d6c4f
commit
1273bcae49
11 changed files with 182 additions and 234 deletions
|
|
@ -7,9 +7,9 @@ void SensorPhotocell::setup()
|
|||
Interrupt::setupPinInterrupt(PC2); //PC3
|
||||
}
|
||||
|
||||
unsigned int SensorPhotocell::getConsumption()
|
||||
void SensorPhotocell::read(PowerData& data)
|
||||
{
|
||||
return pulse;
|
||||
data.consumption = pulse;
|
||||
}
|
||||
|
||||
void SensorPhotocell::reset()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue