code: def _read(self, pin):
          
          config = _ADS1X15_CONFIG_OS_SINGLE
          config |= (pin & 0x07) << _ADS1X15_CONFIG_MUX_OFFSET
          config |= _ADS1X15_CONFIG_GAIN[self.gain]
          config |= self.mode
          config |= self.rate_config[self.data_rate]
          config |= _ADS1X15_CONFIG_COMP_QUE_DISABLE
          self._write_register(_ADS1X15_POINTER_CONFIG, config)
  
          while not self._conversion_complete():
              time.sleep(0.01)
  
          return self.get_last_result()
docs: Perform an ADC read. Returns the signed integer result of the read.