code: def write(self, addr, data):
          '''Write access.
  
          :param addr: i2c slave address
          :type addr: char
          :param data: array/list of bytes
          :type data: iterable
          :rtype: None
  
          '''
          self.set_addr(addr & 0xfe)
          self.set_data(data)
          self.set_size(len(data))
          self.start()
          while not self.is_ready:
              pasf write(self, addr, data):
          '''Write access.
  
          :param addr: i2c slave address
          :type addr: char
          :param data: array/list of bytes
          :type data: iterable
          :rtype: None
  
          '''
          self.set_addr(addr & 0xfe)
          self.set_data(data)
          self.set_size(len(data))
          self.start()
          while not self.is_ready:
              pass
docs: Write access.
  
          :param addr: i2c slave address
          :type addr: char
          :param data: array/list of bytes
          :type data: iterable
          :rtype: None