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/release/platforms/intel-iot/edison/README.md
Index ¶
- type Adaptor
- func (a *Adaptor) AnalogRead(pin string) (int, error)
- func (a *Adaptor) Connect() error
- func (a *Adaptor) DigitalPin(id string) (gobot.DigitalPinner, error)
- func (a *Adaptor) DigitalRead(pin string) (int, error)
- func (a *Adaptor) DigitalWrite(pin string, val byte) error
- func (a *Adaptor) Finalize() error
- func (a *Adaptor) Name() string
- func (a *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 { *adaptors.AnalogPinsAdaptor *adaptors.PWMPinsAdaptor *adaptors.I2cBusAdaptor // contains filtered or unexported fields }
Adaptor represents a Gobot Adaptor for an Intel Edison
func NewAdaptor ¶
func NewAdaptor(opts ...interface{}) *Adaptor
NewAdaptor returns a new Edison Adaptor of the given type. Supported types are: "arduino", "miniboard", "sparkfun", an empty string defaults to "arduino"
Optional parameters for PWM, see [adaptors.NewPWMPinsAdaptor]
func (*Adaptor) AnalogRead ¶
AnalogRead returns value from analog reading of specified pin
func (*Adaptor) DigitalPin ¶
DigitalPin returns a digital pin. If the pin is initially acquired, it is an input. Pin direction and other options can be changed afterwards by pin.ApplyOptions() at any time.
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.