I've used 12864 displays, but not with u8glib. According to [mssystems.emscom.net], the pin numbers you pass to u8glib need to be connected to the EN, RW and RS pins of the 12864 display in that order. You also need to put the display into serial mode by grounding the PSB pin, and you need to connect the RST pin to +5V unless you are driving it from another pin on the Mega.
↧