     num_files = enumerateGIFFiles(GIF_DIRECTORY, false);
 
     if(num_files < 0) {
+#if ENABLE_SCROLLING == 1
         scrollingLayer.start("No gifs directory", -1);
+#endif
         Serial.println("No gifs directory");
         while(1);
     }
 
     if(!num_files) {
+#if ENABLE_SCROLLING == 1
         scrollingLayer.start("Empty gifs directory", -1);
+#endif
         Serial.println("Empty gifs directory");
         while(1);
     }


SMARTMATRIX_ALLOCATE_BUFFERS(matrix, kMatrixWidth, kMatrixHeight, kRefreshDepth, kDmaBufferRows, kPanelType, kMatrixOptions);
SMARTMATRIX_ALLOCATE_BACKGROUND_LAYER(backgroundLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kBackgroundLayerOptions);
SMARTMATRIX_ALLOCATE_SCROLLING_LAYER(scrollingLayer, kMatrixWidth, kMatrixHeight, COLOR_DEPTH, kScrollingLayerOptions);


// Chip select for SD card on the SmartMatrix Shield
#define SD_CS 15

    // initialize the SD card at full speed
    pinMode(SD_CS, OUTPUT);
    if (!SD.begin(SD_CS)) {
#if ENABLE_SCROLLING == 1
        scrollingLayer.start("No SD card", -1);
#endif
        Serial.println("No SD card");
        while(1);
    }
