How to control LED using Rotary Potentiometer

Hello, I am using the Arduino Uno for this, and all I want to do is control a red led by using a rotary potentiometer. I got it with sparkfun's starter kit flex, but is blue and small. I am not sure how to write the code for this. I used the reference page, but that didn't help me much. Any help?

STRYK3R15:
Hello, I am using the Arduino Uno for this, and all I want to do is control a red led by using a rotary potentiometer. I got it with sparkfun's starter kit flex, but is blue and small. I am not sure how to write the code for this. I used the reference page, but that didn't help me much. Any help?

I'm not sure which reference page you are referring to.

There is the page for the example program AnalogInput http://arduino.cc/en/Tutorial/AnalogInput, which uses a LED (or the builtin LED) on pin 13 and a potentiometer on A0. A pot has 3 wires, usually with ground and voltage on the two ends, and the signal in the middle. The signal must be connected to an analog pin (A0-A5 in the UNO), and it returns a value from 0 to 1023. If it is a small pot that fits on a breadboard, you probably need to find a small screw driver to turn the encoder part to change the values.

Yup follow Michaels guide.

I've looked at your trimpot. The pinout is the left-most pin is Vcc, cener pin is the wiper or thing you connect to analog, and the right most pin is the ground.