Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 570 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 570 Bytes

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