LcdDisplay.I2C.Behaviour behaviour (lcd_display v0.2.0) View Source

Defines a behaviour required for I2C abstraction.

Link to this section Summary

Link to this section Types

Specs

address() :: 0..127

Specs

bus_name() :: String.t()

Link to this section Callbacks

Specs

open(bus_name()) :: {:ok, reference()} | {:error, any()}
Link to this callback

write(reference, address, iodata)

View Source

Specs

write(reference(), address(), iodata()) :: :ok | {:error, any()}