Go package for the BeagleBone open source hardware
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
overlays
uart
.gitignore
LICENSE
README.md
beaglebone.go
constants.go

README.md

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)
	}
}