Skip to content

Commit 4461970

Browse files
committed
Small edits to examples to get them working again with unix/micropython.
1 parent 389cb95 commit 4461970

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

examples/mandel.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
except:
44
pass
55

6-
76
def mandelbrot():
87
# returns True if c, complex, is in the Mandelbrot set
9-
@micropython.native
8+
#@micropython.native
109
def in_set(c):
1110
z = 0
1211
for i in range(40):

examples/pyb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# pyboard testing functions for CPython
22
import time
33

4-
54
def delay(n):
6-
time.sleep(float(n) / 1000)
5+
#time.sleep(float(n) / 1000)
6+
pass
77

88
rand_seed = 1
99
def rand():

0 commit comments

Comments
 (0)