summaryrefslogtreecommitdiffstatshomepage
path: root/examples/pyb.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-16 19:07:08 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-16 19:29:11 +0200
commit2aefde06b74e9b6f213b5a4e171e5f4dde60de30 (patch)
treeb714c5e59fd825b86f8c30ecc7cce6cf17de3615 /examples/pyb.py
parenta671f891ddb42496accb889e19a0eb14b50caba2 (diff)
downloadmicropython-2aefde06b74e9b6f213b5a4e171e5f4dde60de30.tar.gz
micropython-2aefde06b74e9b6f213b5a4e171e5f4dde60de30.zip
CPython pyb.py placeholder: Implement delay().
Diffstat (limited to 'examples/pyb.py')
-rw-r--r--examples/pyb.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/pyb.py b/examples/pyb.py
index 5e24f40e4a..f7b52a2a1e 100644
--- a/examples/pyb.py
+++ b/examples/pyb.py
@@ -1,7 +1,9 @@
-# pyboard testing functions for PC
+# pyboard testing functions for CPython
+import time
+
def delay(n):
- pass
+ time.sleep(float(n) / 1000)
rand_seed = 1
def rand():