code: func NewADS1015Driver(a Connector, options ...func(Config)) *ADS1x15Driver {
  	l := newADS1x15Driver(a, options...)
  
  	l.dataRates = map[int]uint16{
  		128:  0x0000,
  		250:  0x0020,
  		490:  0x0040,
  		920:  0x0060,
  		1600: 0x0080,
  		2400: 0x00A0,
  		3300: 0x00C0,
  	}
  	if l.DefaultDataRate == 0 {
  		l.DefaultDataRate = 1600
  	}
  
  	l.converter = func(data []byte) (value float64) {
  		result := (int(data[0]) << 8) | int(data[1])
  
  		if result&0x8000 != 0 {
  			result -= 1 << 16
  		}
  
  		return float64(result) / float64(1<<15)
  	}
  
  	return l
  }
docs: // NewADS1015Driver creates a new driver for the ADS1015 (12-bit ADC)
  // Largely inspired by: https://github.com/adafruit/Adafruit_Python_ADS1x15