Skip to content

Commit 31300b5

Browse files
committed
docs/utime: Describe sleep() peculiarities in MicroPython.
Not all ports accept floating-point value.
1 parent c564169 commit 31300b5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/library/utime.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ Functions
3636
.. function:: sleep(seconds)
3737

3838
Sleep for the given number of seconds. Seconds can be a floating-point number to
39-
sleep for a fractional number of seconds.
39+
sleep for a fractional number of seconds. Note that other MicroPython ports may
40+
not accept floating-point argument, for compatibility with them use ``sleep_ms()``
41+
and ``sleep_us()`` functions.
4042

4143
.. only:: port_wipy
4244

0 commit comments

Comments
 (0)