code: func (d *MCP3204Driver) AnalogRead(pin string) (value int, err error) {
  	channel, _ := strconv.Atoi(pin)
  	value, err = d.Read(channel)
  	if err != nil {
  		value = int(gobot.ToScale(gobot.FromScale(float64(value), 0, 4095), 0, 1023))
  	}
  
  	return
  }
docs: // AnalogRead returns value from analog reading of specified pin, scaled to 0-1023 value.