Lesson details

Key learning points

  1. In this lesson, we will experiment with examples of using the micro:bit's General-Purpose Input Output (GPIO) pins to connect it to more external hardware components.

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...

5 Questions

Q1.
What type of circuit do we need to light up an LED?
Correct answer: Closed
Open
Q2.
What does GPIO stand for?
General Physical Input Output
General Purpose Import Output
Correct answer: General Purpose Input Output
Good Pins Input Output
Q3.
How many GPIO pins are on the micro:bit?
Correct answer: 3
4
5
Q4.
Which connection on the micro:bit is missing in this sequence: 0 1 2 ? GND
3
Correct answer: 3V
5V
Q5.
Which leg of an LED is positive (anode)?
Correct answer: Long
Short

3 Questions

Q1.
What is missing from this line of code: *.play(music.FUNK)
micro:bit
Correct answer: music
show
tune
Q2.
What is wrong with this line of code: display.clear()
display and clear should start with a capital letter
display should have a capital D
Correct answer: nothing, it's correct
the brackets are not needed
Q3.
Which line of code would light up the LED circled below?
Correct answer: display.set_pixel(3,3,9)
display.set_pixel(3,4,9)
display.set_pixel(4,3,9)
display.set_pixel(4,4,9)

Lesson appears in

UnitComputing / Physical Computing Programming

Computing