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) I2cRead(address int, size int) (data []byte, err error)
- func (e *Adaptor) I2cStart(address int) (err error)
- func (e *Adaptor) I2cWrite(address int, data []byte) (err error)
- 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 ¶
type Adaptor struct {
// contains filtered or unexported fields
}
Adaptor represents a Gobot Adaptor for an Intel Edison
func (*Adaptor) AnalogRead ¶
AnalogRead returns value from analog reading of specified pin
func (*Adaptor) DigitalRead ¶
DigitalRead reads digital value from pin
func (*Adaptor) DigitalWrite ¶
DigitalWrite writes a value to the pin. Acceptable values are 1 or 0.
func (*Adaptor) Finalize ¶
Finalize releases all i2c devices and exported analog, digital, pwm pins.
Click to show internal directories.
Click to hide internal directories.