docs/utime: Deconditionalize description of sleep().
This commit is contained in:
parent
1d74559b6b
commit
3acace588a
@ -55,20 +55,12 @@ Functions
|
|||||||
which expresses a time as per localtime. It returns an integer which is
|
which expresses a time as per localtime. It returns an integer which is
|
||||||
the number of seconds since Jan 1, 2000.
|
the number of seconds since Jan 1, 2000.
|
||||||
|
|
||||||
.. only:: port_unix or port_pyboard or port_esp8266
|
.. function:: sleep(seconds)
|
||||||
|
|
||||||
.. function:: sleep(seconds)
|
Sleep for the given number of seconds. Some boards may accept `seconds` as a
|
||||||
|
floating-point number to sleep for a fractional number of seconds. Note that
|
||||||
Sleep for the given number of seconds. Seconds can be a floating-point number to
|
other boards may not accept a floating-point argument, for compatibility with
|
||||||
sleep for a fractional number of seconds. Note that other MicroPython ports may
|
them use ``sleep_ms()`` and ``sleep_us()`` functions.
|
||||||
not accept floating-point argument, for compatibility with them use ``sleep_ms()``
|
|
||||||
and ``sleep_us()`` functions.
|
|
||||||
|
|
||||||
.. only:: port_wipy
|
|
||||||
|
|
||||||
.. function:: sleep(seconds)
|
|
||||||
|
|
||||||
Sleep for the given number of seconds.
|
|
||||||
|
|
||||||
.. function:: sleep_ms(ms)
|
.. function:: sleep_ms(ms)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user