docs/utime: Describe sleep() peculiarities in MicroPython.
Not all ports accept floating-point value.
This commit is contained in:
parent
c564169c8f
commit
31300b5144
@ -36,7 +36,9 @@ Functions
|
|||||||
.. function:: sleep(seconds)
|
.. function:: sleep(seconds)
|
||||||
|
|
||||||
Sleep for the given number of seconds. Seconds can be a floating-point number to
|
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
|
.. only:: port_wipy
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user