Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 55 - Robo_Genius_V1.0_flipbook_C3
P. 55

    Here  are  the  x, y  coordinates  for  the
                     LEDs in the 5 × 5 grid:

                     (0,0) (1,0) (2,0) (3,0) (4,0)

                     (0,1) (1,1) (2,1) (3,1) (4,1)

                     (0,2) (1,2) (2,2) (3,2) (4,2)

                     (0,3) (1,3) (2,3) (3,3) (4,3)

                     (0,4) (1,4) (2,4) (3,4) (4,4)

                     The x, y coordinates for the LED in the
                     centre  of  the  grid  are  (2,2).  Starting

                     from  (0,0) count  over 2 columns  and
                     then down 2 rows.

                     Algorithm Used

                     The algorithm used for the activity is:

                                                                 START
                                                                 FOREVER
                                                                    Show icons

                                                                 END

                     Source Code

                     Step 1       Go to Microsoft make code https://makecode.microbit.org/

                                       Click on new
                                       project

                                                                                     Programming with Micro:bit   53

| 50 51 52 53 54 55 56 57 58 59 60 |