midi_proto v0.1.0 MidiProto.Firmata.PinStateResponse

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

Link to this section Summary

Functions

Initialise a new PinStateResponse struct.

Link to this section Types

Link to this type

pin_mode()

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

t()

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

Link to this section Functions

Link to this function

init(pin, mode, state)

Initialise a new PinStateResponse struct.