Skip to content

Commit

Permalink
Update to deep_sleep doc
Browse files Browse the repository at this point in the history
To match changes in docs: Update Power Mgm to change run_every behaviour #769
  • Loading branch information
microbit-grace committed Mar 20, 2024
1 parent 44af467 commit 5ff1eb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lang/ca/typeshed/stdlib/power.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ def deep_sleep(
when the USB cable is inserted.
When the ``run_every`` parameter is set to ``True`` (the default), any
function scheduled with ``run_every`` will momentarily wake up the board
to run and when it finishes it will go back to sleep.
function scheduled with :py:meth:`microbit.run_every<microbit.run_every>`
will momentarily wake up the board to run and when it finishes it will go
back to sleep.
:param ms: A time in milliseconds to wait before it wakes up.
:param wake_on: A single instance or a tuple of pins and/or buttons to wake up the board, e.g. ``deep_sleep(wake_on=button_a)`` or ``deep_sleep(wake_on=(pin0, pin2, button_b))``.
Expand Down

0 comments on commit 5ff1eb7

Please sign in to comment.