Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 48 - RoboGenius Pro C3
P. 48

    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.

                                     RoboGenius Pro - III
                     46

| 43 44 45 46 47 48 49 50 51 52 53 |