Rules for using micro:bit:
The micro:bit can be programmed in several different languages.
MakeCode is a great place to start, especially with younger students. It is similar to Scatch in that you code with blocks. It is so easy to use that we prefer it to other options when we are doing a quick project. Here is a simple example that starts out saying "Hello World" and then continually scrolls "Elmwood Electronic is Great".
To get the code onto the micro:bit, you download the file and then simply drag and drop it onto the micro:bit.
MakeCode is platform agnostic; you can use it on Windows, Mac, or Linux. It will work on a ChromeBook as well.
The code base for MakeCode is always growing, and there are code libraries for many of the add-on boards that you can import into MakeCode.
You can also program the micro:bit in a flavour of Python called MicroPython.
There is an online MicroPython programming interface that works well. Similar to MakeCode, you develop your code, download the file, and drag/drop it onto the micro:bit.
As you get more advanced, you might consider using an editor like Mu. Mu is nice because it is easier to debug code, and you can flash your code directly onto the micro:bit.
Displaying a single character:
Displaying strings or text:
display.scroll("Score:" + str(score)) #convert number "score" to a string
Clear the display: