Loading content…
Connect a BBC micro:bit v2 from your computer, then send serial/UART commands from the browser. Click the board or use the command panel once connected.
Flash micro:bit v2 with a UART listener. Each command is one line ending with a newline (\n).
MakeCode example:
bluetooth.startUartService()
serial.onDataReceived(serial.delimiters(Delimiters.NewLine), function () {
let cmd = serial.readUntil(serial.delimiters(Delimiters.NewLine))
if (cmd == "SMILE") { basic.showIcon(IconNames.Happy) }
else if (cmd == "LOGO") { basic.showIcon(IconNames.Yes) }
else if (cmd == "CLEAR") { basic.clearScreen() }
else if (cmd.substr(0, 5) == "TEXT:") { basic.showString(cmd.substr(5)) }
})Connect a micro:bit to enable the interactive board
Web Bluetooth is not available in this browser.
USB connection requires Chrome or Edge with Web Serial or WebUSB.
Use the buttons below or click the micro:bit SVG (buttons, display, logo, speaker).
ICON commands