rgb led
In this example we will connect an RGB led to a Digispark, a quick recap of the basic Digispark we ware using in this example XGHF-GY Digispark Kickstarter Miniature Development.
In this example we connect an infra red receiver to our Arduino and an RGB led. We will use various button combinations on the remote control to switch on an.
This was a quick test for a multi color LED. Pins 2, 3 and 4 were used [c] int red = 2; int green =3; int blue =4; int j; void setup() { pinMode(red,OUTPUT); pinMode(green,OUTPUT); pinMode(blue,OUTPUT); } void loop() { for (j = 1;...
An RGB led is a combination of a Red, Green and Blue LED's in one package, they can be common cathode or common anode types In the example I used.