Code and explanation for a 4x4x4 Led Cube controlled by a Raspberry Pi. An ADXL345 Accelerometer chip is also hooked up to the Raspberry Pi for certain animations