I tried this one:
http://www.homebuiltrovs.com/rovforum/viewtopic.php?f=15&t=97But 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.