I have a maths problem guys. need some understanding
I have a pot which i will read from the avr adc. I will keep this adc 8 bits long. When i turn the knob i want the the rgb colours to change in accordance with the adc value
Now for the rgb lighting i will be outputing the 3 colour registers on their respective pwm lines
how do i divide the adc values among the 3 colour registers(all 3 regiters are 8 bit long) to get the best colour mixing.