Home

Awesome

go-beaglebone

Go package for the BeagleBone open source hardware

Also check out https://github.com/SpaceLeap/go-embedded

This package builds on top of github.com/SpaceLeap/go-embedded and offers BeagleBone specific constants, variables and initializes go-embedded for the BeagleBone:

func init() {
	err := embedded.Init("bone_capemgr")
	if err != nil {
		panic(err)
	}

	spi.Init("ADAFRUIT-SPI")

	err = pwm.Init("am33xx_pwm", "bone_pwm_")
	if err != nil {
		panic(err)
	}

	err = adc.Init("cape-bone-iio")
	if err != nil {
		panic(err)
	}
}