Display various colors using an RGB LED.
The RGB Pins are initialized as MODE_OUTPUT.
The color is set by pin.AnalogWrite(0 - 255).
The B$R source has various subs to set predefined colors, e.g. Red, Green. Blue, Off.
• 1x Arduino [MEGA used for this experiment]
• 1x RGB LED
Arduino MEGA = RGB LED
PWM 3 = RED (Red)
GND = GND (Black) - longest led
PWM 5 = GREEN (Green) -
PWM 6 = BLUE (Blue) - shortest led
Download Source Code
• Experiment is completed.
Experiments & prototyping with the Arduino.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests