Page 33 - Robo_Genius_V1.0_flipbook_C1
P. 33

The Micro:bit has special buttons on the front called Button A and Button

                 B. You can press these buttons to make the Micro:bit do fun things. For
                 example, when you press a button, it can change what is on the screen

                 or help with different activities in your projects. It is like having a magic
                 remote control.









                             Button A                                                       Button B











                                                                                                21 st   #Creativity
                                                                                             Century   #Technology Literacy
                  Activity       Writing First Code to Display Emoji’s                         Skills




                 Algorithm Used
                                                                                            On Button A Pressed:
                 An  algorithm  is  a  step-by-step  procedure  that
                                                                                               Show Smile icon
                 defines a set of instructions that must be carried
                                                                                            On Button B Pressed:
                 out in a specific order to produce the desired result.
                                                                                                Show Sad icon
                 Source Code

                 Step 1   Go to Microsoft make code https://makecode.microbit.org/

                 Step 2   Click on new projects.












                                        Click on new
                                        project










                                                                       Exploring the Micro:bit for Programming  31
   28   29   30   31   32   33   34   35   36   37   38