code: func (f *Adaptor) PwmWrite(pin string, level byte) (err error) {
  	p, err := strconv.Atoi(pin)
  	if err != nil {
  		return err
  	}
  
  	if f.Board.Pins()[p].Mode != client.Pwm {
  		err = f.Board.SetPinMode(p, client.Pwm)
  		if err != nil {
  			return err
  		}
  	}
  	err = f.Board.AnalogWrite(p, int(level))
  	return
  }
docs: // PwmWrite writes the 0-254 value to the specified pin