Lesson details

Key learning points

  1. 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
Correct answer: 2
3
4
Q2.
How many pixels are on the LED matrix?
16
32
Correct answer: 64
8
Q3.
Which code snippet would you use to remove all pixels from the LED matrix?
Correct answer: sense.clear()
sense.delete()
sense.off()
sense.remove()

3 Questions

Q1.
What are the three possible outputs from this program when it is executed? [SELECT THREE]
An image in a quiz
Correct answer: All pixels will be blue
Correct answer: All pixels will be red
All pixels will be switched off
Correct answer: All pixels will be yellow
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
Correct answer: 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:
Correct answer: while True: