Lcd yes or no quiz buttons are not working please help

Were trying to make a yes and no quiz using buttons, if no is pressed it's supposed to move to the next question and if yes is pressed it's supposed to stop any more questions from being asked and make a servo turn, but when we press the buttons, they don't work and the question restarts. Please help!

//using different lcd library from OP
#include <Servo.h>
#include <Wire.h>
#include <hd44780.h>                       // main hd44780 header
#include <hd44780ioClass/hd44780_I2Cexp.h> // i2c expander i/o class header
hd44780_I2Cexp lcd; // declare lcd object: auto locate & auto config expander chip
Servo servo1; // declaer servo
// LCD geometry
const int LCD_COLS = 21;
const int LCD_ROWS = 20;

const int PIN_RED   = 3;
const int PIN_GREEN = 4;
const int PIN_BLUE  = 5;

//states
enum {ST_q1, ST_q2, ST_q3, ST_q4, ST_q5, ST_haveATreat, ST_noTreatForAYou} currentQuestion = ST_q1;

const int servoPin=6;

bool yes = false;
bool no = false;

const byte yesPin = 8;
bool yesState;
bool lastYesState;
const byte noPin = 9;
bool noState;
bool lastNoState;

void setup()
{
  pinMode (servoPin, OUTPUT);

pinMode(PIN_RED,   OUTPUT);
pinMode(PIN_GREEN, OUTPUT);
pinMode(PIN_BLUE,  OUTPUT);

  // initialize serial communication:
  Serial.begin(9600);
  Serial.println("setup() ... ");
  Serial.println("*** facist quiz ***");
  Serial.print("Compiler: ");
  Serial.print(__VERSION__);
  Serial.print(", Arduino IDE: ");
  Serial.println(ARDUINO);
  Serial.print("Created: ");
  Serial.print(__TIME__);
  Serial.print(", ");
  Serial.println(__DATE__);
  Serial.println(__FILE__);

  pinMode(LED_BUILTIN, OUTPUT);
  pinMode(yesPin, INPUT_PULLUP);
  pinMode(noPin, INPUT_PULLUP);
  //initialize button states
  yesState = digitalRead(yesPin);
  lastYesState = yesState;
  noState = digitalRead(noPin);
  lastNoState = noState;
  
  lcd.begin(LCD_COLS, LCD_ROWS);
  lcd.setCursor(0, 0);
  lcd.print("FACIST...");
  lcd.setCursor(0, 1);
  lcd.print("        ...QUIZ");
  delay(1000);
  Serial.println("setup() done");
  Serial.println(" ");
}

void loop(){
  yes = checkYesButton();
  no = checkNoButton();
  askQuestions();
} //loop

void askQuestions()
{
  switch (currentQuestion) //ST_q1, ST_q2, ST_q3, ST_q4, ST_q5, ST_haveASnack, ST_noSoupAForAYou
  {
    case ST_q1:
    
      q1();
      countdown ();
      
      if (yes){ //this would only have been returned true by checkYesButton() if the yes button was pressed
       
        currentQuestion = ST_noTreatForAYou;
        yes = false;
        
      }

      if (no) //this would only have been returned true by checkNoButton() if the no button was pressed
      {
        
        currentQuestion = ST_q2;
        no = false;
        
      }

      break;

    case ST_q2:
      q2();
      countdown();

      if (yes) //this would only have been returned true by checkYesButton() if the yes button was pressed
      {
        currentQuestion = ST_noTreatForAYou;
        yes = false;
      }

      if (no) //this would only have been returned true by checkNoButton() if the no button was pressed
      {
        currentQuestion = ST_q3;
        no = false;
      }
      break;

    case ST_q3:
      q3();
      countdown();
      if (no) //this would only have been returned true by checkNoButton() if the no button was pressed
      {
        currentQuestion = ST_q4;
        no = false;
      }

      if (yes) //this would only have been returned true by checkYesButton() if the yes button was pressed
      {
        currentQuestion = ST_noTreatForAYou;
        yes = false;
      }
      break;

    case ST_q4:
      q4();
      countdown();
      if (no) //this would only have been returned true by checkNoButton() if the no button was pressed
      {
        currentQuestion = ST_noTreatForAYou;
        no = false;
      }

      if (yes) //this would only have been returned true by checkYesButton() if the yes button was pressed
      {
        currentQuestion = ST_q5;
        yes = false;
      }
      break;

    case ST_q5:
      q5();
      countdown();
      if (no) //this would only have been returned true by checkNoButton() if the no button was pressed
      {
        currentQuestion = ST_haveATreat;
        no = false;
      }

      if (yes) //this would only have been returned true by checkYesButton() if the yes button was pressed
      {
        currentQuestion = ST_noTreatForAYou;
        yes = false;
      }
      break;

    case ST_haveATreat:
    yay();
      lcd.setCursor(0, 0);
      lcd.print("CONGRATULATIONS!");
      lcd.setCursor(0, 1);
      lcd.print("HAVE A LITTLE TREAT! ");
      delay(1000);
      currentQuestion = ST_q1;

      break;

    case ST_noTreatForAYou:
    facist();
      lcd.setCursor(0, 0);
      lcd.print("NO TREAT...     ");
      lcd.setCursor(0, 1);
      lcd.print("  ...FORA YOU FACIST!");
            analogWrite (servoPin, 180);
      delay(3000);
            analogWrite (servoPin, 0);
      delay(3000);  
            
      currentQuestion = ST_q1;

      break;
  }//switch
}//askQuestions
void q1 (){
   lcd.clear();                 // clear display
  lcd.setCursor(0, 0);         // move cursor to   (0, 0)
  lcd.print("DO YOU DISPOSE");        // print message at (0, 0)
  lcd.setCursor(9, 1);         // move cursor to   (2, 1)
  lcd.print("OF YOUR"); // print message at (2, 1)
  delay(2000);                 // display the above for two seconds

  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("POLITICAL");        // print message at (3, 0)
  lcd.setCursor(3, 1);          // move cursor to   (0, 1)
  lcd.print("OPONENTS?"); // print message at (0, 1)
  delay(2000);
}

void q2 (){
   lcd.clear();                 // clear display
  lcd.setCursor(0, 0);         // move cursor to   (0, 0)
  lcd.print("DO YOU USE FALSE");        // print message at (0, 0)
  lcd.setCursor(1, 1);         // move cursor to   (2, 1)
  lcd.print("STATEMENTS TO"); // print message at (2, 1)
  delay(2000);                 // display the above for two seconds

  lcd.clear();                  // clear display
  lcd.setCursor(4, 0);          // move cursor to   (3, 0)
  lcd.print("GET YOUR");        // print message at (3, 0)
  lcd.setCursor(6, 1);          // move cursor to   (0, 1)
  lcd.print("WAY?"); // print message at (0, 1)
  delay(2000);
}

void q3 (){
   lcd.clear();                 // clear display
  lcd.setCursor(1, 0);         // move cursor to   (0, 0)
  lcd.print("DO YOU PORTRAY");        // print message at (0, 0)
  lcd.setCursor(1, 1);         // move cursor to   (2, 1)
  lcd.print("YOURSELF AS A"); // print message at (2, 1)
  delay(2000);                 // display the above for two seconds

  lcd.clear();                  // clear display
  lcd.setCursor(0, 0);          // move cursor to   (3, 0)
  lcd.print("PERFECT HUMAN OR");        // print message at (3, 0)
  lcd.setCursor(0, 1);          // move cursor to   (0, 1)
  lcd.print("SORT OF DEMIGOD?"); // print message at (0, 1)
  delay(2000);
}

void q4 (){
   lcd.clear();                 // clear display
  lcd.setCursor(0, 0);         // move cursor to   (0, 0)
  lcd.print("DO YOU ALLOW");        // print message at (0, 0)
  lcd.setCursor(0, 1);         // move cursor to   (2, 1)
  lcd.print("PEOPLE TO SPREAD"); // print message at (2, 1)
  delay(2000);                 // display the above for two seconds

  lcd.clear();                  // clear display
  lcd.setCursor(0, 0);          // move cursor to   (3, 0)
  lcd.print("THEIR BELIEFS");        // print message at (3, 0)
  lcd.setCursor(8, 1);          // move cursor to   (0, 1)
  lcd.print("THAT ARE"); // print message at (0, 1)
  delay(2000);
  
    lcd.clear();                  // clear display
  lcd.setCursor(0, 0);          // move cursor to   (3, 0)
  lcd.print("DIFFERENT THAN");        // print message at (3, 0)
  lcd.setCursor(10, 1);          // move cursor to   (0, 1)
  lcd.print("YOURS?"); // print message at (0, 1)
  delay(2000);
}

void q5 (){
   lcd.clear();                 // clear display
  lcd.setCursor(5, 0);         // move cursor to   (0, 0)
  lcd.print("DO YOU");        // print message at (0, 0)
  lcd.setCursor(0, 1);         // move cursor to   (2, 1)
  lcd.print("CONSTANTLY BLAME"); // print message at (2, 1)
  delay(2000);                 // display the above for two seconds

  lcd.clear();                  // clear display
  lcd.setCursor(0, 0);          // move cursor to   (3, 0)
  lcd.print("OTHER");        // print message at (3, 0)
  lcd.setCursor(3, 1);          // move cursor to   (0, 1)
  lcd.print("GROUPS/PEOPLE"); // print message at (0, 1)
  delay(2000);
  
    lcd.clear();                  // clear display
  lcd.setCursor(0, 0);          // move cursor to   (3, 0)
  lcd.print("FOR  DOWNFALLS");        // print message at (3, 0)
  lcd.setCursor(1, 1);          // move cursor to   (0, 1)
  lcd.print("AND MISFORTUNES"); // print message at (0, 1)
  delay(2000);

      lcd.clear();                  // clear display
  lcd.setCursor(0, 0);          // move cursor to   (3, 0)
  lcd.print("EVEN IF IT HAS");        // print message at (3, 0)
  lcd.setCursor(3, 1);          // move cursor to   (0, 1)
  lcd.print("NOTHING TO DO"); // print message at (0, 1)
  delay(2000);

        lcd.clear();                  // clear display
  lcd.setCursor(5, 0);          // move cursor to   (3, 0)
  lcd.print("WITH");        // print message at (3, 0)
  lcd.setCursor(8, 1);          // move cursor to   (0, 1)
  lcd.print("THEM?"); // print message at (0, 1)
  delay(2000);
}

void countdown (){
  
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YOU HAVE");        // print message at (3, 0)
  lcd.setCursor(3, 1);          // move cursor to   (0, 1)
  lcd.print("20 SECONDS"); // print message at (0, 1)
  delay(2000);  
  
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("20"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("19"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
    lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("18"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("17"); // print message at (0, 1)
  delay(1000);
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("16"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("15"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
    lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("14"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("13"); // print message at (0, 1)
  delay(1000);
    lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("12"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("11"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
    lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("10"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("9"); // print message at (0, 1)
  delay(1000);
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("8"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("7"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
    lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("6"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("5"); // print message at (0, 1)
  delay(1000);
    lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("4"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("3"); // print message at (0, 1)
  delay(1000);
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("2"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("1"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
    lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("YES OR NO");        // print message at (3, 0)
  lcd.setCursor(7, 1);          // move cursor to   (0, 1)
  lcd.print("0"); // print message at (0, 1)
  delay(1000);                  // display the above for two seconds
  lcd.clear();                  // clear display
  lcd.setCursor(3, 0);          // move cursor to   (3, 0)
  lcd.print("TIME");        // print message at (3, 0)
  lcd.setCursor(3, 1);          // move cursor to   (0, 1)
  lcd.print("IS UP"); // print message at (0, 1)
  delay(1000);
currentQuestion = ST_q1;
}
void facist(){
  for (int i = 0; i < 5; i++) {
      analogWrite(PIN_RED,   250);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   245);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   240);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   235);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   230);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   225);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   220);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   215);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   210);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   205);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   200);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   195);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   190);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   185);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   180);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   175);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
        analogWrite(PIN_RED,   170);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   165);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   160);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   155);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   150);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   145);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   140);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   135);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   130);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   125);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   120);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   115);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   110);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   105);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   100);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   95);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   90);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   85);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   80);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   75);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   70);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   65);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   60);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   55);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   50);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   45);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   40);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   35);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   30);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   25);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   20);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   15);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   10);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   5);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);  
        analogWrite(PIN_RED,   5);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   10);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
        analogWrite(PIN_RED,   15);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   20);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   25);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   30);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   35);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   40);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   45);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   50);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   65);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   70);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);  
        analogWrite(PIN_RED,   75);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   80);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   85);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   90);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   95);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   100);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   105);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   110);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   115);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   120);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   125);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   130);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   135);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   140);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   145);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   150);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   155);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   160);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   165);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   170);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   175);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   180);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   185);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   190);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   195);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   200);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   205);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   210);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   215);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   220);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   225);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   230);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   235);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   240);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   245);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        analogWrite(PIN_RED,   250);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  }
}
void red(){
    analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  0);
  delay (10);
}

void yellow(){
    analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
}

void green(){
    analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
}


void cyan(){
  
    analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  255);
  delay (10);
  
}

void blue() {
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  255);
  delay (10);
}

void pink(){

  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
  
}

void yay() {
    
red (); 
  
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 5);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 10);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 15);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 20);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 25);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 30);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 40);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 45);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 50);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 55);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 60);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 65);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 70);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 75);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 80);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 85);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 90);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 95);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 100);
  analogWrite(PIN_BLUE,  0);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 105);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 110);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 115);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 120);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 125);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 130);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 135);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 140);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 145);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 150);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 155);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 160);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 165);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 170);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 175);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 180);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 185);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 190);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 195);
  analogWrite(PIN_BLUE,  0);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 200);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 205);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 210);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 215);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 220);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 225);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 230);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 235);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 240);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 245);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 250);
  analogWrite(PIN_BLUE,  0);
  delay (10);
        
yellow ();
          
  analogWrite(PIN_RED,   250);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   245);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   240);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   235);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   230);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   225);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   220);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   215);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   210);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   205);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   200);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
          
  analogWrite(PIN_RED,   195);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   190);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   185);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   180);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   175);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   170);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   165);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   160);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   155);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   150);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   145);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   140);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   135);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   130);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   125);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   120);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   115);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   110);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   105);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   100);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
            
  analogWrite(PIN_RED,   95);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   90);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   85);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   80);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   75);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   70);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   65);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   60);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   55);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   50);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   45);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   40);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   35);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   30);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   25);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   20);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   15);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);            
  analogWrite(PIN_RED,   10);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
              
  analogWrite(PIN_RED,   5);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  0);
  delay (10);
  
  green();
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  5);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  10);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  15);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  20);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  25);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  30);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  35);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  40);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  45);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  50);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  55);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  60);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  65);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  70);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  75);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  80);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  85);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  90);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  95);
  delay (10);  
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  100);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  105);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  110);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  115);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  120);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  125);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  130);
  delay (10);    
              
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  135);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  140);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  145);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  150);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  155);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  160);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  165);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  170);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  175);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  180);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  185);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  190);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  195);
  delay (10);
                
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  200);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  205);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  210);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  215);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  220);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  225);
  delay (10);

                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  230);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  235);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  240);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  245);
  delay (10);
                  
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 255);
  analogWrite(PIN_BLUE,  250);
  delay (10);       
           
cyan ();
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 250);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 245);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 240);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 235);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 230);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 225);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 220);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 215);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 210);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 205);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 200);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 195);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 190);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 185);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 180);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 175);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 170);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 165);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 160);
  analogWrite(PIN_BLUE,  255);
  delay (10);
             
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 155);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 150);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 145);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 140);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 135);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 130);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 125);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 120);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 115);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 110);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 105);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 100);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 95);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 90);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 85);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 80);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 75);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 70);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 65);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 60);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 55);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 50);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 45);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 40);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 35);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 30);
  analogWrite(PIN_BLUE,  255);
  delay (10);
               
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 25);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 20);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 15);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 10);
  analogWrite(PIN_BLUE,  255);
  delay (10);
                 
  analogWrite(PIN_RED,   0);
  analogWrite(PIN_GREEN, 5);
  analogWrite(PIN_BLUE,  255);
  delay (10);
  
  blue(); 
  
  analogWrite(PIN_RED,   5);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
            
  analogWrite(PIN_RED,   10);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);      
   
  analogWrite(PIN_RED,   15);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   20);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   25);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   30);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   35);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   40);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   45);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   50);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   55);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   60);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   65);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   70);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   75);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   80);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);  
  
  analogWrite(PIN_RED,   85);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   90);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   95);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   100);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   105);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
      
  analogWrite(PIN_RED,   110);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
      
  analogWrite(PIN_RED,   115);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
      
  analogWrite(PIN_RED,   120);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
      
  analogWrite(PIN_RED,   125);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
      
  analogWrite(PIN_RED,   130);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   135);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   140);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   145);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   150);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   155);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   160);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   165);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   170);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   175);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   180);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   185);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   190);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   195);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   200);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   205);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   210);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   215);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   220);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   225);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   230);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   235);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   240);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   245);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
  analogWrite(PIN_RED,   250);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  255);
  delay (10);
    
pink ();
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  250);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  245);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  240);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  235);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  230);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  225);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  220);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  215);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  210);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  205);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  200);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  195);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  190);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  185);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  180);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  175);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  170);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  165);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  160);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  155);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  150);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  145);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  130);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  125);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  120);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  115);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  110);
  delay (10);
    
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  105);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  100);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  95);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  90);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  85);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  80);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  75);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  60);
  delay (10);
        
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  55);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  40);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  35);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  20);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  15);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  10);
  delay (10);
      
  analogWrite(PIN_RED,   255);
  analogWrite(PIN_GREEN, 0);
  analogWrite(PIN_BLUE,  5);
  delay (10);
}


bool checkYesButton()
{
  bool temp = false;
  // read the button:
  yesState = digitalRead(yesPin);

  if (yesState == LOW && lastYesState == HIGH)
  {
    Serial.println("New yes ");
    temp = true;
    // Delay a little bit to avoid bouncing
    delay(50);
  }//change
  lastYesState = yesState;
  return temp;
}//yes

bool checkNoButton()
{
  bool temp = false;
  // read the button:
  noState = digitalRead(noPin);

  // compare the buttonState to its previous state
  if (noState == LOW && lastNoState == HIGH)
  {
    Serial.println("New no ");
    temp = true;
    // Delay a little bit to avoid bouncing
    delay(50);
  }//change
  // save the current state as the last state, for next time through the loop
  lastNoState = noState;
  return temp;
}//no

this is the circuitry

Is this correct?

yes,
because the buttons think they are always being pushed so i don't know what is wrong with it.

I want to help but I do not understand what you have. You took nice pictures but they do not tell me anything. For me a Schematic is needed, not a frizzy picture or photographs.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.