Skip to content
6 changes: 3 additions & 3 deletions driver/display/st7789.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def init(self):
)
self.set_params(_MADCTL, param_mv[:1])

param_buf[1] = 0x0A
param_buf[2] = 0x82
self.set_params(0xB6, param_mv[:3])
param_buf[0] = 0x0A
param_buf[1] = 0x82
self.set_params(0xB6, param_mv[:2])

param_buf[0] = 0x00
param_buf[1] = 0xE0
Expand Down
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 @@ -443,7 +443,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