8x8x8 multiplexed LED cube with an Arduino Mega 2560

I could be mistaken but I think your 56ohm resistors should be closer to 100 ohm (or maybe 91?) assuming you are running them at 5v, and VF 20ma is at 3.3v.

I cant help you with the other stuff...