def writeList(self, reg, list):
        # Writes an array of bytes using I2C format"
        try:
            self.bus.write_i2c_block_data(self.address, reg, list)
        except (IOError):
            print ("Error accessing 0x%02X: Check your I2C address" % self.address)
        return -1
dataset/ETHPy150Open cTn-dev/PyComms/PyComms/pycomms.py/PyComms.writeList/original