       digitalWrite(uvLED, LOW);
     }
     noTone(piezoOut);
-
-    counter++;    //Increment counter
-  }
-}
-
-
-void rainbowCycle(uint8_t wait)                                                               // Makes the rainbow equally distributed throughout
-{      
+    counter++;
+  }
+}
+
+
+void rainbowCycle(uint8_t wait)                                                            // Runs rainbow led setup
+{
   uint16_t i, j;
-  for (j = 0; j < 256 * 5; j++)                                                               // 5 cycles of all colors on wheel
-  { 
+  int neoKnob = analogRead(neoLightIn);
+  int neoBrightness = map(neoKnob, 0, 1023, 1, 240);
+  strip.setBrightness(neoBrightness);                            // Set Neopixel Brightness 
+
+  for (j = 0; j < 256 ; j++)                                                               // *1 cycles of all colors on wheel
+  {
     for (i = 0; i < strip.numPixels(); i++)
     {
       strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));

int photoCellRead;               // Photo Cell
int autoBrightAverage;           // Photo Cell
long previousMillis;             // For counting of xfade timer
int fadeAmount = 2;              // 420 LED
int counter;                     // Counts notes played
int numReadings = 25;            // Smoothing function: # of Readings
int neoBrightness = 100;         // Neopixel Shield
boolean running = false;         // Colon On/Off
//volatile int state = LOW;        // For Reminder Switch Interrupt
=======
int photoCellIn = A1;         // Auto Dimming
int nightLightIn = A2;        // Backlight
int clockLightIn = A3;        // 7-Sebment
int NeoPixel = 6;             // RGB-LED: Green
int uvLED = 7;                // LEDs: UV
int reminderSwitchIn = 8;     // Reminder Switch *** NOT WORKING ***
int fourTwentyLED = 9;        // LED: Green
int piezoOut = 10;            // Speaker
int nightLightOut = 11;       // Backlight
int brightSwitchIn = 12;      // Auto Brightness
int dstSwitchIn = 13;         // Savings Time Switch


// Variables
int clockKnob;                // Potentiometer 1
int lightKnob;                // Potentiometer 2
int clockBrightness;          // 7-Segment & Alphanumeric
int lightBrightness;          // Backlight
int dstState;                 // DST
int reminderState;            // Switch (Reminder)
int autoBrightState;          // Switch (Auto-Dimmer)
int photoCellRead;            // Photo Cell
int autoBrightAverage;        // Photo Cell
long previousMillis;          // For counting of xfade timer
int fourTwentyBright = 0;     // 420 LED
int fadeAmount = 2;           // 420 LED
boolean running = false;      // Colon On/Off
int counter = 0;              // Counts notes played
int numReadings = 25;         // Smoothing function: # of Readings
>>>>>>> parent of 044ddaa... Many fixes + last working version before interrupts

// Setup Components
RTC_DS1307 RTC;
Adafruit_7segment disp = Adafruit_7segment();
Adafruit_AlphaNum4 alpha4 = Adafruit_AlphaNum4();
Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, NeoPixel, NEO_GRB + NEO_KHZ800);

// ================================================================================== //
//                                  *** SETUP ***

    disp.setBrightness(clockBrightness);                          // Use Potentiometers to Set Brightness
    alpha4.setBrightness(clockBrightness);
    analogWrite(nightLightOut, lightBrightness);
  }
}


void themeMusic()
{
