Skip to content

Commit 2aefde0

Browse files
committed
CPython pyb.py placeholder: Implement delay().
1 parent a671f89 commit 2aefde0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/pyb.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# pyboard testing functions for PC
1+
# pyboard testing functions for CPython
2+
import time
3+
24

35
def delay(n):
4-
pass
6+
time.sleep(float(n) / 1000)
57

68
rand_seed = 1
79
def rand():

0 commit comments

Comments
 (0)