Lesson details

Key learning points

  1. In this lesson, we will examine different conditions and identify when they are true or false. The we will write statements using 'do until'. Lastly, we will connect a switch to a Crumble microcontroller and write a program using that input as a condition.


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.


3 Questions

What condition will stop the loop shown?
Correct answer: The button being pressed (A is Hi)
The program starting
The sparkle flashing 4 times
What will happen while the condition false?
Correct answer: The sparkle will flash on and off
The sparkle will stay on
Why doesn't the repeating light pattern stop when the push switch is pressed?
The button needs to be pressed to start the sequence
Correct answer: The light pattern is inside a do forever loop
The light pattern will stop after each colour is lit once

Lesson appears in

UnitComputing / Selection In Physical Computing