Closed lzty634158 closed 1 year ago
Hi @lzty634158,
It's possible i2c.read(self.address, 1)
is returning an empty byte array, and ustruct
cannot unpack it. You can try printing mode1
to see what it contains before the unpacking.
Closing due to lack of activity. @lzty634158 if you are still experiencing this issue please feel free to reopen this issue and we can have a look at it 👍
Error: mode1 = ustruct.unpack('<H', mode1)[0] ValueError: buffer too small