Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
4461970d
Commit
4461970d
authored
Jan 24, 2014
by
Damien George
Browse files
Small edits to examples to get them working again with unix/micropython.
parent
389cb950
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/mandel.py
View file @
4461970d
...
...
@@ -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
):
...
...
examples/pyb.py
View file @
4461970d
# 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
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment