Please help....
I got the following "Blink Without Delay" to work great, but I would like to add a pause in the LED flash.....for example
Flash..Flash.....pause 3 seconds.....Flash..Flash.....pause 3 seconds.....Flash..Flash.....pause 3 seconds.............
// set pin numbers:
const int conv1start = 22; // the number of the LED pin
// Variables will change:
int ledState = HIGH; // ledState used to set the LED
long previousMillis = 0; // will store last time LED was updated
long interval = 250; // interval at which to blink (milliseconds)
void setup() {
// set the digital pin as output:
pinMode(conv1start, OUTPUT);
}
void loop()
{
// blink the LED.
unsigned long currentMillis = millis();
if(currentMillis - previousMillis > interval) {
// save the last time you blinked the LED
previousMillis = currentMillis;
// if the LED is off turn it on and vice-versa:
if (ledState == HIGH)
ledState = LOW;
else
ledState = HIGH;
// set the LED with the ledState of the variable:
digitalWrite(conv1start, ledState);
}
}