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