Presentation is loading. Please wait.

Presentation is loading. Please wait.

BBC Microbit.

Similar presentations


Presentation on theme: "BBC Microbit."— Presentation transcript:

1 BBC Microbit

2 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

3 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

4 Now clear the screen to turn all LEDs off
Now add another pause to keep the LEDs off for 1000 milliseconds = 1 second

5 Run and compile your program on the Microbit
Bike Light Make a bike light by changing the pause, making the LED blink more quickly

6 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

7 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


Download ppt "BBC Microbit."

Similar presentations


Ads by Google