diff --git a/st7789/st7789.go b/st7789/st7789.go index 0ee23ba..460cfa5 100644 --- a/st7789/st7789.go +++ b/st7789/st7789.go @@ -441,6 +441,7 @@ func (d *Device) Rotation() drivers.Rotation { // SetRotation changes the rotation of the device (clock-wise) func (d *Device) SetRotation(rotation Rotation) error { + d.rotation = rotation d.startWrite() err := d.setRotation(rotation) d.endWrite()