code: def write(self, buf, **kwargs):
          
          self.i2c.writeto(self.device_address, buf, **kwargs)
          if self._debug:
              print("i2c_device.write:", [hex(i) for i in buf])
docs: Write the bytes from ``buffer`` to the device. Transmits a stop bit if
          ``stop`` is set.
  
          If ``start`` or ``end`` is provided, then the buffer will be sliced
          as if ``buffer[start:end]``. This will not cause an allocation like
          ``buffer[start:end]`` will so it saves memory.
  
          :param bytearray buffer: buffer containing the bytes to write
          :param int start: Index to start writing from
          :param int end: Index to read up to but not include
          :param bool stop: If true, output an I2C stop condition after the buffer is written