 #include <ArduinoJson.h>
 
 DynamicJsonBuffer jsonBuffer(500);
-int numberOfSparkles = 0;
+void setupLanternPattern() {
+  // Set up Serial for lantern pattern
+  Serial1.begin(9600);
+  Serial1.setTimeout(10);
+}
+
+
 
 #define CIRCUMFERENCE 22
 #define SNAKES_COUNT 50


uint8_t hue = 50;
uint16_t snakes[SNAKES_COUNT];

int snake = 0;
int speed = 1;

void setupLanternPattern() {
  // Set up Serial for lantern pattern
  Serial1.begin(9600);
  Serial1.setTimeout(10);
}

int newBrightness = 128;
int newHue = hue;
void setSettingsFromSerial() {
    if(Serial1.available()) {
      JsonObject& root = jsonBuffer.parseObject(Serial1);


  EVERY_N_MILLISECONDS(FADE_MS) {
    nscale8(leds, NUM_LEDS, 255 - speed);
  }

  EVERY_N_MILLISECONDS(SPARKLE_MS) {
