Hello I am confused on how to add another code to another pin. I have attached my current design but I am having problems with programming the second RGB to blink. Any suggestions on what I could do? I would like the second RBG to blink primary colors only. I have also attached my code. My current design https://imgur.com/nPrfu5L
RGB FINAL1.ino (516 Bytes)
I have also attached my code
If you really wanted help, you’d have posted your code.
Kinda new to this but here
int redPin = 10;
int greenPin = 8;
int bluePin = 9;
setColor(255, 255, 0); // yellow
setColor(80, 0, 80); // purple
setColor(0, 255, 255); // aqua
void setColor(int red, int green, int blue)
red = 255 - red;
green = 255 - green;
blue = 255 - blue;
Code tags missing.
No indentation making code hard to read.
Which of the code is for the first LED, and which part for the second? The code appears to be dealing with three LEDs total.