diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-27 15:28:12 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-27 15:28:46 +0300 |
commit | 31300b5144a2f9ffe934a6760fa347d9284c9591 (patch) | |
tree | e5842a65d1eac196aec937756cf695228e6a9819 | |
parent | c564169c8fbcc0ac698816abea81a302d6d3ef66 (diff) | |
download | micropython-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.rst | 4 |
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 |