Page 77 - Ai Robogenius
P. 77

STEP - 11    Drag the heading variable from the Variables category and place it in

                                 to comparison block of if-else if-else block and change the value and
                                 operator of the comparison block as shown.





















                  STEP - 12    Drag the show string blocks from the Basic category to the if-else if-
                                 else block to display the direction on the screen (N, E, S, W) as shown.






















                  STEP - 13    Click on the Download button.


                  STEP - 14    Connect  micro:bit  to  its  cable and USB port  of Desktop  computer/
                                 laptop.

                  STEP - 15    Click on the Next button.























                                                                                      Sensors in Micro:Bit
                                                                                                                    75
   72   73   74   75   76   77   78   79   80   81   82