Skip to content

Commit 669a6d8

Browse files
docs: Add get_touches() to MicroBitTouchPin.
1 parent a7c1b52 commit 669a6d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/pin.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ its own to that.
207207
Returns ``True`` or ``False`` to indicate if the pin was touched
208208
since the device started or since the last time this method was called.
209209

210+
.. py:method:: get_touches()
211+
212+
Returns the number of times the pin was touched
213+
since the device started or since the last time this method was called.
214+
210215
.. py:method:: set_touch_mode(value)
211216
212217
.. note::

0 commit comments

Comments
 (0)