Documentation ¶
Overview ¶
Package edison contains the Gobot adaptor for the Intel Edison.
For further information refer to intel-iot README: https://github.com/hybridgroup/gobot/blob/master/platforms/intel-iot/edison/README.md
Index ¶
- type Adaptor
- func (e *Adaptor) AnalogRead(pin string) (val int, err error)
- func (e *Adaptor) Board() string
- func (e *Adaptor) Connect() (err error)
- func (e *Adaptor) DigitalRead(pin string) (i int, err error)
- func (e *Adaptor) DigitalWrite(pin string, val byte) (err error)
- func (e *Adaptor) Finalize() (err error)
- func (e *Adaptor) GetConnection(address int, bus int) (connection i2c.Connection, err error)
- func (e *Adaptor) GetDefaultBus() int
- func (e *Adaptor) Name() string
- func (e *Adaptor) PwmWrite(pin string, val byte) (err error)
- func (e *Adaptor) SetBoard(n string)
- func (e *Adaptor) SetName(n string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adaptor ¶ added in v1.0.0
type Adaptor struct {
// contains filtered or unexported fields
}
Adaptor represents a Gobot Adaptor for an Intel Edison
func NewAdaptor ¶ added in v1.0.0
func NewAdaptor() *Adaptor
NewAdaptor returns a new Edison Adaptor
func (*Adaptor) AnalogRead ¶ added in v1.0.0
AnalogRead returns value from analog reading of specified pin
func (*Adaptor) Connect ¶ added in v1.0.0
Connect initializes the Edison for use with the Arduino beakout board
func (*Adaptor) DigitalRead ¶ added in v1.0.0
DigitalRead reads digital value from pin
func (*Adaptor) DigitalWrite ¶ added in v1.0.0
DigitalWrite writes a value to the pin. Acceptable values are 1 or 0.
func (*Adaptor) Finalize ¶ added in v1.0.0
Finalize releases all i2c devices and exported analog, digital, pwm pins.
func (*Adaptor) GetConnection ¶ added in v1.2.0
GetConnection returns an i2c connection to a device on a specified bus. Valid bus numbers are 1 and 6 (arduino).
func (*Adaptor) GetDefaultBus ¶ added in v1.2.0
GetDefaultBus returns the default i2c bus for this platform