From 2aefde06b74e9b6f213b5a4e171e5f4dde60de30 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 16 Jan 2014 19:07:08 +0200 Subject: CPython pyb.py placeholder: Implement delay(). --- examples/pyb.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/pyb.py') 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(): -- cgit v1.2.3