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
@type pin_mode() ::
:input
| :output
| :analog
| :pwm
| :servo
| :i2c
| :onewire
| :stepper
| :encoder
| :ignore
@type t() :: %MidiProto.Firmata.PinStateResponse{ mode: pin_mode(), pin: MidiProto.seven_bit_int(), state: binary() }
Functions
@spec init(MidiProto.seven_bit_int(), pin_mode(), binary()) :: t()
Initialise a new PinStateResponse struct.