diff options
author | Damien George <damien.p.george@gmail.com> | 2020-02-27 15:36:53 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-02-28 10:33:03 +1100 |
commit | 69661f3343bedf86e514337cff63d96cc42f8859 (patch) | |
tree | af5dfb380ffdb75dda84828f63cf9d840d992f0f /examples/mandel.py | |
parent | 3f39d18c2b884d32f0443e2e8114ff9d7a14d718 (diff) | |
download | micropython-69661f3343bedf86e514337cff63d96cc42f8859.tar.gz micropython-69661f3343bedf86e514337cff63d96cc42f8859.zip |
all: Reformat C and Python source code with tools/codeformat.py.
This is run with uncrustify 0.70.1, and black 19.10b0.
Diffstat (limited to 'examples/mandel.py')
-rw-r--r-- | examples/mandel.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/mandel.py b/examples/mandel.py index bbb8086470..2f3d7da235 100644 --- a/examples/mandel.py +++ b/examples/mandel.py @@ -3,13 +3,14 @@ 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): - z = z*z + c + z = z * z + c if abs(z) > 60: return False return True @@ -21,7 +22,9 @@ def mandelbrot(): lcd.set(u, v) lcd.show() + # PC testing import lcd + lcd = lcd.LCD(128, 32) mandelbrot() |