Nokia 3510i LCD 9bit SPI running as 8bit

It looks like a different controller but identical functions. The key thing is that any incomplete commands are ignored when the CS is pulled. It would probably even use the identical code with just the Commands enum and Init changed.

This is the code I have worked out so far.
[url]http://dl.dropbox.com/u/3647376/Nokia3510.zip[/url]

The buffer is scalable and only has to be large enough to hold all the commands to draw the current address frame. It still works if it’s smaller but the update isn’t as smooth. The small buffer is 54 bytes because the speed increase seems inverse square to the number of stages so it doesn’t really matter that much after 3.