int x;
long previousMillis = 0; // will store last time LED was updated
// constants won’t change : arduino.cc
long interval = 1000;
void setup() {
pinMode(12, OUTPUT);
pinMode (13, OUTPUT);
Serial.begin(9600);
}
void loop() {
unsigned long currentMillis = millis();
x++;
if (x = 10) {
digitalWrite(13, HIGH);
digitalWrite(12, HIGH);
}
if (x = 20) {
digitalWrite(13, LOW);
x = 0;
if (x = 0)
digitalWrite (13, HIGH);
if (x = 15)
digitalWrite (13,LOW);
digitalWrite (12, LOW);
if (x = 18)
digitalWrite (12, HIGH);
if (x = 12)
digitalWrite (13, LOW);
}
Serial.println(x);
}