MidiProto.Firmata.CapabilityResponse (midi_proto v0.2.0)

Represents a Firmata capability response implemented using a MIDI SysEx message.

Summary

Functions

Initialise a new CapabilityResponse struct.

Types

@type pin_mode() ::
  :unsupported
  | :digital_input
  | :digital_output
  | :analog_input
  | :pwm
  | :servo
  | :shift
  | :i2c
  | :onewire
  | :stepper
  | :encoder
  | :serial
  | :input_pullup
Link to this type

pin_resolution()

@type pin_resolution() :: non_neg_integer()
@type t() :: %MidiProto.Firmata.CapabilityResponse{
  capabilities: [{pin_mode(), pin_resolution()} | pin_mode()]
}

Functions

Link to this function

init(capabilities)

@spec init([{pin_mode(), pin_resolution()} | pin_mode()]) :: t()

Initialise a new CapabilityResponse struct.