def close(self):
        """
        Close the i2c connection.
        """
        if self.fd:
            os.close(self.fd)
            self.fd = None
def close ( self ) : if self . fd : os . close ( self . fd ) self . fd = None
Close the i2c connection.