Created
April 11, 2016 13:39
-
-
Save ntoll/53136b8c1220fc88cb4410856e4d1617 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from micropython import * | |
import random | |
dots = [ [0]*5, [0]*5, [0]*5, [0]*5, [0]*5 ] | |
while True: | |
dots[random.randrange(5)][random.randrange(5)] = 9 | |
for i in range(5): | |
for j in range(5): | |
display.set_pixel(i, j, dots[i][j]) | |
dots[i][j] = max(dots[i][j] - 1, 0) | |
sleep(50) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment