Relay::Relay(int pin, bool kind)
{
pinMode(pin, OUTPUT);
Do not call Arduino functions in constructors. Use a begin method for initializing the I/O.
Relay::Relay(int pin, bool kind)
{
pinMode(pin, OUTPUT);
Do not call Arduino functions in constructors. Use a begin method for initializing the I/O.