Friday, June 3, 2022

Playing with the Microbits

Learning Intention: To learn how to code with simple blocks and to transfer the code from the Chromebook to the Microbit.

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

We put two show 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 pressed.

When we use the blocks for coding the buttons, they have a drop down to choose which button. This is called a variable.






No comments:

Post a Comment