summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-27 15:28:12 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-27 15:28:46 +0300
commit31300b5144a2f9ffe934a6760fa347d9284c9591 (patch)
treee5842a65d1eac196aec937756cf695228e6a9819
parentc564169c8fbcc0ac698816abea81a302d6d3ef66 (diff)
downloadmicropython-31300b5144a2f9ffe934a6760fa347d9284c9591.tar.gz
micropython-31300b5144a2f9ffe934a6760fa347d9284c9591.zip
docs/utime: Describe sleep() peculiarities in MicroPython.
Not all ports accept floating-point value.
-rw-r--r--docs/library/utime.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/library/utime.rst b/docs/library/utime.rst
index 47d93c4c5a..e678321f6a 100644
--- a/docs/library/utime.rst
+++ b/docs/library/utime.rst
@@ -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