Page 53 - RoboGenius Pro C3
P. 53
VIRTUAL TO REAL
The above virtual task can also be carried out using physical hardware components.
Let's perform the same.
Materials Required
micro:bit Controller USB Cable Computer
Steps Walkthrough
You can also create this activity in real life by following these steps to display a smiley
face on your micro:bit. First, open your web browser and go to https://makecode.
microbit.org/. Start a new project, name it and click Create.
Next, drag the "on button A pressed" block from the Input category and select
Button A. Then, drag the show icon block from the Basic category and choose the
smiley face icon.
Finally, connect your micro:bit controller to the computer and download the code.
Final Output
You willl see the same output on your micro:bit as in the editor, with the smiley face
appearing when Button A is pressed.
Playing with Lights and Buttons
51

