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
389cb950
Commit
389cb950
authored
Jan 24, 2014
by
Damien George
Browse files
Merge pull request #216 from ugurthemaster/patch-1
Update conwaylife.py
parents
1976baee
b94a209d
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/conwaylife.py
View file @
389cb950
#import essential libraries
import
lcd
import
pyb
# do 1 iteration of Conway's Game of Life
def
conway_step
():
for
x
in
range
(
128
):
# loop over x coordinates
...
...
@@ -37,8 +41,6 @@ def conway_go(num_frames):
pyb
.
delay
(
300
)
# PC testing
import
lcd
import
pyb
lcd
=
lcd
.
LCD
(
128
,
32
)
conway_rand
()
conway_go
(
1000
)
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