#include "SPI.h"
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_DC  9
#define TFT_CS  10
#define ILI9341_PINK  8*FC18
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS,TFT_DC);
int buttonPressCount =0;
#define buttonPin 7
void setup()
{
  tft.begin();
  pinMode(buttonPin, INPUT_PULLUP);

}
void loop()
{
  if(digitalRead(buttonPin )== LOW)
  {
    delay(50);
    if(digitalRead(buttonPin) == LOW)
    {
      buttonPressCount++;
      
      switch(buttonPressCount)
      {
        case 1:
              tft.setCursor(26,120);
              tft.setTextColor(ILI9341_RED);
              tft.setTextSize(3);
              tft.println("hello");
              break;
          case 2:
              tft.setCursor(0,160);
              tft.setTextColor(ILI9341_GREEN);
              tft.setTextSize(2);
              tft.println("welcome");
              break;
            case 3:
              tft.setCursor(36,220);
              tft.setTextColor(ILI9341_YELLOW);
              tft.setTextSize(2.5);
              tft.println("THRISHA SEERIN THIRISHA");
              break;
            case 4:
              tft.fillScreen(ILI9341_BLACK);
              tft.setCursor(10,150);
              tft.setTextColor(ILI9341_WHITE);
              tft.setTextSize(2);
              tft.println("server home");
              tft.setCursor(20,200);
              tft.println("LOading.........................");
              buttonPressCount=0;

              break;
      }
      delay(500);
    }
  }
}