Page 61 - RoboGenius Pro C5
P. 61

STEP - 4   Drag the on button A pressed block from the Input category in the

                               workspace.


                                                          on  button   A  pressed





                  STEP - 5   Drag the show icon block from the Basic category, in the on button A

                               pressed block.

                  STEP - 6   Click on the drop-down button of show icon block and select a happy face.


                                                         on  button   A  pressed

                                                           show icon




                   STEP - 7   Drag on button A pressed block from the Input category and click the
                               drop-down button and change it to B.



                                                         on  button   B  pressed





                  STEP - 8   Drag show icon block from the Basic category into the on button B
                               pressed block and choose a sad face after clicking on heart icon.


                                                         on  button   B  pressed

                                                           show icon




                               Your block-based code will look like this.
























                                                                             Creative Projects with Micro:Bit
                                                                                                                    59
   56   57   58   59   60   61   62   63   64   65   66