The Code Since designing it was pretty simple, writing the code was also fairly straightforward.  I used digital pin 9 for the LED control and the A0 for the potentiometer control.  Another cool use for this is a piezo, because it makes all the different notes, like a tuner.