#ifndef MY_RELAY_H #define MY_RELAY_H #include class Relay { private: byte pin; bool state = false; public: Relay(byte pin); void init(); void on(); void off(); bool getState(); }; #endif