code: func NewAdaptor() *Adaptor {
  	b := &Adaptor{
  		name:         gobot.DefaultName("BeagleboneBlack"),
  		digitalPins:  make([]*sysfs.DigitalPin, 120),
  		pwmPins:      make(map[string]*sysfs.PWMPin),
  		i2cBuses:     make(map[int]i2c.I2cDevice),
  		mutex:        &sync.Mutex{},
  		pinMap:       bbbPinMap,
  		pwmPinMap:    bbbPwmPinMap,
  		analogPinMap: bbbAnalogPinMap,
  		findPin: func(pinPath string) (string, error) {
  			files, err := filepath.Glob(pinPath)
  			return files[0], err
  		},
  	}
  
  	b.setPaths()
  	return b
  }
docs: // NewAdaptor returns a new Beaglebone Black/Green Adaptor