gobot: gobot.io/x/gobot/platforms/intel-iot/edison Index | Files

package edison

import "gobot.io/x/gobot/platforms/intel-iot/edison"

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


Package Files

arduino_pinmap.go doc.go edison_adaptor.go miniboard_pinmap.go sparkfun_pinmap.go

type Adaptor Uses

type Adaptor struct {
    // contains filtered or unexported fields

Adaptor represents a Gobot Adaptor for an Intel Edison

func NewAdaptor Uses

func NewAdaptor() *Adaptor

NewAdaptor returns a new Edison Adaptor

func (*Adaptor) AnalogRead Uses

func (e *Adaptor) AnalogRead(pin string) (val int, err error)

AnalogRead returns value from analog reading of specified pin

func (*Adaptor) Board Uses

func (e *Adaptor) Board() string

Board returns the Adaptors board name

func (*Adaptor) Connect Uses

func (e *Adaptor) Connect() (err error)

Connect initializes the Edison for use with the Arduino beakout board

func (*Adaptor) DigitalPin Uses

func (e *Adaptor) DigitalPin(pin string, dir string) (sysfsPin sysfs.DigitalPinner, err error)

DigitalPin returns matched sysfs.DigitalPin for specified values

func (*Adaptor) DigitalRead Uses

func (e *Adaptor) DigitalRead(pin string) (i int, err error)

DigitalRead reads digital value from pin

func (*Adaptor) DigitalWrite Uses

func (e *Adaptor) DigitalWrite(pin string, val byte) (err error)

DigitalWrite writes a value to the pin. Acceptable values are 1 or 0.

func (*Adaptor) Finalize Uses

func (e *Adaptor) Finalize() (err error)

Finalize releases all i2c devices and exported analog, digital, pwm pins.

func (*Adaptor) GetConnection Uses

func (e *Adaptor) GetConnection(address int, bus int) (connection i2c.Connection, err error)

GetConnection returns an i2c connection to a device on a specified bus. Valid bus numbers are 1 and 6 (arduino).

func (*Adaptor) GetDefaultBus Uses

func (e *Adaptor) GetDefaultBus() int

GetDefaultBus returns the default i2c bus for this platform

func (*Adaptor) Name Uses

func (e *Adaptor) Name() string

Name returns the Adaptors name

func (*Adaptor) PWMPin Uses

func (e *Adaptor) PWMPin(pin string) (sysfsPin sysfs.PWMPinner, err error)

PWMPin returns a sysfs.PWMPin

func (*Adaptor) PwmWrite Uses

func (e *Adaptor) PwmWrite(pin string, val byte) (err error)

PwmWrite writes the 0-254 value to the specified pin

func (*Adaptor) SetBoard Uses

func (e *Adaptor) SetBoard(n string)

SetBoard sets the Adaptors name

func (*Adaptor) SetName Uses

func (e *Adaptor) SetName(n string)

SetName sets the Adaptors name

Package edison imports 9 packages (graph). Updated 2017-07-16. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).