Skip to content

Commit

Permalink
Add get_touches method docs
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed Mar 20, 2024
1 parent 791689a commit 506c92f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lang/en/typeshed/stdlib/microbit/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,15 @@ class MicroBitTouchPin(MicroBitAnalogDigitalPin):
:return: ``True`` or ``False`` to indicate if the pin was touched since the device started or since the last time this method was called.
"""
...

def get_touches(self) -> int:
"""Get the number of times the pin was touched since the last time this method was called.
Example: ``pin0.get_touches()``
:return: the number of times the pin was touched since the device started or since the last time this method was called.
"""
...

def set_touch_mode(self, value: int) -> None:
"""Set the touch mode for the pin.
Expand Down

0 comments on commit 506c92f

Please sign in to comment.