Year 11
These resources will be removed by end of Summer Term 2025.
Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.
Lesson details
Key learning points
- In this lesson, we will continue to explore the Sense HAT and will complete 3 small projects that will demonstrate the different capabilities of the HAT.
Licence
This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.
Loading...
3 Questions
Q1.
How many Astro Pi's are in space?
1
3
4
Q2.
How many pixels are on the LED matrix?
16
32
8
Q3.
Which code snippet would you use to remove all pixels from the LED matrix?
sense.delete()
sense.off()
sense.remove()
3 Questions
Q1.
What are the three possible outputs from this program when it is executed? [SELECT THREE]
All pixels will be switched off
Each pixel in the grid will be a random colour from a choice of red, yellow or blue
Q2.
Which of these is the correct import statement for importing the sense hat module?
from sense_hat import sensehat
from Sense_Hat import SenseHat
from Sense_HAT import SenseHAT
Q3.
If you want a block of code to repeat forever, what statement should you use?
repeat forever:
repeat Forever:
while true: