Files

22 lines
282 B
C++
Raw Permalink Normal View History

2018-05-02 20:42:52 +02:00
#pragma once
class Relais;
class SwitchWatcher
{
public:
explicit SwitchWatcher(const int pin, Relais &relais);
void begin();
void handle();
bool status() const;
private:
const int m_pin;
Relais &m_relais;
bool m_lastState;
int m_countdown;
};