Skip to content

Commit

Permalink
docs: Add get_touches() to MicroBitTouchPin.
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos committed Mar 19, 2024
1 parent a7c1b52 commit 669a6d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/pin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit 669a6d8

Please sign in to comment.