if(mult==2) { //Only update the screen every 3 interrupts
oldx=currball->xloc; //Save old position so it can be erased later
oldy=currball->yloc;

setxy(currball->oldx1,currball->oldy1); //Erase really old ball
write(0); // (2 pictures of each ball are on the
setxy(currball->oldx1,currball->oldy1+1); // screen at one time to minimize fading)
write(0);
setxy(currball->oldx1+1,currball->oldy1);
write(0);
setxy(currball->oldx1+1,currball->oldy1+1);
write(0);

currball->oldx1 = currball->oldx; //Move old position to really old position
currball->oldy1 = currball->oldy;

Thanks for posting that code, I'm sure someone will find it useful. Maybe I could take advantage of it also.

You probably know that 128x64 KS0108 displays are made of two 64x64 controllers. It seems that when you write something to one controller the commands go to the second also. CS pins are used to tell the controllers which one is enabled at a time. I didn't check the code very carefully but I think it should be ok unless you have made some changes to it. So maybe there's some problem with your wiring of CS pins. Did you find any information about the hardware connection used with this code ?

Hi!
Have you found the specs for the display?
I've bought one such thing myself and the supplier told me they can give me the specs, if I can't find them.
I didn't think i'm not going to find the stuff on the net, so i said no thanks.
But I can go back there and ask for the disk. If you still need the file, I can send it to you.