Home Micro Bit LED pattern using Microsoft Block Editor for Micro:Bit

LED pattern using Microsoft Block Editor for Micro:Bit

Go to the micro:bit web site and follow the hyperlink to Create Code. Choose the Microsoft Block Editor and make a New Project.

Look in the Basic section for the show leds block.

basic show leds

basic show leds

Drag it into the code window and click on some of the check boxes to make a pattern. Here is our example pattern

show leds pattern

Click the Run button in the browser and you can see a preview of the image on the right hand side of the page.

pattern on microbit

Simulations are fine but we want to see this on our Micro bit, Click on the Compile button to create a .hex file for the micro bit. You will be prompted to download the file, you can either download to your computer or straight to your Micro Bit. The Micro Bit is similar to the MBed system in that it has an online compiler which creates hex files that you save to your computer or can save to your device as it appears as a drive on your computer, I save to my computer and drag it into my Micro Bit’s drive – just my preference

Once complete you should see the pattern on your Micro Bit

 

You may also like