-  // This code is for controlling the
-  // 64 LEDs of a 4x4x4 LED cube via
-  // an Arduino Uno and its 20 pins.
-  // 16 columns and 4 layers.
-  // Main features of this implemenation:
-  // - print characters to your Arduino LED cube
-  // - several font types and font animations  available
-  // - Multiplexing to ensure that a maximum of
-  //   16 LEDs is turned on at any time
-  
-  
-  // Adjust the column and layer numbers below
-  // to the physical connection of your LED cube to your
-  // Arduino pins.
-const int layer[2] = {A0,A1};
+// This code is for controlling the
+// 64 LEDs of a 4x4x4 LED cube via
+// an Arduino Uno and its 20 pins.
+// 16 columns and 4 layers.
+// Main features of this implemenation:
+// - print characters to your Arduino LED cube
+// - several font types and font animations  available
+// - Multiplexing to ensure that a maximum of
+//   16 LEDs is turned on at any time
+//
+// Instructions for building the 4x4x4 cube:
+// http://www.instructables.com/id/LED-Cube-4x4x4/
+
+// Adjust the column and layer numbers below
+// to the physical connection of your LED cube to your
+// Arduino pins.
+
+const int layer[4] = {
+  A0,A1,A2,A3};
 const int column[16]={
   0,1,2,3,4,5,6,7,8,9,10,11,12,13,A4,A5};
 const int DELAY = 5; //Delay between cube layer alternations, in milliseconds. 

  }
}

//turn all LEDs on
void fillCube(){
  int i, j, k;
  for(i=0;i<4;i++)

}

void patternSpiralTop(int repetitions){
  for (int i=0;i<repetitions;i++){
    for (int l=0;l<4;l++){
      for (int k=0;k<4;k++){
        for (int j=0;j<4;j++){
          cube[j][k][l] = 1;
          render(100);
          cube[j][k][l] = 0;
          render(100);
        }
      }
    }
  }
}

void patternSpiralBottom(int repetitions){
  for (int i=0;i<repetitions;i++){
    for (int l=3;l>=0;l--){
      for (int k=3;k>=0;k--){
        for (int j=3;j>=0;j--){
          cube[j][k][l] = 1;
          render(100);
          cube[j][k][l] = 0;
          render(1);
        }
      }
    }
  }
}

