     total = total + readings[index];                    // add the reading to the total
     index = index + 1;                                  // advance to next position in array
 
-    if (index >= numReadings) index = 0;                           // if we're at the end of the array...
+    if (index >= numReadings)                           // if we're at the end of the array...
+      index = 0;
 
     average = total / numReadings;
     autoBrightAverage = average;

    beep(NOTE_C4, 500);
    beep(NOTE_E4, 250);
    beep(NOTE_F4, 250);
    beep(NOTE_G4, 500);
    beep(NOTE_C4, 250);
    beep(NOTE_E4, 250);
    beep(NOTE_F4, 250);
  }
  for (int i = 0; i < 3; i++)
  {
    beep(NOTE_G3, 500);

#include <Adafruit_NeoPixel.h>

// Input/Output Pins
<<<<<<< HEAD
int photoCellIn =       A1;      // Auto Dimming
int nightLightIn =      A2;      // Backlight
int clockLightIn =      A3;      // 7-Sebment
