Page 76 - Robo_Genius_V1.0_flipbook_C4
P. 76

and measure the surrounding light levels. This dual function lets the micro:bit
                  respond  dynamically  to  different  lighting
                                                                                    START
                  conditions.
                                                                                    FOREVER
                  Algorithm Used                                                        READ THE LIGHT VALUE

                                                                                        IF MORE THAN 100
                  An algorithm is a step-by-step procedure that
                                                                                        TURN LEDS ON
                  defines  a  set  of  instructions  that  must  be                     ELSE

                  carried out in a specific order to produce the                        CLEAR SCREEN
                  desired result.                                                   END




                                                                                                         21 st   #Creativity
                    Activity       Programming a Sunlight Sensor                                       Century
                                                                                                         Skills
                                   Using Micro:bit

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


                  Step 2  Click on new projects.









                                        Click on new
                                        project









                  Step 3   Create a project.








                                                               Create a project















                       74    RoboGenius (V1.0)-IV
   71   72   73   74   75   76   77   78   79   80   81