Documentation ¶
Index ¶
- Constants
- type Beaglebone
- func (b *Beaglebone) AnalogRead(pin string) int
- func (b *Beaglebone) Connect() bool
- func (b *Beaglebone) DigitalWrite(pin string, val byte)
- func (b *Beaglebone) Disconnect() bool
- func (b *Beaglebone) Finalize() bool
- func (b *Beaglebone) I2cRead(size byte) []byte
- func (b *Beaglebone) I2cStart(address byte)
- func (b *Beaglebone) I2cWrite(data []byte)
- func (b *Beaglebone) InitServo()
- func (b *Beaglebone) PwmWrite(pin string, val byte)
- func (b *Beaglebone) Reconnect() bool
- func (b *Beaglebone) ServoWrite(pin string, val byte)
Constants ¶
View Source
const GPIO_DIRECTION_READ = "in"
View Source
const GPIO_DIRECTION_WRITE = "out"
View Source
const GPIO_PATH = "/sys/class/gpio"
View Source
const HIGH = 1
View Source
const I2C_LOCATION = "/dev/i2c-1"
View Source
const I2C_SLAVE = 0x0703
View Source
const LOW = 0
View Source
const OCP = "/sys/devices/ocp.*"
View Source
const SLOTS = "/sys/devices/bone_capemgr.*"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beaglebone ¶
func (*Beaglebone) AnalogRead ¶
func (b *Beaglebone) AnalogRead(pin string) int
func (*Beaglebone) Connect ¶
func (b *Beaglebone) Connect() bool
func (*Beaglebone) DigitalWrite ¶
func (b *Beaglebone) DigitalWrite(pin string, val byte)
func (*Beaglebone) Disconnect ¶
func (b *Beaglebone) Disconnect() bool
func (*Beaglebone) Finalize ¶
func (b *Beaglebone) Finalize() bool
func (*Beaglebone) I2cRead ¶
func (b *Beaglebone) I2cRead(size byte) []byte
func (*Beaglebone) I2cStart ¶
func (b *Beaglebone) I2cStart(address byte)
func (*Beaglebone) I2cWrite ¶
func (b *Beaglebone) I2cWrite(data []byte)
func (*Beaglebone) InitServo ¶
func (b *Beaglebone) InitServo()
func (*Beaglebone) PwmWrite ¶
func (b *Beaglebone) PwmWrite(pin string, val byte)
func (*Beaglebone) Reconnect ¶
func (b *Beaglebone) Reconnect() bool
func (*Beaglebone) ServoWrite ¶
func (b *Beaglebone) ServoWrite(pin string, val byte)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.