MidiProto.Firmata.PinStateResponse (midi_proto v0.2.1)

Copy Markdown

Represents a Firmata pin state response implemented using a MIDI SysEx message.

Summary

Functions

Initialise a new PinStateResponse struct.

Types

pin_mode()

@type pin_mode() ::
  :input
  | :output
  | :analog
  | :pwm
  | :servo
  | :i2c
  | :onewire
  | :stepper
  | :encoder
  | :ignore

t()

@type t() :: %MidiProto.Firmata.PinStateResponse{
  mode: pin_mode(),
  pin: MidiProto.seven_bit_int(),
  state: binary()
}

Functions

init(pin, mode, state)

@spec init(MidiProto.seven_bit_int(), pin_mode(), binary()) :: t()

Initialise a new PinStateResponse struct.