mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
docs/utime: Describe sleep() peculiarities in MicroPython.
Not all ports accept floating-point value.
This commit is contained in:
@@ -36,7 +36,9 @@ Functions
|
||||
.. function:: sleep(seconds)
|
||||
|
||||
Sleep for the given number of seconds. Seconds can be a floating-point number to
|
||||
sleep for a fractional number of seconds.
|
||||
sleep for a fractional number of seconds. Note that other MicroPython ports may
|
||||
not accept floating-point argument, for compatibility with them use ``sleep_ms()``
|
||||
and ``sleep_us()`` functions.
|
||||
|
||||
.. only:: port_wipy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user