1 of 13

Microbit Halloween

Happy Halloween

2 of 13

Challenge

Create a scary project for Halloween

3 of 13

What is the micro:bit

3

4 of 13

Connect the micro:bit

Use the USB cable to connect your micro:bit to your computer.

4

5 of 13

Examine the micro:bit

5

6 of 13

MakeCode

https://makecode.microbit.org

Block Code editor

Similar to Scratch

Includes a simulator

6

7 of 13

Examine the Code

On button A pressed runs the code when the A button is pressed

Show icon shows the selected icon

Pause and Clear Screen waits 2 seconds then clears the screen

7

8 of 13

Write the Code

Open a MakeCode project https://makecode.microbit.org/

Click New project

Name the project

Write the code

8

9 of 13

Run the Simulator

9

The Simulator is here

click A to run the code

10 of 13

Check in

10

Do you want to make changes before you download it.

Does the code work as expected?

11 of 13

Download the Code

11

  1. Connect your micro:bit to the computer using the USB cable.
  2. Select … next to the Download button
  3. Select β€œConnect Device” from the menu
  4. Follow the Prompts
  5. Pick your device on the connect screen and click Connect
  6. Once connected, click Download.

12 of 13

Download the Code

Watch the video

12

13 of 13

Extend

  • Add more icons
  • Try creating your own icons
  • Add more actions like shake.

13