Skip to content
Prev Previous commit
Next Next commit
fix rotation
  • Loading branch information
cheops authored Mar 5, 2024
commit 1e38649900d37e093d3c5358a33faf9b0b1356aa
2 changes: 1 addition & 1 deletion driver/frozen/display/display_driver_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def set_rotation(self, value):

if self._initilized:
self._param_buf[0] = (
self._madctl(self._color_byte_order, ~value, _ORIENTATION_TABLE)
self._madctl(self._color_byte_order, _ORIENTATION_TABLE, ~value)
)
self._data_bus.tx_param(_MADCTL, self._param_mv[:1])

Expand Down