Water flow LED Cube

Hello, gammerx. I hope this response is in time to help. I think what you need to look up is "Charlieplexing". That is how most of the LED cubes are done, and it is a way to control a lot of LED's with the minimal amount of pins. You can light one LED, All of them, Or any pattern.
Hope this helps.
Jay