 
 void rainbow(uint8_t wait) {
     uint16_t i, j;
-    
+
     for(j=0; j<256 && !patternToggled; j++) {
         for(i=0; i<strip.numPixels(); i++) {
             strip.setPixelColor(i, Wheel((i+j) & 255));

#include "neopixel/neopixel.h"

// SYSTEM_MODE(AUTOMATIC);
SYSTEM_MODE(SEMI_AUTOMATIC);

#define PATTERN_INDEX_MAX 9
#define DEBOUNCE_DELAY 300

#define LED_PIN D3
#define TOGGLE_PIN D2
#define WIFI_PIN D1

// IMPORTANT: Set pixel COUNT, PIN and TYPE
#define PIXEL_PIN A5
#define PIXEL_COUNT 120
#define PIXEL_TYPE WS2812B

    }
}

// Attempts to connect using the normal WiFi connectivity capabilities
void connect() {
    strip.setBrightness(30);
    if (Spark.connected() == false) {
