int get_state()
Get the current state.
RelayAH(int pin)
Construct a new active high relay.
void begin(Switch sw)
initialise pin and set initial relay state
void set(Switch state)
set relay state
void toggle()
Toggle the relay.
void set(Switch state)
set relay state
int get_state()
Get the current state.
RelayAL(int pin)
Construct a new active low relay.
void begin(Switch sw)
initialise pin and set initial relay state
void toggle()
Toggle the relay.
virtual int get_state()=0
virtual void begin(Switch sw)=0
virtual void set(Switch state)=0