elixir_ale v0.7.0 ElixirALE.GPIO
This is an Elixir interface to Linux GPIOs. Each GPIO is an independent GenServer.
Summary
Functions
Read the current value of the pin
Free the resources associated with pin and stop the GenServer
Turn on “interrupts” on the input pin. The pin can be monitored for
:rising
transitions, :falling
transitions, or :both
. The process
that calls this method will receive the messages
Start and link a new GPIO GenServer. pin
should be a valid
GPIO pin number on the system and pin_direction
should be
:input
or :output
Write the specified value to the GPIO. The GPIO should be configured
as an output. Valid values are 0
or false
for logic low and 1
or true
for logic high. Other non-zero values will result in logic
high being output
Types
Functions
Turn on “interrupts” on the input pin. The pin can be monitored for
:rising
transitions, :falling
transitions, or :both
. The process
that calls this method will receive the messages.
Start and link a new GPIO GenServer. pin
should be a valid
GPIO pin number on the system and pin_direction
should be
:input
or :output
.