Tag: codding

Playing with the Microbits

LI:To learn how to code with simple blocks and transfer the code from the chromebook to the microbit.

First of all we codded the microbit to show a flashing heart.

We put two led blocks inside a forever block. The microbit shows the leds that are lit on the block.They will flash between one block and the other forever as both blocks are inside a forever block.

We then coded the buttons on the microbit to do different actions according to which button has been preesed.

When we use the block for codding the buttons, they have drop down to choose wich button. This is called a varible.