- Edited
I need help getting Pure Data to control the colors of an RGB LED. I purchased this LED: https://www.ultimarc.com/arcade/buttons/classicrgb-led-pushbuttons/
Long term, my plan is to have with each button press of the arcade button, Pure Data chooses a color at random, and adjusts the color of the LED accordingly with each press.
But right now I'm stuck on getting Pure Data to control the LED at all.
The LED has four pins (gray, red, green, blue). If I plug the gray into 3.3v and each of the other pins into ground, the all the LEDs light up. Same thing if I plug the red, green, and blue pins into analog out 0,1,2. See the diagram here:
But how do I get Pure Data to change the color of the pins? Right now I'm just trying for the red pin and have green and blue unplugged.
Thank you.