Welcome to the DFRobot blog
:
www.dfrobot.com/blog-tag-microbit.html
58
/
86
Goal: We have learned how to turn on and set light effect to the LED strip. But can we make a
simple light animation, say make the LEDs turn on in a sequence?
STEP 1: The key to create an animation with the LED strip is to change the parameter of the light
effect. We will create a variable that changes throughout the time and use it to replace the preset
constant parameter. To setup such a variable, go to: “Variables” => “Make a Variable”, and set
the name of the variable (to be clear, we named the variable as "the number of LEDs to be lit”),
Then click OK.