Page 156 - Trackpad_V1_Book 7_Flipbook
P. 156

TECHIPEDIA










                                     Hello Children,  today  we will  learn  about  blocks  that are
                                     used to create projects in Microsoft Makecode.





                  Microsoft Makecode for microbit is a platform
                  that allows us to create scripts using blocks.
                  Blocks are an essential aspect of building a

                  program and help in defining its functionality.
                  Blocks are attached to one another and each
                  block performs a unique function. After we enter
                  the workspace, we can find a list of different
                  blocks on the screen’s left. On start and Forever
                  blocks are already present in the workspace.

                  BASIC BLOCKS

                  These blocks provide basic functionality to the program and are self-explanatory:


                                Shows the number we input on the micro:bit LED display.


                                     Shows a string of text on the micro:bit LED display.



                                  Pauses for an entered number of milliseconds before executing the next command.

                  INPUT BLOCKS

                  Input blocks are based on events and data taken from the sensors.

                                       Runs the program or performs a function when a specific button is pressed.







                                      Performs a specific function when a gesture is detected.




                                       Checks whether a button on the micro:bit is pressed or not.

                                      Check whether a gesture is being detected.



                  154   Trackpad (Version 1.0)-VII                                                                                                                                                                                Techipedia  155
   151   152   153   154   155   156   157   158   159   160   161