18 lines
181 B
C++
18 lines
181 B
C++
#pragma once
|
|
|
|
class Relais
|
|
{
|
|
public:
|
|
explicit Relais(const int pin);
|
|
|
|
void begin();
|
|
|
|
void on();
|
|
void off();
|
|
void toggle();
|
|
bool status() const;
|
|
|
|
private:
|
|
const int m_pin;
|
|
};
|