const int LED_pink = 12;
const int LED_purple = 10;
const int LED_blue = 8;
const int BTN = 0;
const int BTN_servo = 2;
int btn_count = 0;

#include <Servo.h>
Servo myservo;
#define servoPin 5

void setup() {
  pinMode(LED_pink, OUTPUT);
  pinMode(LED_purple, OUTPUT);
  pinMode(LED_blue, OUTPUT);
  pinMode(BTN, INPUT_PULLUP);
  pinMode(BTN_servo, INPUT_PULLUP);
  myservo.attach(servoPin);
}

void loop() {

  if (!digitalRead(BTN)) {
    btn_count += 1;
    delay(100);
  }

  if (btn_count==3){
    digitalWrite(LED_pink, HIGH);
  } else if (btn_count == 6) {
    digitalWrite(LED_purple, HIGH);
  } else if (btn_count == 9){
    digitalWrite(LED_blue, HIGH);

    if(!digitalRead(BTN_servo)) {
          myservo.write(90);
          delay(150);
          myservo.write(180);
          delay(150);
          myservo.write(0);
          delay(200);
          myservo.write(180);
          delay(150);
           myservo.write(90);
          delay(150);
    }

  } else if (btn_count == 10){
      btn_count = 1;
  } else {
    digitalWrite(LED_pink, LOW);
    digitalWrite(LED_purple, LOW);
    digitalWrite(LED_blue, LOW);
  };
  
};