View Source Circuits.GPIO.Line (circuits_gpio v2.0.0-pre.3)

Information about a GPIO line returned from GPIO.enumerate/0

Summary

Types

t()

Line information

Types

@type t() :: %Circuits.GPIO.Line{
  consumer: String.t(),
  controller: Circuits.GPIO.controller() | Circuits.GPIO.label(),
  gpio_spec: Circuits.GPIO.gpio_spec(),
  label: Circuits.GPIO.label()
}

Line information

  • :gpio_spec - the gpio spec to pass to GPIO.open/3 to use the GPIO
  • :controller - the GPIO controller name or label. Empty string if unnamed
  • :label - a label for the line. Empty string if no label
  • :consumer - a hint at who's using the GPIO. Empty string if unused or unknown