This was copied from a 3x3x3 cube code generator. It doesn't work correctly but I want to save it to figure it out and fix. This reason it doesn't work, I believe, is that I'm using it on at 3x3x3 led cube kit i purchased from radio shack. The cube works correctly with their code.