summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-24 22:26:13 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-24 22:26:13 +0000
commit4461970da027ce16b41189f75257239f46a3b087 (patch)
tree23e2850a9304e6f3f2cfd5863b8ce3a54ee01f96
parent389cb950e8a53fdfd2841fbf90979e442d25318b (diff)
downloadmicropython-4461970da027ce16b41189f75257239f46a3b087.tar.gz
micropython-4461970da027ce16b41189f75257239f46a3b087.zip
Small edits to examples to get them working again with unix/micropython.
-rw-r--r--examples/mandel.py3
-rw-r--r--examples/pyb.py4
2 files changed, 3 insertions, 4 deletions
diff --git a/examples/mandel.py b/examples/mandel.py
index d2b34fff83..bbb8086470 100644
--- a/examples/mandel.py
+++ b/examples/mandel.py
@@ -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):
diff --git a/examples/pyb.py b/examples/pyb.py
index f7b52a2a1e..65fed6647e 100644
--- a/examples/pyb.py
+++ b/examples/pyb.py
@@ -1,9 +1,9 @@
# 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():