Cette leçon contient 24 diapositives, avec quiz interactifs, diapositives de texte et 1 vidéo.
Éléments de cette leçon
Microbit Lesson 3 - Loops
Loops
Slide 1 - Diapositive
Touch Logo
Button A
Button B
Pins
Accelerometer
Compass
Reset Button
Slide 2 - Question de remorquage
How did you use selection when you created the rock paper scissors game?
Slide 3 - Carte mentale
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 - Diapositive
Slide 5 - Vidéo
makecode.microbit.org
Slide 6 - Lien
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 - Diapositive
The Solution
Slide 8 - Diapositive
Python
Loops continued...
Slide 9 - Diapositive
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 10 - Diapositive
Why are loops useful?
Slide 11 - Diapositive
What are loops?
Slide 12 - Diapositive
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!