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

Defines a behaviour required for SPI abstraction.

Link to this section Summary

Link to this section Types

Specs

data() :: binary()

Specs

spi_address() :: byte()

Specs

spi_bus() :: String.t()

Link to this section Callbacks

Specs

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

transfer(reference, data)

View Source

Specs

transfer(reference(), data()) :: {:ok, binary()} | {:error, any()}