Skip to content

Instantly share code, notes, and snippets.

@ntoll
Created April 11, 2016 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntoll/53136b8c1220fc88cb4410856e4d1617 to your computer and use it in GitHub Desktop.
Save ntoll/53136b8c1220fc88cb4410856e4d1617 to your computer and use it in GitHub Desktop.
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