If you think lighting the led headlight is too simple and not fun enough.Go find two RGB lights on board! Careful users already know where they are, and the careless users may still be looking for...
Let cat mom tell you :they are on the back of the car beside wheels.
Any kind of colored light can be presented by the RGB lamp because the light emitted is made up of three-primary colors detail,a reasonable collocation may delight you!
The “Hover Light” module in the “linefollow” module group can control the brightness and color change of two RBG lamps under the car chassis.
Enter 0 in the first bracket to control the brightness of two lamps. Enter 1 for the right and 2 for the left .The second bracket if for the color.
It's time for the cat show.
The follow program can present a effect as the first GIF
Now let's unscamble the procedure:
The two RGB lights shine red for 1 second
The two RGB lights shinet blue for 1 second
The two RGB lights shine green for 1 second
Repeat the first step
Click on the green flag and see the effect!
Look at the second program
This program implements the RGB lamp from light green to dark green
An interested guest can add a sequence of green gradients on the basis of this program, so that the color will be more smooth.
In the last program, the effect is to move the color from the left RGB light to the right.
Let me show you.
Don't worry about the renderings of my cheap phone
Here is my procedure for reference, and I hope you can share the more intriguing playing method of RGB.