/************************************************** 
* LED SEQUENCE PROGRAM USING ESP32 * 
* SUBMITTED BY: AQUINO, KEN HEART G. * 
* SUBMITTED TO: PROF. MICHAEL T. SAMONTE * 
* *************************************************/


#define LED1 2
#define LED2 4
#define LED3 5
#define LED4 18
#define LED5 19
#define LED6 21
#define LED7 22
#define LED8 23
#define LED9 13
#define LED10 12

void setup() {
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
pinMode(LED4, OUTPUT);
pinMode(LED5, OUTPUT);
pinMode(LED6, OUTPUT);
pinMode(LED7, OUTPUT);
pinMode(LED8, OUTPUT);
pinMode(LED9, OUTPUT);
pinMode(LED10, OUTPUT);
}

void loop() {
digitalWrite(LED1, HIGH);
delay(500);
digitalWrite(LED1, LOW);
delay(500);
digitalWrite(LED2, HIGH);
delay(500);
digitalWrite(LED2, LOW);
delay(500);
digitalWrite(LED3, HIGH);
delay(500);
digitalWrite(LED3, LOW);
delay(500);
digitalWrite(LED4, HIGH);
delay(500);
digitalWrite(LED4, LOW);
delay(500);
digitalWrite(LED5, HIGH);
delay(500);
digitalWrite(LED5, LOW);
delay(500);
digitalWrite(LED6, HIGH);
delay(500);
digitalWrite(LED6, LOW);
delay(500);
digitalWrite(LED7, HIGH);
delay(500);
digitalWrite(LED7, LOW);
delay(500);
digitalWrite(LED8, HIGH);
delay(500);
digitalWrite(LED8, LOW);
delay(500);
digitalWrite(LED9, HIGH);
delay(500);
digitalWrite(LED9, LOW);
delay(500);
digitalWrite(LED10, HIGH);
delay(500);
digitalWrite(LED10, LOW);
delay(500);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(2000);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(2000);



digitalWrite(LED1, HIGH);
digitalWrite(LED3, HIGH);
delay(500);
digitalWrite(LED1, LOW);
digitalWrite(LED3, LOW);
delay(500);
digitalWrite(LED2, HIGH);
digitalWrite(LED4, HIGH);
delay(500);
digitalWrite(LED2, LOW);
digitalWrite(LED4, LOW);
delay(500);
digitalWrite(LED3, HIGH);
digitalWrite(LED5, HIGH);
delay(500);
digitalWrite(LED3, LOW);
digitalWrite(LED5, LOW);
delay(500);
digitalWrite(LED4, HIGH);
digitalWrite(LED6, HIGH);
delay(500);
digitalWrite(LED4, LOW);
digitalWrite(LED6, LOW);
delay(500);
digitalWrite(LED5, HIGH);
digitalWrite(LED7, HIGH);
delay(500);
digitalWrite(LED5, LOW);
digitalWrite(LED7, LOW);
delay(500);
digitalWrite(LED6, HIGH);
digitalWrite(LED8, HIGH);
delay(500);
digitalWrite(LED6, LOW);
digitalWrite(LED8, LOW);
delay(500);
digitalWrite(LED7, HIGH);
digitalWrite(LED9, HIGH);
delay(500);
digitalWrite(LED7, LOW);
digitalWrite(LED9, LOW);
delay(500);
digitalWrite(LED8, HIGH);
digitalWrite(LED10, HIGH);
delay(500);
digitalWrite(LED8, LOW);
digitalWrite(LED10, LOW);
delay(500);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(2000);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(2000);


digitalWrite(LED1, HIGH);
delay(100);
digitalWrite(LED1, LOW);
delay(100);
digitalWrite(LED2, HIGH);
delay(100);
digitalWrite(LED2, LOW);
delay(100);
digitalWrite(LED3, HIGH);
delay(100);
digitalWrite(LED3, LOW);
delay(100);
digitalWrite(LED4, HIGH);
delay(100);
digitalWrite(LED4, LOW);
delay(100);
digitalWrite(LED5, HIGH);
delay(100);
digitalWrite(LED5, LOW);
delay(100);
digitalWrite(LED6, HIGH);
delay(100);
digitalWrite(LED6, LOW);
delay(100);
digitalWrite(LED7, HIGH);
delay(100);
digitalWrite(LED7, LOW);
delay(100);
digitalWrite(LED8, HIGH);
delay(100);
digitalWrite(LED8, LOW);
delay(100);
digitalWrite(LED9, HIGH);
delay(100);
digitalWrite(LED9, LOW);
delay(100);
digitalWrite(LED10, HIGH);
delay(100);
digitalWrite(LED10, LOW);
delay(100);
digitalWrite(LED10, HIGH);
delay(100);
digitalWrite(LED10, LOW);
delay(100);
digitalWrite(LED9, HIGH);
delay(100);
digitalWrite(LED9, LOW);
delay(100);
digitalWrite(LED8, HIGH);
delay(100);
digitalWrite(LED8, LOW);
delay(100);
digitalWrite(LED7, HIGH);
delay(100);
digitalWrite(LED7, LOW);
delay(100);
digitalWrite(LED6, HIGH);
delay(100);
digitalWrite(LED6, LOW);
delay(100);
digitalWrite(LED5, HIGH);
delay(100);
digitalWrite(LED5, LOW);
delay(100);
digitalWrite(LED4, HIGH);
delay(100);
digitalWrite(LED4, LOW);
delay(100);
digitalWrite(LED3, HIGH);
delay(100);
digitalWrite(LED3, LOW);
delay(100);
digitalWrite(LED2, HIGH);
delay(100);
digitalWrite(LED2, LOW);
delay(100);
digitalWrite(LED1, HIGH);
delay(100);
digitalWrite(LED1, LOW);
delay(100);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(2000);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(2000);


for(;;) {}
}