Shapes from different inputs
Answers are for parents and teachers.
1
Draw a 5 × 5 grid and colour a heart shape. Write the five rows as 1s and 0s and count the lights.
One possible heart: 01010, 11111, 11111, 01110, 00100. It uses 2 + 5 + 5 + 3 + 1 = 16 lights.
2
Write an algorithm in three parts for a board that shows a happy face when button A is pressed, a sad face when button B is pressed and a heart when it is shaken.
Part 1: start when button A is pressed; show happy face. Part 2: start when button B is pressed; show sad face. Part 3: start when the board is shaken; show heart.
3
A program shows a shape for 2 seconds, clears the screen and waits 1 second. How many milliseconds is that in all?
2000 + 1000 = 3000 ms (the clear screen takes no time).
4
Draw the four different inputs of a micro:bit that you know, with a small arrow from each input to an output you would choose.
For example: button A to a plus, button B to an X, logo touched to a sound, shake to a picture.
5
(if you have a computer or tablet) With a grown-up, open a micro:bit simulator. Find the show leds block and click boxes to make your own shape. How many lights does it use?
The answer depends on the shape. The count is the number of lit boxes.