I went back through the code, and cleaned things up, and wrote better comments, and changed the data a bit. it now has a small sample of spinning and flipping planes of LEDs.
This cube uses 20 transistors(2n2222), and 20 resistors(8 270ohm 8 100ohm, 4 150ohm), and 64 RGB LEDs. I used 2n2222 NPN transistors with common cathode LEDs, but it can be built with MOSFETs instead of BJTs, it could also be built with ULN2003 chips, or even a combination of MOSFETs, BJTs, and/or ULNs.
If you have common anode LEDs, you will need to use PNP transistors, and change the code a bit (turn HIGHs to LOW, and LOWs to HIGH.
TransistorCubeBitPatternProgram (14.7 KB)