I am trying to send the data to the framebuffer of a display but getting following error
File ".venv/lib/python3.13/site-packages/ch347api/i2c.py", line 53, in write
return self.dev.i2c_write(self.addr, data=payload)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.13/site-packages/ch347api/__device.py", line 183, in wrapper
ret = func(self, *args, **kwargs)
File ".venv/lib/python3.13/site-packages/ch347api/__device.py", line 235, in i2c_write
status, feedback = self.__i2c_read_write_raw(payload)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File ".venv/lib/python3.13/site-packages/ch347api/__device.py", line 299, in __i2c_read_write_raw
payload = struct.pack("<BHBBB", 0x00, len(data) + len(tail) + 4, 0xaa, 0x74, len(data) | 0b1000_0000)
struct.error: 'B' format requires 0 <= number <= 255
I am trying to send the data to the framebuffer of a display but getting following error