mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-21 06:59:00 +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)
|
// SetRotation changes the rotation of the device (clock-wise)
|
||||||
func (d *Device) SetRotation(rotation Rotation) error {
|
func (d *Device) SetRotation(rotation Rotation) error {
|
||||||
|
d.rotation = rotation
|
||||||
d.startWrite()
|
d.startWrite()
|
||||||
err := d.setRotation(rotation)
|
err := d.setRotation(rotation)
|
||||||
d.endWrite()
|
d.endWrite()
|
||||||
|
|||||||
Reference in New Issue
Block a user