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

package joule

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

Package joule contains the Gobot adaptor for the Intel Joule.

For further information refer to intel-iot README: https://github.com/hybridgroup/gobot/blob/master/platforms/intel-iot/joule/README.md


Package Files

doc.go joule_adaptor.go tuchuck_pinmap.go

type Adaptor Uses

type Adaptor struct {
    // contains filtered or unexported fields

Adaptor represents an Intel Joule

func NewAdaptor Uses

func NewAdaptor() *Adaptor

NewAdaptor returns a new Joule Adaptor

func (*Adaptor) Connect Uses

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

Connect initializes the Joule 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 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 digital and 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 number is [0..2] which corresponds to /dev/i2c-0 through /dev/i2c-2.

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) SetName Uses

func (e *Adaptor) SetName(n string)

SetName sets the Adaptors name

Package joule imports 7 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).