This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

RGB control with device type 6 drivers
#7
Quote:For the strip lights though we are far off and we can't make much of the colours. For example yellow is light green and white is light blue.
RGB LED strips cannot produce accurate whites. You can apply scaling coefficients to make a certain color less bright to make it a bit more accurate.
Change the coefficients (0.9 and 0.8) as needed:
Code:
value = event.getvalue()
r = bit.band(bit.rshift(value, 16), 0xFF)
b = bit.band(bit.rshift(value, 8), 0xFF)
g = bit.band(value, 0xFF)

grp.write('1/1/1', r)
grp.write('1/1/2', g * 0.9)
grp.write('1/1/3', b * 0.8)
Reply


Messages In This Thread
RE: RGB control with device type 6 drivers - by admin - 12.08.2021, 10:05

Forum Jump: