RGB LED color change using serial communication

Hi

I wanna make a sketch that when I write certain frases to it via the serial monitor will make an RGB LED light up in certain ways.
I would like to be able to write the RGB code and get the according color (ex: 255 0 0 for red).
Besides that I would like to be able to write "pulse" or something like that and the colors just morphes/changes through the spectrum.

I've found several different tutorial/guides etc. but I can't seem to find one that I can get to work.

So what I'm looking for is:

  1. Either the code that would make this work
  2. A guide that works
  3. A tutorial/guide to writing sketches that use serial communication

I've found several different tutorial/guides etc. but I can't seem to find one that I can get to work.

Perhaps if you could post one of them, we could help you make it work.

Or, break the problem down into "how do I reliably transfer triplets of numbers across a serial link?" and the other simpler bit, then do a search for "PaulS SOP EOP" and see where that leads.

I tried this one:
http://www.homebuiltrovs.com/rovforum/viewtopic.php?f=15&t=97

But only with only code for one of the RGB LED legs. I think the problem there was something with this line:

default:
      // any other key pressed will turn the lights off..
      for (int thisPin = 2; thisPin < 6; thisPin++) {
        digitalWrite(thisPin, LOW);

In that code, I don't really get how to change the:

 // initialize the LED pins:
      for (int thisPin = 2; thisPin < 6; thisPin++) {
        pinMode(thisPin, OUTPUT);
      }

To only the RGB LED pins (which are on three non-continous pins for PWM purpose (3,5,6 on an UNO))

I've got this one working now for the pulsating color:
http://www.mbeckler.org/microcontrollers/rgb_led/

The "problem" here is I don't quite understand the update section and the color_morph.

Edit: I figured out the update section and color_morph. So the question now is primarily about the serial communication.

The "problem" here is I don't quite understand the update section and the color_morph.

The problem here is that you don't understand even the most basic fundamentals of how code works. Like trying to teach a man with no legs to run.
The solution if for you to do some of the tutorials in the learning section, learning how to turn a digital pin on and off and driving a PWM pin.
http://arduino.cc/hu/Tutorial/HomePage

Ignore the question. Figured it all out a different way around.