I am trying to operate a lot of RGB LEDs for a project. I came up with a crazy scheme which only works if the RGBs work exactly as three separate LEDs.
What I want to do is connect the R, G and B lines of all the LEDs with the same source of PWM and connect their grounds to separate pins(which have tri state logic). So when I want to turn on a pin I will give the PWM for the color on the PWM line and drive its ground pin low and ground pins of other RGBs to high impedance (theoretically separating them from the circuit). Will such a circuit work?