We continued with micro:bit to understand how we can create animation with 5×5 LEDs, started with stock images and created our own image. Each one of us created different pattern. Below video and code are sample of that.
Stock animation (clock)
from microbit import * display.show(Image.ALL_CLOCKS, delay=100,wait=False, loop=True, clear=True)
Video
Animation – own image – Square
from microbit import *
image1 = Image('11111:10001:10001:10001:11111:')
image2 = Image('00000:01110:01010:01110:00000:')
image3 = Image('00000:00000:00100:00000:00000:')
image4 = Image('00000:00000:00000:00000:00000:')
myimages = [image1, image2, image3, image4, image3, image2, image1, image4]
display.show(myimages,delay=100,wait=True,loop=True, clear=False)
Video
