4 Pin RGB LED - NoahMacDonald1/387_NM_Final GitHub Wiki

I use a 4-pin RGB LED as a form of feedback to the user. There are currently 3 use cases:

  1. If the input pattern is not correct, the LED flashes red.
  2. If the pattern is correct, flash green.
  3. Every time you enter a button, the LED flashes orange.

Video: Video can be found here

The red pin of the LED is connected to digital pin 9 on the Arduino, and the green pin is on pin 8. There are 1k Ohm resistors between each pin and their respective sources to limit current.

4-pin RGB LED on a breadboard