pyupm_relay module¶
-
class
pyupm_relay.
Relay
(pin)[source]¶ Bases:
object
API for the Relay.
ID: relay
Name: Relay
Other Names: Grove Relay
Category: relay
Manufacturer: seeed
Connection: gpio
Kit: gsk eak hak UPM module for the relay switch. The relay is a digital normally-open switch that uses low voltage or current to control a higher voltage and/or higher current. When closed, the indicator LED (if present) lights up and current is allowed to flow.
C++ includes: relay.hpp
-
isOff
()[source]¶ bool isOff()
Defines whether the relay switch is open.
True if the switch is off (open), false otherwise
-
isOn
()[source]¶ bool isOn()
Defines whether the relay switch is closed.
True if the switch is on (closed), false otherwise
-