ok now i get his point. haha sorry AWOL for not understanding what you meant by that. urm let me try to make it as been pointed out,
const int ledPin = 13;
int ledState = LOW;
long previousMillis = 0;
int Count=0;
unsigned long interval;
void setup()
{
pinMode(ledPin, OUTPUT);
}
void loop()
{
unsigned long currentMillis = millis();
if(currentMillis - previousMillis > interval)
{
previousMillis = currentMillis;
ledState=!ledState;
digitalWrite(ledPin, ledState);
Count++;
}
if(Count%2==0)
{
interval = 100UL;
}
else
{
interval =2000UL;
}
}
is this something that you meant?