inky v1.0.2 Inky.HAL behaviour View Source
A behaviour for defining the command interface between Inky and an IO implementation
Link to this section Summary
Link to this section Types
Link to this type
io_state()
View Source
io_state()
View Source
io_state() :: any()
io_state() :: any()
Link to this section Callbacks
Link to this callback
handle_update(pixels, border, policy, state)
View Source
handle_update(pixels, border, policy, state)
View Source
handle_update(
pixels :: map(),
border :: :white | :black | :red | :yellow | :accent,
policy :: :await | :once,
state :: Inky.IOCommands.State.t()
) :: :ok | {:error, :device_busy}
handle_update( pixels :: map(), border :: :white | :black | :red | :yellow | :accent, policy :: :await | :once, state :: Inky.IOCommands.State.t() ) :: :ok | {:error, :device_busy}
Link to this callback