Page 131 - KEC Khaitan C6 Flipbook
P. 131

∑  Input – Buttons, gestures

                        ∑  Music – Sound effects
                        ∑  Pins – External components

                        ∑  Loops & Logic – Repeating and decision-making blocks

                 3.  Workspace (Right Side)
                        ∑  The drag-and-drop area where students arrange code blocks.

                        ∑  Blocks snap together like puzzle pieces to create a program.











                                   Simulator                                  Workspace

                                                   Block Palette






                 Step  3   Importing Code into MakeCode
                           ∑   Click on the Import button at the top of the MakeCode editor.

                           ∑   Choose Import File if you have a saved .hex file.

                           ∑   Alternatively, paste a shared MakeCode URL if provided.
                           ∑   Click Go Ahead, and the project will load.











                                                                                                       Import











                 Step  4   Writing a Simple Program (Smiley Animation)
                           ∑   In Basic, drag the Show Icon block into the workspace.

                           ∑   Select the Smiley icon from the drop-down menu.
                           ∑   Click Download and save the file.




                                                                                          Exploring Microcontrollers  129
   126   127   128   129   130   131   132   133   134   135   136