Page 58 - Robo_Genius_V1.0_flipbook_C4
P. 58

Block-based  programming  helps  students  quickly  see  the  results  of  their
                     code, making it a fun way to learn programming and bring the micro:bit to life.





                                                                      Program either
                  Simulator shows                                     in blocks or in
                  how program will
                  execute.

                                                                                        Programming
                                                                                        workspace.
                                                                 Blocks Palette






                                                             Name of the
                                    Download program
                                    to micro:bit             project





                  Simple Programming-Displaying Emojis

                  In this project, different types of icons will be

                  displayed on the micro:bit’s 5 x 5 LED matrix.
                  The  display  contains  a  total  of 25 LEDs
                  arranged in a grid, allowing for various icons

                  to be shown. Some preset icons are available
                  in the block code, and users can also create
                  their own custom designs.

                  The micro:bit’s LED screen consists of 25 red

                  LEDs arranged in a 5 by 5 grid. You can control
                  individual LEDs by specifying their position using (x, y) coordinates, where x
                  represents the horizontal position (0–4) and y represents the vertical position

                  (0–4).

                  LED Grid Example:

                  Here are the x, y coordinates for the LEDs in
                  the 5 x 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)



                       56    RoboGenius (V1.0)-IV
   53   54   55   56   57   58   59   60   61   62   63