Page 68 - Ai Robogenius
P. 68

MAKING PATTERNS AND SHAPES

                  The micro:bit can display different patterns and shapes by turning specific LEDs

                  ON or OFF. Using the show leds block in micro:bit, you can design pictures such as
                  arrows, hearts or letters by lighting up LEDs in chosen spots.

                  Below are some examples of shapes you can create using the show leds block:

                    Shape Name             MakeCode Block                 Description                 Output
                   Heart                                             It  displays  a  heart
                                         on  start
                                                                     shape.
                                           show leds
















                   Arrow                                             It displays a right-
                                         on  start
                                                                     positing arrow,
                                           show leds
                                                                     often used for
                                                                     direction.













                   Square                                            It displays a
                                         on  start
                                                                     box-shaped
                                           show leds
                                                                     outline.





















                                 AI RoboGenius - III
                 66
   63   64   65   66   67   68   69   70   71   72   73