Skip to content

Commit d0db3d3

Browse files
committed
conwaylife.py: Give people chance to enjoy the show.
Delay between frames; run more generations.
1 parent 2aefde0 commit d0db3d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/conwaylife.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ def conway_go(num_frames):
3434
for i in range(num_frames):
3535
conway_step() # do 1 iteration
3636
lcd.show() # update the LCD
37+
pyb.delay(300)
3738

3839
# PC testing
3940
import lcd
4041
import pyb
4142
lcd = lcd.LCD(128, 32)
4243
conway_rand()
43-
conway_go(100)
44+
conway_go(1000)

0 commit comments

Comments
 (0)