From fb069f9d0623e0794eb1da30148cbc9ca32d3d50 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 10 Sep 2024 12:28:09 +1000 Subject: [PATCH] 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 --- docs/library/machine.Pin.rst | 6 ++++++ 1 file changed, 6 insertions(+) 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 ---------