GrovePi v0.6.1 GrovePi.Relay View Source
Conveniences for controlling a GrovePi Relay.
The relay should be connected to a Digital port (e.g. D3). The relay can be connected to something with a larger load, i.e appliance or desk lamp, which can then be controlled by the GrovePi.
iex> pin = 3 3 iex> GrovePi.Relay.initialize(pin) :ok iex> GrovePi.Relay.on(pin) :ok iex> GrovePi.Relay.off(pin) :ok
Link to this section Summary
Link to this section Functions
Turns off the appliance, lamp, etc. connected to the relay.