This lesson contains 19 slides, with interactive quizzes, text slides and 1 video.
Items in this lesson
Microbit Lesson 3 - Loops
Loops
Slide 1 - Slide
Touch Logo
Button A
Button B
Pins
Accelerometer
Compass
Reset Button
Slide 2 - Drag question
How did you use selection when you created the rock paper scissors game?
Slide 3 - Mind map
Lesson Objective
By the end of today's lesson you will be able to create a program on the microbits that use a loop (iteration) to control the LED lights on the Microbits.
Slide 4 - Slide
Slide 5 - Video
makecode.microbit.org
Slide 6 - Link
Challenge - Loops with the Microbit
In this example we are going to use recursion (a loop within a loop) to make the red LED light up all the LED's on the Microbit.
Can you use the highlighted components to complete the challenge?
Slide 7 - Slide
The Solution
Slide 8 - Slide
Space Invaders Game
This next task is CHALLENGING. You may not get all of the parts completed. You must complete the tasks in order, so Part 1 first, then part 2 etc...
You are going to build the Space Invaders game. This will run on the Microbit. You will need to "Watch the video for 30 seconds, pause it and then do what you saw in the previous 30 seconds".
YOU MUST NOT JUST WATCH THE VIDEO AND LET IT PLAY THROUGH AS YOU WILL NOT REMEMBER THE STAGES!