We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a00032c commit 779b921Copy full SHA for 779b921
ev3dev/display.py
@@ -272,7 +272,8 @@ def update(self):
272
Nothing will be drawn on the screen until this function is called.
273
"""
274
if self.var_info.bits_per_pixel == 1:
275
- self.mmap[:] = self._img.tobytes("raw", "1;IR")
+ b = self._img.tobytes("raw", "1;R")
276
+ self.mmap[:len(b)] = b
277
elif self.var_info.bits_per_pixel == 16:
278
self.mmap[:] = self._img_to_rgb565_bytes()
279
else:
0 commit comments