Color Sensing with TCS3200, Need Help with Code & Understanding

Johan_Ha:
Write a separate program that outputs various RGB values to the LED. When you get a hang of it, you know how to fix the code in your post #4.

Yeah, I'm guessing that I need to make a void argument(?), that has the R,G,B number passed into it, and then digitalwrite() into the LED.

I'm studying some of the RGB tutorials to see if they'll help me.

Something along the lines of

LEDColor(frequency) in the void loop,

and then a separate function of:

void LEDColor() {
digitalWrite(RGBLEDR,frequency);
digitalWrite(RGBLEDG,frequency);
digitalWrite(RGBLEDB,frequency);

}