//BUTTON AND WHILE
//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);
  pinMode(BUTTON1, INPUT);
}

void loop() {
  //main code
  digitalWrite(whiteLED, HIGH);
  digitalWrite(blueLED, HIGH);
  
  while(digitalRead(BUTTON1) == true){
  digitalWrite(whiteLED, HIGH);
  digitalWrite(blueLED, LOW);
  delay(800);
  digitalWrite(whiteLED, LOW);
  digitalWrite(blueLED, HIGH);
  delay(800);
  }
}