Documentation ¶
Overview ¶
Package dragonboard contains the Gobot adaptor for the DragonBoard 410c
For further information refer to the chip README: https://github.com/hybridgroup/gobot/blob/master/platforms/dragonboard/README.md
Index ¶
- type Adaptor
- func (c *Adaptor) Connect() (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) Name() string
- func (c *Adaptor) SetName(n string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adaptor ¶
type Adaptor struct {
// contains filtered or unexported fields
}
Adaptor represents a Gobot Adaptor for a DragonBoard 410c
func (*Adaptor) DigitalRead ¶
DigitalRead reads digital value to the specified pin. Valids pins are the GPIO_A through GPIO_L pins from the extender (pins 23-34 on header J8), as well as the SoC pins aka all the other pins, APQ GPIO_0-GPIO_122 and PM_MPP_0-4.
func (*Adaptor) DigitalWrite ¶
DigitalWrite writes digital value to the specified pin. Valids pins are the GPIO_A through GPIO_L pins from the extender (pins 23-34 on header J8), as well as the SoC pins aka all the other pins, APQ GPIO_0-GPIO_122 and PM_MPP_0-4.
func (*Adaptor) GetConnection ¶
GetConnection returns a connection to a device on a specified bus. Valid bus number is [0..1] which corresponds to /dev/i2c-0 through /dev/i2c-1.
func (*Adaptor) GetDefaultBus ¶
GetDefaultBus returns the default i2c bus for this platform