(Example 2-1) Controlling LED in Custom Shapes - Basic

circle-info

With the blocks shown above, you can easily control the LEDs at specific positions.

Example Code

(Example) Turn on LEDs in a Heart Shape with R: 250, G: 150, B: 150

Heart-shaped LED Number

🔔 Block Explanation

1. [Set to LED ( ) Shape] Block

  • This block assigns colors to specific LED positions.

💡 How to Use the Block

(1) Modifying the LED Layout

  • Click on the black squares to adjust the LED pattern.

  • Three options are available:

    • [COLOR] → Set a color for specific LEDs.

    • [ERASE] → Remove colors from selected LEDs.

    • [CLEAR] → Reset all LEDs.

(2) Selecting a Color Click the [COLOR] button to choose a color.

circle-check

(3) Assigning the Color to LEDs

  • Once the color is set, click the desired LED positions to apply the color.

Last updated