Page 178 - Trackpad_V1_Book 8_Flipbook
P. 178
TECHIPEDIA
Now that you know about Makecode, let us learn how to
control the LEDs on the left side of the panel.
ADVANCED BLOCKS OF MAKECODE
Makecode has some of the advanced blocks required to code the microbit. Let us take some of
these blocks.
LED Blocks
These blocks are primarily used to control the micro:bit LED display.
This block is used to light up the LED, whose coordinates are mentioned. The values
of x and y range from 0 to 4.
This block is used to turn off the LED, whose coordinates are mentioned. The values
of x and y range from 0 to 4.
This block is used to change the brightness of the LEDs.
RADIO Blocks
These blocks are to send and receive data using radio packets to other micro:bits.
This block is used to broadcast a number to other micro:bits that are connected
to the radio.
This block is used to send a string of up to 19 characters to other micro:bits
connected to the radio.
This block asks the micro:bit to run part of a program when it receives a
string over the radio.
176 Trackpad (Version 1.0)-VIII Techipedia 177

