Arb.activate

You're seeing just the function activate, go back to Arb module for more information.
Link to this function

activate(ids, opts \\ [])

View Source

Specs

activate([integer()], Keyword.t()) :: :ok | {:error, atom()}

Given a list of ids turns on the corresponding relays. An empty list turns off all relays.

The relays are labeled from 1 to 8 according to the data sheet.

Options

The accepted options are:

  • :verify – configures whether the activation should be verfied (default: true)
  • :port – configures which USB port to use. Only necessary if multiple relay boards are connected (default: nil)

Examples

iex> Arb.activate([1, 4, 7])
:ok