11
BBC Microbit

BBC Microbit - · PDF fileGo to Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

  • Upload
    donhu

  • View
    221

  • Download
    5

Embed Size (px)

Citation preview

Page 1: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

BBC Microbit

Page 2: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

Starter

Page 3: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

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

Page 4: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

4

Page 5: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

5

Page 6: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

6

Page 7: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

7

Page 8: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

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

Page 9: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

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.

Page 10: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

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

Page 11: BBC Microbit -   · PDF fileGo to   Display a scrolling message Add a show string message from the script library. Chan the message to one of your choice. Click Run

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