
I was just into the pit, also don't know U learn microchip that specific countries, is also listen to
Domestic U used for RGB fan control article lamp luminous
The program can only give
Red 0 xff0000,
Green 0 x00ff00,
Blue 0 x0000ff,
Magenta 0 xff00ff,
Or violet 0 x7f00ff
The color of light and shade change
If complicated
Deep violet 0 x8a2be2,
Deep orchid purple 0 x9932cc
Can't do with a few values of linear decline to not change the hue and saturation control light and shade
Personally think that only find some kind of adjustable make RGB values change method can achieve a goal, but he not jing think
If you have any other ideas or methods still hope, every comment

CodePudding user response:
The RGB value dot line, such as red 0 x800000 than 0 xff0000 half darkCodePudding user response:
Personal understanding: the color and brightness of light is two concepts completely, not through color attune to the brightness of this purpose,You should now be not understand the real application the lamp of the program, using red, green, and blue this may only be send control commands to have good control program, and the color of the more complex the original program might not have support adjustable brightness or not to open out the corresponding commands you,
CodePudding user response:
Must use control the low level according to the value of time, that is, using PWM controlCodePudding user response:
Currently, the method has no constructiveI refer to a lot of information in eventually
https://www.vagrearg.org/content/hsvrgb#hsv256_256_256
https://www.rapidtables.com/convert/color/hsv-to-rgb.html
https://stackoverflow.com/questions/3018313/algorithm-to-convert-rgb-to-hsv-and-hsv-to-rgb-in-range-0-255-for-both
Find information has reference value
CodePudding user response:
See you is essentially LCD or ledIs entirely a led his shine LCD backlight