Áireamhán Microbit

This week we built our very own Calculator on the Microbit

We created three variables to store 3 different numbers.

When A and B are pressed, the numbers go up by 1. They are then stored in the Number 1 and Number 2 variables

When we shake the microbit, our two numbers get added ( or subtracted, divided or multiplied ) together and stored in the “total” variabnle

Finally we show the user the answer ( along with a little bit of music )

Click on the speech icon in the top left of each code block to open the notes

Previous
Previous

Domhantarraingt

Next
Next

QR code generator