#define LED_PIN 13
#define POT_PIN A0
void setup() {
// put your setup code here, to run once:
pinMode(LED_PIN, OUTPUT);
pinMode(POT_PIN, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int potValue = analogRead(POT_PIN);
digitalWrite(LED_PIN, HIGH);
delay(potValue);
digitalWrite(LED_PIN, LOW);
delay(potValue);
}