docs/utime: Describe sleep() peculiarities in MicroPython.

Not all ports accept floating-point value.
This commit is contained in:
Paul Sokolovsky 2016-04-27 15:28:12 +03:00
parent c564169c8f
commit 31300b5144

View File

@ -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