mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
st7789: update saved rotation in SetRotation
This commit is contained in:
committed by
Ron Evans
parent
53404b3f4b
commit
b0c9f259dc
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user