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
20
arduino/HalMultiSensor/SensorPhotocell.h
Executable file
20
arduino/HalMultiSensor/SensorPhotocell.h
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef SensorPhotocell_H
|
||||
#define SensorPhotocell_H
|
||||
|
||||
#include "HalInterfaces.h"
|
||||
#include "Interrupt.h"
|
||||
|
||||
|
||||
class SensorPhotocell : public SensorPowerConsumption
|
||||
{
|
||||
public:
|
||||
virtual void setup();
|
||||
virtual unsigned int getConsumption();
|
||||
virtual void reset();
|
||||
|
||||
private:
|
||||
Interrupt* interrupt;
|
||||
unsigned int pulse;
|
||||
};
|
||||
|
||||
#endif // SensorPhotocell_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue