Individual colors on 2x2 button pad?

Hi, I recently bought the button pad and related parts to build a simple, multicolor button pad. After examining [this breakout board however, I can’t seem to figure out how your supposed to get different colors on different LED’s if there’s only one set of RGB inputs. I mean, through PWM, I could make all of the LED’s change color, but what about individual color configurations?](Button Pad 2x2 - Breakout PCB - COM-09277 - SparkFun Electronics)

You’ve got the RGB pins but also access to each of the LEDs common-cathode “LED_GND” pins…

Look back at the [schematic.](http://www.sparkfun.com/datasheets/Components/Buttons/2x2Button_Pad_Breakout-v01.pdf)

But the common cathode would only allow me to control the brightness wouldn’t it?

Nope. Brightness is controlled via the PWM.

As the LEDs common-cathodes are seperate from each other, you can “ground” each

in sequence whilst feeding different PWM ratios into the RGB pins, going through the

array at a minimum of 25hz so you don’t notice the flicker…

Oooooh! I gotcha! Thanks!

You’re welcome! :wink: