BBC Microbit - · PDF fileGo to Display a scrolling message Add a show string message from...

Preview:

Citation preview

BBC Microbit

Starter

Starter

What do you think the following do or might be used for in a project?1. Input/Output rings 2. Programmable LEDs3. Programmable buttons4. Accelerometer and compass5. Bluetooth

4

5

6

7

Objective of the lessonUse Block Editor to add Scrolling Messages

• All of you will:

– Add a scrolling message on the LEDs

• Most of you will:

– Loop the messages

• Some of you will:

– Clear the screen and add pauses between messages

8

Go to www.microbit.co.uk

Display a scrolling messageAdd a show string message from the script library. Chan the message to one of your choice.Click Run.

Name your program

Compile your codePlug your Microbit into a USB port. Right click on the code and send to the Microbit.

LoopAdd a forever loop so that the message repeats

Pausing your programAdd a pause to create a gap in-between messages This is in milliseconds1000 milliseconds = 1 second

Challenge

1. Change the pause timings between messages

2. Add further messages

3. Add a clear screen for 1 second at the end of the messages before they

loop again

Recommended