Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 42 - RoboGenius Pro C5
P. 42

    on  start

                                                 play melody         at tempo 120 (bpm)  until done

                                                         Editor  Gallery

                                                      120              Done

                                    Your block-based code should now look like this.

                        STEP - 7   Click on Start the simulator button to run the program.

                      Output

                      You will observe that when the program runs, the Micro:bit starts playing the
                      melody, you have created.

                      SIMPLE DIGITAL THERMOMETER

                      A digital  thermometer is  a simple  device  used  to  measure  the  surrounding
                      temperature helping people understand how hot or cold the environment is. Using

                      the Micro:bit’s built-in temperature sensor, it detects temperature changes and
                      shows the reading on its LED display.

                                     RoboGenius Pro - V
                     40

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