#include <FastLED.h>
#define LED_PIN     6
#define NUM_LEDS    6
#define BRIGHT  200
#define DIM  70
#define hs 8
#define ms 9
CRGB leds[NUM_LEDS];

// initial Time display is 12:59:45 PM
int h=12;
int m=59;
int s=45;
//int flag=1; //PM

// Time Set Buttons
int button1;
int button2;

// For accurate Time reading, use Arduino Real Time Clock and not just delay()
static uint32_t last_time, now = 0; // RTC

void setup() {
  FastLED.addLeds<WS2812B, LED_PIN, GRB>(leds, NUM_LEDS);
  FastLED.setBrightness(DIM);
  //leds[2] = CRGB::Red; FastLED.show();delay(1000);
}

void loop() {
  for (int i =5; i>=0; i--){
    if (i!=0){
      leds[i] = CRGB::White; FastLED.show();delay(1000);
      leds[i] = CRGB::Black; FastLED.show();
    }
    else {
      FastLED.setBrightness(BRIGHT);
      leds[i] = CRGB::White; FastLED.show();delay(1000);
      
    }
  }

    for (int j =0; j<=5; j++){
      leds[j] = CRGB::White; FastLED.show();
    }
    
    delay(1000);

    for (int j =0; j<=5; j++){
      leds[j] = CRGB::Black; FastLED.show();
    }
    delay(1000);
    FastLED.setBrightness(DIM);
    //leds[i] = CRGB::Black; FastLED.show();

  }
