Skip to content

Commit 5ff1eb7

Browse files
Update to deep_sleep doc
To match changes in docs: Update Power Mgm to change run_every behaviour #769
1 parent 44af467 commit 5ff1eb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lang/ca/typeshed/stdlib/power.pyi

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ def deep_sleep(
4343
when the USB cable is inserted.
4444
4545
When the ``run_every`` parameter is set to ``True`` (the default), any
46-
function scheduled with ``run_every`` will momentarily wake up the board
47-
to run and when it finishes it will go back to sleep.
46+
function scheduled with :py:meth:`microbit.run_every<microbit.run_every>`
47+
will momentarily wake up the board to run and when it finishes it will go
48+
back to sleep.
4849
4950
:param ms: A time in milliseconds to wait before it wakes up.
5051
: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))``.

0 commit comments

Comments
 (0)