Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 73 - Ai Robogenius
P. 73

    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
                                                                                                                        71

| 68 69 70 71 72 73 74 75 76 77 78 |