Problem using u8glib with 12832 oled

I bought a spi oled 12832 from chinese taobao,but i wonder how to wiring it with only 5 pins, i tried to google it but no result

GND -> GND
VCC -> 3.3V
DIN -> MOSI ??
CLK -> SCK ??
DC -> how about DC ?

and which driver should i choose ? many thanks

p/s: sorry for my bad engish

Rick

Hi

DC is usually refered as A0 in u8glib.
Try this interface with u8glib:

U8GLIB_SSD1306_128X32(sck, mosi, cs, a0 [, reset])

SCK -> CLK
MOSI -> DIN
DC -> A0
But i do not know what do to with CS signal. Maybe leave it open and use U8G_PIN_NONE in the constructor.

Try to get the datasheet for this OLED to confirm that this is a SSD1306 controller.

Oliver

thanks for your reply, cant work with your suggestion, nothing changed

this is the datasheet i get it from supplier

Rick

Still i do not see the controller type. Without the controller name it is difficult to say how to control the device.
Also the CS signal has been tied to GND. I have never seen this and it might lead to corrupt data transfer.

Oliver

SSD1306 in the product description, seems i have to get a new oled :grinning:

On the u8glib gallery page, i placed some pictures of far east OLEDs.
https://code.google.com/p/u8glib/wiki/gallery

Search for an OLED that looks similar (with respect to the number of pins) to those on the gallery page.

Oliver