code: func (b *Adaptor) translatePin(pin string) (value int, err error) {
  	if val, ok := b.pinMap[pin]; ok {
  		value = val
  	} else {
  		err = errors.New("Not a valid pin")
  	}
  	return
  }
docs: // translatePin converts digital pin name to pin position