BBC Microbit
Objective of the lesson Use Block Editor to make Blinking Lights All of you will: Blink LEDs on the Microbit Most of you will: Change the LEDs which blink and the speed of the blink Some of you will: Create a Morse Code message
Lighthouse In this lesson you will make a single LED flash slowly Add a Forever Loop so that the lighthouse runs automatically Set the plot to be 0,0 This is the top left of the LEDs on the Microbit Add a pause to keep the LED on. Remember that this is in milliseconds 1000 milliseconds = 1 second
Now clear the screen to turn all LEDs off Now add another pause to keep the LEDs off for 1000 milliseconds = 1 second
Run and compile your program on the Microbit Bike Light Make a bike light by changing the pause, making the LED blink more quickly
SOS Message An SOS message is 3 short blinks, followed by 3 long blinks, followed by 3 short blinks A short blink is 300 milliseconds. A long blink is 1000 milliseconds
Challenge 1 Change the plot numbers to make another light blink Make sense of the plot numbers. Demonstrate this by making the bottom right LED blink Make the SOS code more efficient by using repeat 3 times loops Try to write a different short message