(Practice 2) Controlling LEDs with a Button

circle-check
circle-info

((Practice 2) To control LEDs with a button, you need to understand the concepts of [Conditional Statements] and [Infinite Loops].

Example Code

(Example) When the button is pressed, turn on LED 20 with R: 250, G: 100, B: 100.


๐Ÿ”” Block Description

1. [Infinite Loop]

A block that repeats the desired block infinitely.

Last updated