RGB Control

Hi Guys

I'm new here and i want to ask if anyone have some advice to control the color of an rgb with the serial monitor. For example i want to give the serialmonitor the values 222,120,30 and he will give me a color

Did anyone have an example code?

please help me

Rusconichess:
Hi Guys

I’m new here and i want to ask if anyone have some advice to control the color of an rgb with the serial monitor. For example i want to give the serialmonitor the values 222,120,30 and he will give me a color

Did anyone have an example code?

please help me

Shouldn’t be too hard to do since you need code in your Arduino sketch to constantly read the Serial Monitor and take those RGB values and send the appropriate commands to your RGB LED.

Use three PWM outputs to drive the led RGB pins.
Each PWM pin uses a value from a serial read in an analogWrite()

analogWrite(pin, serialReadvalue) ;
etc.

.