Mission 14 Treasure Box


circuit playground express

micro:bit

circuit playground express

We’re going to record how many times the box was opened, just like you did with the Door mission.

micro:bit

Let’s see how many times the box was opened. I setup a new variable called BoxOpened and set it to 0 when the micro:bit starts.

Then every time the box is opened, boxOpened changes by. We can view the number by pressing the A button on the micro:bit. Now you’ll know if your treasure box was tampered with while you were away