Skip to content
Snippets Groups Projects
Commit 4461970d authored by Damien George's avatar Damien George
Browse files

Small edits to examples to get them working again with unix/micropython.

parent 389cb950
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,9 @@ try:
except:
pass
def mandelbrot():
# returns True if c, complex, is in the Mandelbrot set
@micropython.native
#@micropython.native
def in_set(c):
z = 0
for i in range(40):
......
# pyboard testing functions for CPython
import time
def delay(n):
time.sleep(float(n) / 1000)
#time.sleep(float(n) / 1000)
pass
rand_seed = 1
def rand():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment