Documentation ¶
Overview ¶
Package raspi contains the Gobot adaptor for the Raspberry Pi.
For further information refer to raspi README: https://github.com/hybridgroup/gobot/blob/master/platforms/raspi/README.md
Index ¶
- type Adaptor
- func (r *Adaptor) Connect() (err error)
- func (r *Adaptor) DigitalRead(pin string) (val int, err error)
- func (r *Adaptor) DigitalWrite(pin string, val byte) (err error)
- func (r *Adaptor) Finalize() (err error)
- func (r *Adaptor) I2cRead(address int, size int) (data []byte, err error)
- func (r *Adaptor) I2cStart(address int) (err error)
- func (r *Adaptor) I2cWrite(address int, data []byte) (err error)
- func (r *Adaptor) Name() string
- func (r *Adaptor) PwmWrite(pin string, val byte) (err error)
- func (r *Adaptor) ServoWrite(pin string, angle byte) (err error)
- func (r *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 is the Gobot Adaptor for the Raspberry Pi
func (*Adaptor) Connect ¶
Connect starts connection with board and creates digitalPins and pwmPins adaptor maps
func (*Adaptor) DigitalRead ¶
DigitalRead reads digital value from pin
func (*Adaptor) DigitalWrite ¶
DigitalWrite writes digital value to specified pin
func (*Adaptor) ServoWrite ¶
ServoWrite writes a servo signal to the specified pin
Click to show internal directories.
Click to hide internal directories.