AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Debugging and light grids

Week 28 · Unit 7.6: Sequencing and pattern recognition · 3 lessons
Answers are for parents and teachers.
1
Write the five rows of code for the letter T on the 5 × 5 grid.
AB
2
Look at this code. Draw the picture it makes, and count how many lights are on.
Python
1from microbit import *
2display.show(Image(
3    "00900:"
4    "09990:"
5    "99999:"
6    "09990:"
7    "00900"))
3
Put the lines in the right order to show a heart for 1 second and then switch the lights off. Write the letters in order.
LetterLine
Asleep(1000)
Bfrom microbit import *
Cdisplay.show(Image.HEART)
Ddisplay.clear()
4
Plan a blinking lamp with two images of your own: draw its flowchart steps and the two grids as rows of 0 and 9. Check that every row has five digits.
5
Explain in two sentences why a delay such as sleep(500) is needed between two images.