From 669a6d8a07a7c16635535311f4e18614d70fe071 Mon Sep 17 00:00:00 2001 From: Carlos Pereira Atencio Date: Tue, 19 Mar 2024 19:05:07 +0000 Subject: [PATCH] docs: Add get_touches() to MicroBitTouchPin. --- docs/pin.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/pin.rst b/docs/pin.rst index cbb0c07e6..fd246966a 100644 --- a/docs/pin.rst +++ b/docs/pin.rst @@ -207,6 +207,11 @@ its own to that. Returns ``True`` or ``False`` to indicate if the pin was touched since the device started or since the last time this method was called. + .. py:method:: get_touches() + + Returns the number of times the pin was touched + since the device started or since the last time this method was called. + .. py:method:: set_touch_mode(value) .. note::