   }
 #endif
 
-#if (SMARTMATRIX_ENABLED == 1)
+#if (MODE == MODE_SMARTMATRIX_NOCOLORCORRECTION || MODE == MODE_SMARTMATRIX_COLORCORRECTION)
   // scale the brightness of all pixels down
   void dimAll(byte value)
   {

  }
#endif

#define BRIGHTNESS 255

void setup() {
#if (SMARTMATRIX_ENABLED == 1)
  matrix.addLayer(&backgroundLayer);
  matrix.addLayer(&scrollingLayer);
  matrix.begin();

    theta++;
    hue++;

#if (MODE == MODE_SMARTMATRIX_NOCOLORCORRECTION || MODE == MODE_SMARTMATRIX_COLORCORRECTION)
    backgroundLayer.swapBuffers(true);
#else
    FastLED.show();
#endif
  }

#if (MODE == MODE_FASTLED_DITHERING)
  // FastLED needs to update LEDs during idle time to do dithering
  FastLED.show();
#endif
}
