ServoKit.I2C.Behaviour behaviour (servo_kit v0.0.8) View Source

Defines a behaviour required for I²C abstraction.

Link to this section Summary

Link to this section Callbacks

Specs

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

write(reference, pos_integer, binary)

View Source

Specs

write(reference(), pos_integer(), binary()) :: :ok | {:error, any()}