code: def command(self, *cmd):
          
          assert(len(cmd) <= 32)
  
          try:
              self._bus.write_i2c_block_data(self._addr, self._cmd_mode,
                                             list(cmd))
          except (IOError, OSError) as e:
              if e.errno in [errno.EREMOTEIO, errno.EIO]:
                  # I/O error
                  raise luma.core.error.DeviceNotFoundError(
                      'I2C device not found on address: 0x{0:02X}'.format(self._addr))
              else:  # pragma: no cover
                  raise
docs: Sends a command or sequence of commands through to the I²C address
          - maximum allowed is 32 bytes in one go.
  
          :param cmd: A spread of commands.
          :type cmd: int
          :raises luma.core.error.DeviceNotFoundError: I2C device could not be found.