kopia lustrzana https://github.com/micropython/micropython
Small edits to examples to get them working again with unix/micropython.
rodzic
389cb950e8
commit
4461970da0
|
@ -3,10 +3,9 @@ try:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def mandelbrot():
|
def mandelbrot():
|
||||||
# returns True if c, complex, is in the Mandelbrot set
|
# returns True if c, complex, is in the Mandelbrot set
|
||||||
@micropython.native
|
#@micropython.native
|
||||||
def in_set(c):
|
def in_set(c):
|
||||||
z = 0
|
z = 0
|
||||||
for i in range(40):
|
for i in range(40):
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# pyboard testing functions for CPython
|
# pyboard testing functions for CPython
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
def delay(n):
|
def delay(n):
|
||||||
time.sleep(float(n) / 1000)
|
#time.sleep(float(n) / 1000)
|
||||||
|
pass
|
||||||
|
|
||||||
rand_seed = 1
|
rand_seed = 1
|
||||||
def rand():
|
def rand():
|
||||||
|
|
Ładowanie…
Reference in New Issue