text: Step.
  /*);
  }
  }
  for (int i=0; i // Iterate through x and y. should read:
  for (int i=0; i < iterations; i++)
  Otherwise works well. ;-)
  Did you ever get the MEGA 2560 R3 to work? My UNO works fine but the source code does not work for the MEGA 2560 R3.
  Hey Instructables gang,
  I have created the code that allows the cube to run on the Arduino MEGA 2560. It's a simple fix and easy to follow. See below. Just change the code originally given by CHR to my code and the cube works great. Only includes 5 effects but you can add your own. Cheers!
  // Rewrite of CHR's 8X8X8 LED Cube written for Arduino UNO. This sketch works for the MEGA 2560.
  // This sketch cleans up issues with pin assignment differences between UNO and 2560.
  // Wire the cube using the folowing parameters:
  //
  // Original sketch uses PORT C for layer select. I do too but use pins 37 (bit 0) thru 30 (bit 7).
  // Original sketch uses PORT D for DATA. I use PORT A pins 22 (bit 0) thru 29 (bit 7).
  // Limitations on available pins caused software to be written that is unnecessary on the MEGA.
  // Use PORT L for Chip Select and Chip Enable (clock) pins;
  // Digital pins 49, 48, and 47 (LSB to MSB) for the Chip Select, Digital pin 46 for the clock pin
  #include <avr/interrupt.h>
  #include <string.h>
  #define AXIS_X 1
  #define AXIS_Y 2
  #define AXIS_Z 3
  volatile unsigned char cube[8][8];
  volatile int current_layer = 0;
  void setup()
  {
  int i;
  for(i=0; i<14; i++)
  pinMode(i, OUTPUT);
  // pinMode(A0, OUTPUT) as specified in the arduino reference didn't work. So I accessed the registers directly.
  DDRC = 0xff;
  DDRA = 0xff;
  DDRL = 0x0f;
  PORTC = 0x00;
  PORTA = 0x00;
  // Reset any PWM configuration that the arduino may have set up automagically!
  TCCR2A = 0x00;
  TCCR2B = 0x00;
  TCCR2A |= (0x01 << WGM21); // CTC mode. clear counter on TCNT2 == OCR2A
  OCR2A = 10; // Interrupt every 25600th cpu cycle (256*100)
  TCNT2 = 0x00; // start counting at 0
  TCCR2B |= (0x01 << CS22) | (0x01 << CS21); // Start the clock with a 256 prescaler
  TIMSK2 |= (0x01 << OCIE2A);
  }
  ISR (TIMER2_COMPA_vect)
  {
  int i;
  // all layer selects off
  PORTC = 0x00;
  PORTA = 0x00;
  PORTL &= 0x0f;
  PORTL |= 0x08; // output enable off.
  for (i=0; i<8; i++)
  {
  PORTA = cube[current_layer][i];
  PORTL = (PORTL & 0xF8) | (0x07 & (i+1));
  }
  PORTL &= 0b00110111; // Output enable on.
  PORTC = (0x01 << current_layer);
  current_layer++;
  if (current_layer == 8)
  current_layer = 0;
  }
  ola alguém pode mim ajudar com a pinagem para ligação do Arduíno uno, pois ja montei todo o cubo e nao sei como ligar no arduino.
  oui j' ai trouvé la solution , c' été un probléme de masse
  OMG lots of soldering!!! So glad I got mine finished! Great Instructable!
  Hi, I connected my cube to an Arduino Uno R3. Everything seems to have power but no LEDs are turing on. Any idea what the problem may be?.
  Thanks Maewert.