!BETA ZONE!
We are still working on upgrading the editor to utilize all the new features. If you have a micro:bit V2 and wish to try things out, please use https://makecode.microbit.org/beta and report any bugs back to us!
The micro:bit V2 introduces a microphone, speaker, and capacitive touch input on the board’s logo. The new blocks designed for the micro:bit V2 will not work with the micro:bit v1.
Let’s learn how this works in MakeCode…
We are still working on upgrading the editor to utilize all the new features. If you have a micro:bit V2 and wish to try things out, please use https://makecode.microbit.org/beta and report any bugs back to us!
The following blocks require the micro:bit V2 hardware to run. If you try a program with those blocks on a micro:bit V1 board, you see the 927
error code scroll across your screen.
input.onSound(DetectedSound.Loud, function () {})
input.onLogoEvent(TouchButtonEvent.Pressed, function () {})
input.logoIsPressed()
input.soundLevel()
soundExpression.giggle.playUntilDone()
soundExpression.giggle.play()
music.setBuiltInSpeakerEnabled(false)
pins.touchSetMode(TouchTarget.P0, TouchTargetMode.Capacitive)
The first thing to know is whether you have a micro:bit v1 or micro:bit V2 at hand. You can recognize the v2 boards visually with these differences…
If your program uses any of the micro:bit V2 specific blocks, it will automatically change to a micro:bit V2, with notches in the connector and a gold plated logo. You will also see a “v2” symbol on the lower right of the board.
If you try to use a program with micro:bit V2 blocks on a micro:bit v1 board, you will see the 927 error code scroll on the micro:bit screen.