MakeCode code snippets

How do I access files on the micro:bit in the Makecode editor?
There is an experimental beta filesystem in MakeCode, you can find it by going to the "Add packages" menu and searching for "files": ...
Thu, 6 Dec, 2018 at 3:48 PM
Using multiple variables in the f(x) block
There is no visual representation of parameters in the Javascript Blocks editor, but you can drop into javascript to do this - and you can then come back to...
Mon, 15 Oct, 2018 at 9:59 AM
Randomly fill the LED screen
Press Button A to fill the LED screen in a random pattern
Wed, 18 Oct, 2017 at 11:57 AM
Interupt melody
To stop a melody before it completes, you can pass in an empty melody.  A melody is an array of notes, so you can do this by going into the javascript v...
Wed, 6 Jun, 2018 at 10:25 AM
Stopping a melody in Makecode
If you would like to interupt or stop a melody whilst it is being played, you can do this by passing the block an empty array. For example, to stop the melo...
Wed, 22 May, 2019 at 3:45 PM
Displaying live serial data from the micro:bit in the MakeCode console
Using the WebUSB feature available in when using the Chrome browser, we are able to display live data from the micro:bit in the consol...
Thu, 4 Apr, 2019 at 8:36 AM