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

Defines a behaviour required for I2C abstraction.

Link to this section Summary

Link to this section Types

Specs

data() :: binary()

Specs

i2c_address() :: byte()

Specs

i2c_bus() :: String.t()

Link to this section Callbacks

Specs

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

write(reference, i2c_address, data)

View Source

Specs

write(reference(), i2c_address(), data()) :: :ok | {:error, any()}