5.1 ไฟ LED RGB บนบอร์ด
1. Preparation
1-1.The position of the LED lights on the robot car
1-2.Learn about the principle of LED
Principle: LED light (red, green, blue) are packaged in the LED module. We can mix different colors(256*256*256) by controlling the brightness of the three LEDs.
2. Learning goal
2-1.Learn how to use RGB lights graphically program building blocks
2-2.We will make two LED lights of Tiny-bit light up white by programming.
3. Search for block
The following is the location of the building blocks required for this programming.
4. Combine block
The summary program is shown below:
5.Conclusion of the experiment
After the program is downloaded, we can see that a microbit board will display a heart pattern on the dot matrix. Two LED lights will be lit white, as shown below.