//
int AnalogInputVal;
int LedNumber;
int lastLednumber =0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
for (AnalogInputVal = 0; AnalogInputVal<1024; AnalogInputVal++)
{
LedNumber = map(AnalogInputVal,0,1023,2,8);
if(lastLednumber != LedNumber )
{
Serial.print ("LedNumber for ");
Serial.print (AnalogInputVal);
Serial.print (" AnalogInputVal :");
Serial.println(LedNumber);
lastLednumber = LedNumber;
}
}
}
void loop() {
// put your main code here, to run repeatedly:
}