diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-24 14:28:06 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-24 14:28:06 -0800 |
commit | 389cb950e8a53fdfd2841fbf90979e442d25318b (patch) | |
tree | 36ebfab66830335f14e0228485323ef60e075b21 /examples | |
parent | 1976baeeb744299d795b0556719cae84c17ca803 (diff) | |
parent | b94a209d1f595efb89170b5192655f9eb7d99ccf (diff) | |
download | micropython-389cb950e8a53fdfd2841fbf90979e442d25318b.tar.gz micropython-389cb950e8a53fdfd2841fbf90979e442d25318b.zip |
Merge pull request #216 from ugurthemaster/patch-1
Update conwaylife.py
Diffstat (limited to 'examples')
-rw-r--r-- | examples/conwaylife.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/conwaylife.py b/examples/conwaylife.py index 7c6ac4d548..89ef94c8c6 100644 --- a/examples/conwaylife.py +++ b/examples/conwaylife.py @@ -1,3 +1,7 @@ +#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) |