Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 43 - RoboGenius Pro C4
P. 43

    The micro:bit will start running your program immediately.

                     In this project, the icon will blink on the screen, repeating a cycle of showing and
                     hiding. First, the selected icon, such as a heart or a grid, will appear for 1 second.
                     After that, the screen will remain empty for 0.5 seconds before the icon appears
                     again. This pattern will continue over and over, making the icon blink on and off.
                     The program uses a Forever loop to keep repeating this process, so the icon keeps

                     blinking as long as the program is running.

                      ECOTECH       Smart irrigation systems use sensors to water crops only when needed, saving
                      ENERGY        water and helping farmers grow more food.

                        «   The MakeCode Editor is a free, open-source platform where you can learn
                            coding in a fun and interactive way.

                        «   In Block-based programming you create programs by dragging and dropping blocks.

                        «   In Text-based programming you write instructions using a specific words, symbols and
                            syntax.

                        «   Basic blocks, Input blocks, Logic blocks, Loops blocks. Variable blocks are the various
                            block present in toolbox.

                                                               Robo Check

                     A.  Tick ( ) the correct option.

                        1.  Select the block that displays a number on the micro:bit’s screen.

                                   (i)  show string block                    (ii)  show number block

                                   (iii)  forever block                      (iv)  on start block

                                                                                         Coding with Micro:Bit
                                                                                                                        41

| 38 39 40 41 42 43 44 45 46 47 48 |