summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/time.rst
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-06-10 23:29:56 +0200
committerDaniel Campora <daniel@wipy.io>2015-06-10 23:37:56 +0200
commitcfcf47c0644952358e1a260db159e807872a37e6 (patch)
tree02522a025a7b803d7de0589dd743b34f3daa4634 /docs/library/time.rst
parentb630de1103cd07ac0656c76c7f90d92312705835 (diff)
downloadmicropython-cfcf47c0644952358e1a260db159e807872a37e6.tar.gz
micropython-cfcf47c0644952358e1a260db159e807872a37e6.zip
docs: Add initial draft documentation for the WiPy.
This makes all common files "port-aware" using the .. only directive.
Diffstat (limited to 'docs/library/time.rst')
-rw-r--r--docs/library/time.rst20
1 files changed, 17 insertions, 3 deletions
diff --git a/docs/library/time.rst b/docs/library/time.rst
index 1ffce7c247..8595daa888 100644
--- a/docs/library/time.rst
+++ b/docs/library/time.rst
@@ -31,10 +31,24 @@ Functions
which expresses a time as per localtime. It returns an integer which is
the number of seconds since Jan 1, 2000.
-.. function:: sleep(seconds)
+.. only:: port_pyboard
- Sleep for the given number of seconds. Seconds can be a floating-point number to
- sleep for a fractional number of seconds.
+ .. 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.
+
+.. only:: port_esp8266
+
+ .. function:: sleep(seconds)
+
+ Sleep for the given number of seconds.
+
+.. only:: port_wipy
+
+ .. function:: sleep(milliseconds)
+
+ Sleep for the given number of milliseconds.
.. function:: time()