The default button built into the HUENIT AI camera returns a value of 0 when pressed, and a value of 1 when not pressed.
((Practice 2) To control LEDs with a button, you need to understand the concepts of [Conditional Statements] and [Infinite Loops].
(Example) When the button is pressed, turn on LED 20 with R: 250, G: 100, B: 100.
A block that repeats the desired block infinitely.
Last updated 11 months ago