Posts

Showing posts with the label light emitting diode

Arduino & Tri-Colored LEDs

Image
I'm currently working on an unnamed  project which requires the integration of tri-color LEDs (RGB). These are merely four-pin LEDs with a common anode or cathode and an input pin for red, green, and blue. With varying currents, a multitude of colors can be produced. So I created a C++ (arduino) library for handling such LEDs. Since most of my knowledge of programming is in C, learning about classes in C++ is a significant accomplishment for me.