package bbb import ( lgpio "github.com/kidoman/embd/driver/linux/gpio" li2c "github.com/kidoman/embd/driver/linux/i2c" "github.com/kidoman/embd/host" ) func init() { host.Describers[host.BBB] = describer } func describer(rev int) *host.Descriptor { return &host.Descriptor{ GPIO: func() interface{} { return lgpio.New(pins) }, I2C: func() interface{} { return li2c.New() }, } }