Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Software Setup for micro:bit

Software Setup for micro:bit

First micro:bit program

Now, you are ready to write your first program for your micro:bit module. Follow the same procedure for all the programs you write with your chosen micro:bit software.

  • Connect your micro:bit module to your computer with a USB cable.

Online Python Editor

  • Open a browser and navigate to the Online Python Editor site (or click the link below).

Online Python Editor

  • In the code editor window, delete all the text that is there.
  • Type in the following text exactly:
from microbit import *
display.scroll("Hello")

You have two choices for transmitting your program to the micro:bit module:

  • Click the Download button and drag the downloaded .hex file onto your MICROBIT drive.

— OR—

  • Click the Connect button, and select the device in the connect dialog, and click the Connect button.

  • After connecting, the top-left button that used to Download will now be Flash.  Click it, and your computer will transmit the program to your micro:bit.
  • Watch the LED matrix display!

No compatible device found?
If you see a message saying “No compatible device found” you can use the Download button as noted above. If you are on Windows, you can follow the directions here for a possible fix.

Mu Editor

  • Run the Mu Editor software on your computer.
  • Set the programming mode to BBC micro:bit, and click OK. (If the Select Mode dialog does NOT appear, click the Mode button in the upper left corner.)

  • In the code editor window, delete all the text that is there.
  • Type in the following text exactly:
from microbit import *
display.scroll("Hello")

You have two choices for transmitting your program to the micro:bit module:

  • Click the Download button and drag the downloaded .hex file onto your MICROBIT drive.

— OR—

  • Click the Flash button.

Your computer will transmit the program to your micro:bit. Watch the LED matrix display!

How the Program Works

A program made up of one or more instructions for a processor to execute. Here, the instruction display.scroll(“Hello”) made the letters H e L L o scroll across the micro:bit module’s LED matrix one at a time. 

In the Python language, you can use specialized instructions just for the micro:bit that are grouped into modules.  For one of these instructions to be used, its module must be named and imported as part of the program.  The display.scroll instruction is part of the microbit module.  So, the program begins with from microbit import * to make that instruction available.  Click the link below to see all of the instructions in the microbit module group.

BBC micro:bit MicroPython module documentation.


Printer-friendly version
Check the micro:bit firmware
Prev

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress