Skip to content

Commit 270f2ae

Browse files
committed
Update comment in savePinModeAlt()
1 parent f99b1c8 commit 270f2ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/display/st7789_spi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,10 @@ def savePinModeAlt(self, pin):
358358
Returns:
359359
tuple: (mode, alt)
360360
"""
361+
# See: https://github.com/micropython/micropython/issues/17515
361362
# There's no way to get the mode and alt of a pin directly, so we
362-
# convert the pin to a string and parse it. Example format:
363+
# convert the pin to a string and parse it. Example formats:
364+
# "Pin(GPIO16, mode=OUT)"
363365
# "Pin(GPIO16, mode=ALT, alt=SPI)"
364366
pinStr = str(pin)
365367

0 commit comments

Comments
 (0)