Versions in this module Expand all Collapse all v1 v1.13.0 May 22, 2019 Changes in this version + type Adaptor struct + func NewAdaptor() *Adaptor + func (b *Adaptor) AnalogRead(pin string) (val int, err error) + func (b *Adaptor) Connect() error + func (b *Adaptor) DigitalPin(pin string, dir string) (sysfsPin sysfs.DigitalPinner, err error) + func (b *Adaptor) DigitalRead(pin string) (val int, err error) + func (b *Adaptor) DigitalWrite(pin string, val byte) (err error) + func (b *Adaptor) Finalize() (err error) + func (b *Adaptor) GetConnection(address int, bus int) (connection i2c.Connection, err error) + func (b *Adaptor) GetDefaultBus() int + func (b *Adaptor) GetSpiConnection(busNum, chipNum, mode, bits int, maxSpeed int64) (connection spi.Connection, err error) + func (b *Adaptor) GetSpiDefaultBits() int + func (b *Adaptor) GetSpiDefaultBus() int + func (b *Adaptor) GetSpiDefaultChip() int + func (b *Adaptor) GetSpiDefaultMaxSpeed() int64 + func (b *Adaptor) GetSpiDefaultMode() int + func (b *Adaptor) Name() string + func (b *Adaptor) PWMPin(pin string) (sysfsPin sysfs.PWMPinner, err error) + func (b *Adaptor) PwmWrite(pin string, val byte) (err error) + func (b *Adaptor) ServoWrite(pin string, angle byte) (err error) + func (b *Adaptor) SetName(n string) + type PocketBeagleAdaptor struct + func NewPocketBeagleAdaptor() *PocketBeagleAdaptor