// TEST
//
// P H Anderson, Morgan State University, Sept 8, '09


void setup()   
{                
  // initialize the digital pin as an output:
  pinMode(13, OUTPUT); 
  pinMode(2, OUTPUT);  
}

// the loop() method runs over and over again,
// as long as the Arduino has power

void loop()                     
{
  int adval;
  
  while(1)
  {
      adval = analogRead(0);
      digitalWrite(2, HIGH);   // set the LED on
      delay(adval);            // wait for a second
      digitalWrite(2, LOW);    // set the LED off
      delay(adval);            // wait for a second
  }
}