Circuits.GPIO.open

You're seeing just the function open, go back to Circuits.GPIO module for more information.
Link to this function

open(pin_number, pin_direction, options \\ [])

View Source

Specs

open(pin_number(), pin_direction(), [open_option()]) ::
  {:ok, reference()} | {:error, atom()}

Open a GPIO for use.

pin should be a valid GPIO pin number on the system and pin_direction should be :input or :output. If opening as an output, then be sure to set the :initial_value option if you need the set to be glitch free.

Options:

  • :initial_value - Set to :not_set, 0 or 1 if this is an output. :not_set is the default.
  • :pull_mode - Set to :not_set, :pullup, :pulldown, or :none for an input pin. :not_set is the default.