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.
from microbit import * display.scroll("Hello")
You have two choices for transmitting your program to the micro:bit module:
— OR—
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 [2]for a possible fix.
from microbit import * display.scroll("Hello")
You have two choices for transmitting your program to the micro:bit module:
— OR—
Your computer will transmit the program to your micro:bit. Watch the LED matrix display!
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.
Links
[1] https://python.microbit.org/v/2
[2] https://support.microbit.org/support/solutions/articles/19000089574-beta-testing-mbed-driver-doesn-t-work-with-windows
[3] https://microbit-micropython.readthedocs.io/en/latest/microbit.html