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:
Either the code that would make this work
A guide that works
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.
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