 #include "MatrixCascade.h"
-// This time we have more than one device. 
-
 
 // pin 12 is connected to the DataIn 
 // pin 11 is connected to the CLK 

                matrix.set(row, col, random(2));
            }
        }
    }
    cascade.invert();
    delay(50*delaytime);

    // Rotate some matrixes
    cascade[1].setRotation(2);
    cascade[2].setRotation(2);

    // Init random sequense
    randomSeed(millis());
}


void loop()
{ 
    for(auto &matrix: cascade) {
        for(auto &row: matrix.rows()) {
            for(auto &col: matrix.cols()) {
                delay(delaytime);
                matrix.set(row, col, random(2));
            }
        }
    }

    // Invert all matrixes on cascade
    cascade.invert();
    delay(50*delaytime);

