gpio_rpi v0.2.0 DummyGpioRpi

Stand in for GpioRpi in development mode

Summary

Functions

List of the values written to the the pin in order: the first is the head. Does not include the initial default value

Read the value of the pin. Can be set by #write/1. Defaults to zero

Resets the pin state to 0 and the pin_state_log to empty

Listen for interrupts on the pin

Just change the value of the ‘pin’ to the value. Can be read by #read/2

Functions

handle_cast(arg, from, state)
pin_state_log(pid)

List of the values written to the the pin in order: the first is the head. Does not include the initial default value.

read(pid)

Read the value of the pin. Can be set by #write/1. Defaults to zero.

reset_pin_states(pid)

Resets the pin state to 0 and the pin_state_log to empty

set_int(pid, direction)

Listen for interrupts on the pin

start_link(pin, direction, supplied_opts \\ nil)
trigger_int(pid, from, direction)
write(pid, value)

Just change the value of the ‘pin’ to the value. Can be read by #read/2