LcdDisplay.GPIO.Behaviour behaviour (lcd_display v0.3.0)

View Source

Defines a behaviour required for GPIO abstraction.

Summary

Types

direction()

@type direction() :: Circuits.GPIO.direction()

gpio_spec()

@type gpio_spec() :: Circuits.GPIO.gpio_spec()

value()

@type value() :: Circuits.GPIO.value()

Callbacks

open(gpio_spec, direction)

@callback open(gpio_spec(), direction()) :: {:ok, reference()} | {:error, any()}

write(reference, value)

@callback write(reference(), value()) :: :ok | {:error, any()}