Back to Parent

I then wanted to visualize the color on the LED strip. The trick here is that as I only set three colors(red, green, and blue), any color with an r, g, or b value greater than the other two will be detected as the color. For example, r = 30, g = 29, b = 29 will be read as red. 

However, the sensor is sensitive to the color of the environment. It sometimes reads r value more than g and b values. So I had to reduce the r value in the function by dividing the read r-value by 1.5. 


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0