diff options
Diffstat (limited to 'examples/pyb.py')
-rw-r--r-- | examples/pyb.py | 6 |
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(): |