DUE + u8glib + ssd1325 (NHD 12864 OLED) = slow refresh rate :( ---FIXED!---

i have got it working, i haven't tried the analog changes yet, but i am satisfied with the results so far, it is very fast now.

Trick was to leave the first two pins SCK and MOSI undefined, so
U8GLIB_NHD270LED_2X_GR u8g(pin, pin);

at first i tried to use pin 4 as CS, as it is one of the HW SPI pins, that didn't work very well so I changed it to 10, and BAM!, thng works awesome.

so right now i have it set as:
U8GLIB_NHD270LED_2X_GR u8g(10,9). SCK and MOSI pins are 3,4 of the ICSP header respectively
and its working great.

Thanks for all your help and your detailed responses, means a lot to a newb like me.

I'll play with the analog read code more tomorrow, but right now i have to call it a night.

thanks again!