#include <relay.h>
Definition at line 86 of file relay.h.
◆ RelayAL()
RelayAL::RelayAL |
( |
int |
pin | ) |
|
Construct a new active low relay.
- Parameters
-
pin | pin number where relay is wired |
Definition at line 36 of file relay.cpp.
◆ begin()
void RelayAL::begin |
( |
Switch |
sw | ) |
|
|
virtual |
initialise pin and set initial relay state
- Parameters
-
Implements Relay.
Definition at line 38 of file relay.cpp.
◆ get_state()
int RelayAL::get_state |
( |
| ) |
|
|
virtual |
Get the current state.
- Returns
- int 1 if ON
Implements Relay.
Definition at line 46 of file relay.cpp.
◆ set()
void RelayAL::set |
( |
Switch |
state | ) |
|
|
virtual |
set relay state
- Parameters
-
state | On to switch on, the state is managed internally |
Implements Relay.
Definition at line 44 of file relay.cpp.
◆ toggle()
The documentation for this class was generated from the following files: