//NTERRUPTION
//pin numbers
int whiteLED = D9;
int blueLED = D10;
int BUTTON1 = D6; 

void setup() {
  //pin mode for each led and button pin
  pinMode(whiteLED, OUTPUT);
  pinMode(blueLED, OUTPUT);
  //pin mode for interruption
  pinMode(BUTTON1, INPUT_PULLUP);
  attachInterrupt(digitalPinToInterrupt(BUTTON1), interrupt, FALLING);

}

void loop() {
  //main code
  digitalWrite(whiteLED, HIGH);
  delay(1000);
  
  digitalWrite(whiteLED, LOW);
  delay(1000);
  }

void interrupt(){

    digitalWrite(blueLED, HIGH);
    delay(1000);
    
}