Skip to content

Commit a583b13

Browse files
authored
Update display_driver_framework.py
Remove RGB "black lines" on rotations _90 & _270
1 parent d3769f8 commit a583b13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api_drivers/py_api_drivers/frozen/display/display_driver_framework.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,9 @@ def _flush_cb(self, _, area, color_p):
566566
lv.color_format_get_size(self._color_space)
567567
)
568568

569+
if isinstance(self._data_bus, lcd_bus.RGBBus) and self._rotation>0:
570+
y2+=1
571+
569572
cmd = self._set_memory_location(x1, y1, x2, y2)
570573

571574
# we have to use the __dereference__ method because this method is

0 commit comments

Comments
 (0)