adafruit_bus_device/i2c_device.py
def __probe_for_device(self):
        """
        Try to read a byte from an address,
        if you get an OSError it means the device is not there
        or that the device does not support these means of probing
        """
        #doesn't like try_lock. Let's just remove.
        #can add a fix later if needed
        try:
            self.i2c.writeto(self.device_address, b"")
        except OSError:
            # some OS's dont like writing an empty bytesting...
            # Retry by reading a byte
            try:
                result = bytearray(1)
                self.i2c.readfrom_into(self.device_address, result)
            except OSError:
                # pylint: disable=raise-missing-from
                raise ValueError("No I2C device at address: 0x%x" % self.device_address)
                # pylint: enable=raise-missing-from

        Try to read a byte from an address,
        if you get an OSError it means the device is not there
        or that the device does not support these means of probing
        
Try to read a byte from an address,
if you get an OSError it means the device is not there
or that the device does not support these means of probing
Try to read a byte from an address if you get an OSError it means the device is not there or that the device does not support these means of probing
def __probe_for_device(self):
        try:
            self.i2c.writeto(self.device_address, b"")
        except OSError:
            try:
                result = bytearray(1)
                self.i2c.readfrom_into(self.device_address, result)
            except OSError:
                raise ValueError("No I2C device at address: 0x%x" % self.device_address)
def __probe_for_device ( self ) : try : self . i2c . writeto ( self . device_address , b"" ) except OSError : try : result = bytearray ( 1 ) self . i2c . readfrom_into ( self . device_address , result ) except OSError : raise ValueError ( "No I2C device at address: 0x%x" % self . device_address )
Try to read a byte from an address,
if you get an OSError it means the device is not there
or that the device does not support these means of probing
Try to read a byte from an address if you get an OSError it means the device is not there or that the device does not support these means of probing
"""
        Try to read a byte from an address,
        if you get an OSError it means the device is not there
        or that the device does not support these means of probing
        """ #doesn't like try_lock. Let's just remove. #can add a fix later if needed # some OS's dont like writing an empty bytesting... # Retry by reading a byte # pylint: disable=raise-missing-from # pylint: enable=raise-missing-from
self