Skip to content

Commit 6fb5471

Browse files
committed
add rotation setter
1 parent 43c0575 commit 6fb5471

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_macropad.py

100755100644
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ def rotation(self) -> int:
356356
"""
357357
return self._rotation
358358

359+
@rotation.setter
360+
def rotation(self, new_rotation) -> None:
361+
self.rotate(new_rotation)
362+
359363
@property
360364
def display_sleep(self) -> bool:
361365
"""The power saver mode of the display. Set it to put the display to

0 commit comments

Comments
 (0)