summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-09-10 12:28:09 +1000
committerDamien George <damien@micropython.org>2024-09-19 12:04:39 +1000
commitfb069f9d0623e0794eb1da30148cbc9ca32d3d50 (patch)
treecd229e2bdf071834d5b66cdabcadd0657584ae18 /docs/library
parent8feb714b4d6bc29af3221c0abd47c4adb754f904 (diff)
docs/library: Document machine.Pin.toggle() method.
Original commit was by @millosolomillo from 2022, but CI no longer accepts their auto-generated GitHub commit email... Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/machine.Pin.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/library/machine.Pin.rst b/docs/library/machine.Pin.rst
index 49fb66beb..68070133b 100644
--- a/docs/library/machine.Pin.rst
+++ b/docs/library/machine.Pin.rst
@@ -238,6 +238,12 @@ The following methods are not part of the core Pin API and only implemented on c
Availability: cc3200 port.
+.. method:: Pin.toggle()
+
+ Toggle output pin from "0" to "1" or vice-versa.
+
+ Availability: mimxrt, samd, rp2 ports.
+
Constants
---------