Skip to main content

MakeCode

MakeCode

For users who enjoy block-coding, Microsoft MakeCode allows users to easily build programs without the need to write code! This is mostly used on micro:bit, which is supported by DUELink.

LinkBit

Microsoft MakeCode Arcade is variant of MakeCode that has an Arcade game engine. BrainPad Arcade includes Downlink connector adding physical-computing to game-development.

Arcade Daisylinked


Connections

BrainPad Arcade with it's Downlink connector just plugs in! See micro:bit pages for connection options.

Arcade


Blinky

Create a project on makecode.microbit.org or arcade.makecode.com, depending on which hardware you have.

Create Project

Click on Extensions.

Add Extension

Copy/paste this link into the top bar and click enter. Then select the DUELink extension.

https://github.com/ghi-electronics/duelink_makecode

Search Extension

DUELink extension is now added to the project.

Add Extension

You can now use Set Stat LED block to control the status LED on the first connected DUELink module.

Blink StatLED Block

If you have more than one module then use Select device block to select the desired module. You can for example blink the LED slow on the first device, but blink it fast on the second device.

Select Device Block

The Execute Command block is a powerful one! It gives you access to any internal commands, no matter if they come from standard library or from drivers. A good example is using it to control the status LED, like we just did before, but this time using the statled(100,100,10) function directly.

Execute Command Block

tip

All blocks use Execute Command internally, but provided for your convenience.


Alternatives

MicroBlocks

micro:bit users may also consider MicroBlocks as another great block-coding option. It is fully supported by DUELink.