Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 137 - 2615_KEC
P. 137

    ∑  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  135

| 132 133 134 135 136 137 138 139 140 141 142 |