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
d0db3d3e
Commit
d0db3d3e
authored
Jan 16, 2014
by
Paul Sokolovsky
Browse files
conwaylife.py: Give people chance to enjoy the show.
Delay between frames; run more generations.
parent
2aefde06
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/conwaylife.py
View file @
d0db3d3e
...
...
@@ -34,10 +34,11 @@ def conway_go(num_frames):
for
i
in
range
(
num_frames
):
conway_step
()
# do 1 iteration
lcd
.
show
()
# update the LCD
pyb
.
delay
(
300
)
# PC testing
import
lcd
import
pyb
lcd
=
lcd
.
LCD
(
128
,
32
)
conway_rand
()
conway_go
(
100
)
conway_go
(
100
0
)
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