Versions in this module Expand all Collapse all v1 v1.16.1 Oct 24, 2022 v1.16.0 Oct 18, 2022 Changes in this version + const ReceiveID — darwin/amd64, js/wasm, linux/amd64 + const TransmitID — darwin/amd64, js/wasm, linux/amd64 + func NewFirmataI2cConnection(adaptor *Adaptor, address int) (connection *firmataI2cConnection) + type Adaptor struct + Board firmataBoard + PortOpener func(port string) (io.ReadWriteCloser, error) + func NewAdaptor(args ...interface{}) *Adaptor + func (f *Adaptor) AnalogRead(pin string) (val int, err error) + func (f *Adaptor) Connect() (err error) + func (f *Adaptor) DigitalRead(pin string) (val int, err error) + func (f *Adaptor) DigitalWrite(pin string, level byte) (err error) + func (f *Adaptor) Disconnect() (err error) + func (f *Adaptor) Finalize() (err error) + func (f *Adaptor) GetConnection(address int, bus int) (connection i2c.Connection, err error) + func (f *Adaptor) GetDefaultBus() int + func (f *Adaptor) Name() string + func (f *Adaptor) Port() string + func (f *Adaptor) PwmWrite(pin string, level byte) (err error) + func (f *Adaptor) ServoConfig(pin string, min, max int) error + func (f *Adaptor) ServoWrite(pin string, angle byte) (err error) + func (f *Adaptor) SetName(n string) + func (f *Adaptor) WriteSysex(data []byte) error + type BLEAdaptor struct — darwin/amd64, js/wasm, linux/amd64 + func NewBLEAdaptor(args ...interface{}) *BLEAdaptor + type FirmataAdaptor interface + Connect func() (err error) + Finalize func() (err error) + Name func() string + SetName func(n string) + WriteSysex func(data []byte) error + type TCPAdaptor struct + func NewTCPAdaptor(args ...interface{}) *TCPAdaptor