Instructions
www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
Lesson 18: RGB-LED
This diode is controlled by PWM signals and has a three-color system for
displaying colors. The component can be connected directly to the
Mega2560 interfaces.
It is required:
void updateLEDs(int value) {
digitalWrite(latch, LOW);
shiftOut(data, clock, MSBFIRST, ~value);
digitalWrite(latch, HIGH); // Interlock
}
1x
Mega2560 board
1x
USB cable
1x
RGB-LED
1x
Breadboard
5x
Jumper cable
3x
220 Ω resistor