conwaylife.py: Give people chance to enjoy the show.
Delay between frames; run more generations.
This commit is contained in:
parent
2aefde06b7
commit
d0db3d3e45
|
@ -34,10 +34,11 @@ def conway_go(num_frames):
|
||||||
for i in range(num_frames):
|
for i in range(num_frames):
|
||||||
conway_step() # do 1 iteration
|
conway_step() # do 1 iteration
|
||||||
lcd.show() # update the LCD
|
lcd.show() # update the LCD
|
||||||
|
pyb.delay(300)
|
||||||
|
|
||||||
# PC testing
|
# PC testing
|
||||||
import lcd
|
import lcd
|
||||||
import pyb
|
import pyb
|
||||||
lcd = lcd.LCD(128, 32)
|
lcd = lcd.LCD(128, 32)
|
||||||
conway_rand()
|
conway_rand()
|
||||||
conway_go(100)
|
conway_go(1000)
|
||||||
|
|
Loading…
Reference in New Issue