       }
     }
   }
-}+}
+
+
+
+
+
+

  // 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};
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. 

  }
}

// Function to draw cube map for specified number of milliseconds. 
// Alternates betwween layers for multiplexing.
// Draws the current binary cube matrix to the Arduino for 'pausetime' milliseconds.
void render(int pauseTime){
  long timer = 0;
  while(timer<=pauseTime){
    for (int k=0;k<4;k++){  // turn on only one layer of LEDs at a time
      digitalWrite(layer[k], LOW);
      for (int i=0;i<4;i++)
      {
        for (int j=0;j<4;j++)
        {
          if(cube[i][j][k] == 1){
            digitalWrite(column[i +4*j], HIGH);
          }
          else{
            digitalWrite(column[i +4*j], LOW);
          };
        }
      }
      delay(DELAY);
      digitalWrite(layer[k], HIGH);
    }
    timer += DELAY * 4;
  }
}

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