Go to the source code of this file.
◆ relay_init()
relay init function
- Parameters
-
◆ relay_close()
◆ relay_on()
Sets the relay switch to on (closed circuit). This allows current to flow and lights up the indicator LED.
- Returns
- result of the operation
◆ relay_off()
Sets the relay switch to off (open circuit). This stops current from flowing and the indicator LED is not lit.
- Returns
- result of the operation
◆ relay_is_on()
Checks whether the relay switch is closed.
- Returns
- True if the switch is on (closed), false otherwise
◆ relay_is_off()
Checks whether the relay switch is open.
- Returns
- True if the switch is off (open), false otherwise
◆ relay_context