Skip to content

Commit ccd82bd

Browse files
Doc for display.rotate()
As updated in bbcmicrobit/micropython@2588b99
1 parent d7884fa commit ccd82bd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lang/en/typeshed/stdlib/microbit/display.pyi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ def scroll(
7979
"""
8080
...
8181

82+
def rotate(degrees: int) -> None:
83+
"""Rotate the images shown on the display.
84+
85+
Example: ``display.rotate(90)``
86+
87+
:param degrees: The ``degrees`` parameter can be any number, including a negative rotation, and it will be rounded to the nearest multiple of 90 degrees.
88+
"""
89+
...
90+
8291
def on() -> None:
8392
"""Turn on the LED display.
8493

0 commit comments

Comments
 (0)