Open project · after lesson 2: Commands from the computer
Make a counter that lives on both sides. The micro:bit counts every press of button A and sends the count. Your own web page shows it big, and has a Reset button that tells the micro:bit to start again from 0.
A good counter never loses count: if the page opens late, the next press still shows the right number.

These show a finished project at about the level to aim for. Yours will be different, and that is fine.


These light up when your code uses them. Click one to see where you learned it.
The micro:bit
The web page
Tick each one when it is true of your project. Nobody marks it: be honest with yourself.
input.onButtonPressed(Button.A, function () {
count += 1
serial.writeValue("count", count)
})microbit.onValue(function (name, number) {
if (name === "count") {
document.querySelector("#count").textContent = number;
}
});Tick every milestone first.
You built it with: