     }
   }
 }
-
-
 
 void patternRandomLED(int repetitions){
   int i, x, y, z;

   render(1000);
   */}

void print(char ch)
{
  byte b;
  // make sure the character is within the alphabet bounds (defined by the font.h file)
  // if it's not, make it a blank character
  if (ch < 32 || ch > 126)
    ch = 32;
  // converts the ASCII number to the font index number
  ch -= 32;
  // step through each byte of the character array
  for (int i=0; i<charWidth; i++) {
    b = font[ch][i];
    // bit shift through the byte and output it to the pin
    for (int j=3; j>=0; j--)
      cube[i][j][3] = !!(b & (1 << (3+j)));
    for (int k=2; k>=0; k--) 
      cube[i][0][k] =  !!(b & (1 << k));
  }
}


void patternThrowDice(){
  //print(random(6));

// - prints characters to your Arduino LED cube
// - own font types can be created with the
//   the file BitFont_Generator_for_ArduinoLEDCube4x.xls
// - Multiplexing with a maximum of
//   16 LEDs turned on at any time
//
// Instructions for building the 4x4x4 cube are 
// available e.g. here
