Versions in this module Expand all Collapse all v1 v1.9.0 Feb 14, 2018 v1.8.0 Dec 21, 2017 Changes in this version + type Adaptor struct + func NewAdaptor() *Adaptor + func (c *Adaptor) Connect() (err error) + func (c *Adaptor) DigitalPin(pin string, dir string) (sysfsPin sysfs.DigitalPinner, err error) + func (c *Adaptor) DigitalRead(pin string) (val int, err error) + func (c *Adaptor) DigitalWrite(pin string, val byte) (err error) + func (c *Adaptor) Finalize() (err error) + func (c *Adaptor) GetConnection(address int, bus int) (connection i2c.Connection, err error) + func (c *Adaptor) GetDefaultBus() int + func (c *Adaptor) GetSpiConnection(busNum, mode int, maxSpeed int64) (connection spi.Connection, err error) + func (c *Adaptor) GetSpiDefaultBus() int + func (c *Adaptor) GetSpiDefaultMaxSpeed() int64 + func (c *Adaptor) GetSpiDefaultMode() int + func (c *Adaptor) Name() string + func (c *Adaptor) PWMPin(pin string) (sysfsPin sysfs.PWMPinner, err error) + func (c *Adaptor) PwmWrite(pin string, val byte) (err error) + func (c *Adaptor) ServoWrite(pin string, angle byte) (err error) + func (c *Adaptor) SetName(n string)