I'm out of memory? Is the next thing up the Mega644P?

Thanks to both of you! Is the Arduino IDE support for the 1284 the same as for the 644?

WildBill, the code is fairly convoluted (as stated before, I don't know what I am doing), but I have posted it up on Github (mainly as a back up for me in case my macbook craps out). It would be great if you would care to work your way through it to see if there are any major savings to be had. Memory wise I am fine until I add the SD library. I know there are some trimmed down versions but it would still be close and I would just like a bigger pool to swim in so that I can add more features.

It is located here: