From 31300b5144a2f9ffe934a6760fa347d9284c9591 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 27 Apr 2016 15:28:12 +0300 Subject: [PATCH] docs/utime: Describe sleep() peculiarities in MicroPython. Not all ports accept floating-point value. --- docs/library/utime.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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