Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 50 - RoboGenius Pro C3
P. 50

    Other ways to use these buttons include:

                         User Input: Buttons act as input devices that allow you to control the program,
                         such as starting a timer with Button A or stopping it with Button B.

                         Triggering  Events: Each button  can trigger a specific  action,  like showing a

                         message with Button A or clearing the screen with Button B.

                         Controlling Programs: Buttons can move between steps or select options, for

                         example, pressing Button A for Yes and Button B for No in a quiz.
                         Counting and Tracking: The micro:bit can count how many times each button

                         is  pressed,  helping  you  create  a  counter that  increases  every  time  Button  A

                         is pressed.

                         Games and Fun Projects: Buttons make games interactive, such as using Button
                         A to move a player left and Button B to move right.

                         Custom Actions: Both buttons can be pressed together to perform a new task,

                         like displaying a special message or resetting the program.

                                                             CHALLENGE CHAIN

                        Open the micro:bit and complete the following:
                        Level 1: Show a happy face with Button A.

                        Level 2: Show a sad face with Button B.

                        Level 3: Show a heart when both buttons are pressed.

                                           A student created a game using the micro:bit where pressing Button A
                                          moves a character left, but it moves slowly. What can the student adjust
                                                             in the program to increase the speed?

                      Press Button to Show a Smiley

                      In this activity, you will learn how to display a smiley face on the micro:bit when a
                      button is pressed. You will use the button to trigger the smiley icon, which will help
                      you practice controlling inputs and outputs on the micro:bit.

                                     RoboGenius Pro - III
                     48

| 45 46 47 48 49 50 51 52 53 54 55 |