Versions in this module Expand all Collapse all v0 v0.11.0 Feb 17, 2016 Changes in this version + const Analog + const AnalogMappingQuery + const AnalogMappingResponse + const AnalogMessage + const AnalogMessageRangeEnd + const AnalogMessageRangeStart + const CapabilityQuery + const CapabilityResponse + const DigitalMessage + const DigitalMessageRangeEnd + const DigitalMessageRangeStart + const EndSysex + const FirmwareQuery + const I2CConfig + const I2CModeContinuousRead + const I2CModeRead + const I2CModeStopReading + const I2CModeWrite + const I2CReply + const I2CRequest + const Input + const Output + const PinMode + const PinStateQuery + const PinStateResponse + const ProtocolVersion + const Pwm + const ReportAnalog + const ReportDigital + const Servo + const ServoConfig + const StartSysex + const StringData + const SystemReset + var ErrConnected = errors.New("client is already connected") + type Client struct + FirmwareName string + ProtocolVersion string + func New() *Client + func (b *Client) AnalogMappingQuery() error + func (b *Client) AnalogWrite(pin int, value int) error + func (b *Client) CapabilitiesQuery() error + func (b *Client) Connect(conn io.ReadWriteCloser) (err error) + func (b *Client) Connected() bool + func (b *Client) DigitalWrite(pin int, value int) error + func (b *Client) Disconnect() (err error) + func (b *Client) FirmwareQuery() error + func (b *Client) I2cConfig(delay int) error + func (b *Client) I2cRead(address int, numBytes int) error + func (b *Client) I2cWrite(address int, data []byte) error + func (b *Client) PinStateQuery(pin int) error + func (b *Client) Pins() []Pin + func (b *Client) ProtocolVersionQuery() error + func (b *Client) ReportAnalog(pin int, state int) error + func (b *Client) ReportDigital(pin int, state int) error + func (b *Client) Reset() error + func (b *Client) ServoConfig(pin int, max int, min int) error + func (b *Client) SetPinMode(pin int, mode int) error + type I2cReply struct + Address int + Data []byte + Register int + type Pin struct + AnalogChannel int + Mode int + State int + SupportedModes []int + Value int