SPI 0.91" 128x32 5 pin GND VCC DIN CLK DC

Hello guys and girls

I have try to connect my SPI 0.91" 128x32 5 pin display to my uno board with no luck.
i have look all over the internet but theres nothing usefull, så hope you can help me wire my display to my uno. I have 5 pin's VCC (5v) GND (-) DIN,(?) CLK,(?) DC.(?)

++ Anyone now where to find a code to start with?

Morten

Post a link to the display so we can see what you have. There are a number of things you need to do right to get a display to work:

  1. Connect the correct Voltage (usually 5V or 3.3V)
  2. Drive it with the correct logic levels (5V or 3.3V depending on display driver + any circuit board electronics
  3. Use correct driver library
  4. Use correct configuration of library (pins used, interface used (SPI/parallel 8/16 bit) driver, screen size etc)
  5. Make correct connections between Arduino and display
  6. Power the backlight LEDs is needed (not needed for OLED displays)
  7. Reset display at start up (usually handled by library)

When all these are right the displays work providing they have not been damaged in some way by badly connecting it up at some point in the past.

So we need to know exactly what your display is (there are lots of variants) and your intended setup (which Arduino will it be connected to) is because not many forum users have extrasensory perception.

Sorry for the missing link

Her the link to my oled

http://m.ebay.com/itm/SPI-0-91-quot-128x32-White-OLED-LCD-Display-Module-AVR-PIC-for-Arduino-DC-3-3-5V-/201493774341?txnId=1334271167010

Unfortunately the seller does not provide much information. However it is likely to use a SSD1306 chip so you can use the library here with the SPI example.

DIN: connect to MOSI which is pin 11 on the UNO
CLK: connect to SCK which is pin 13 on the UNO
DC: is the data/command select line so connect to pin 6 to use the Adafruit library

The display does not need Chip Select or RESET but to use the Adafruit library you do not need to connect those pins (7 and 8 ).

Use hardware SPI in the do the pin settings in the "ssd1306_128x32_spi" example would be:

#define OLED_DC 6
#define OLED_CS 7
#define OLED_RESET 8
Adafruit_SSD1306 display(OLED_DC, OLED_RESET, OLED_CS);