4

I recently got myself an SSD1306 OLED display: SSD1306 OLED display

I haven't been able to successfully wire it to an Arduino (Mega 2560) however. I have been reading up on I2C and SPI and checked some libraries from Adafruit and U8G2.

However, I'm confused, since most of the Internet is talking about a similar OLED display with GND - VDD - SCL - SDA labelled pins, where mine has SCK instead of SCL.

Now, the number of pins make me believe I need to interface with I2C, but the SCK label points to SPI, right?

One person seemed to have the same problem as me, but the solution he got (pull-up resistors) didn't do the trick for me, I'm afraid.

So, my question remains: how to wire this OLED display to the Mega 2560?

Much appreciated if someone could point me to the right direction.

Thanks!

dda
  • 1,595
  • 1
  • 12
  • 17
Bart Van Loon
  • 145
  • 1
  • 1
  • 6

3 Answers3

8

SCK and SCL are the same thing.

  • Serial ClocK
  • Serial CLock

They seem to be interchangeable. The fact you have SDA (Serial DAta) as opposed to separate SDI / SDO or MOSI / MISO pins means it's I2C.

Wire it like you would any other I2C device.

Majenko
  • 105,851
  • 5
  • 82
  • 139
1

I have what appears to be the same display (GM009605 v4) and while both SCL and SCK both stand for Serial Clock many development boards have different SCK and SCL pins that you'd need to interface. On a Wemos d1 mini for example I have this display plugged into SDA => D2 & SCK => D5 where as if it was SCL it would to to D1.

FWIW I use the Wire.h and SSD1306.h libraries (https://github.com/ThingPulse/esp8266-oled-ssd1306) to interface with the display using the Wemos D1 mini.

0

If there is no chip select pin then it is a I2C device, like the one you showed. If there is an extra pin that is used as chip select (often shown as /CS or /CE or /SS) then it is a SPI device. (like the one I want you to show here) https://opencircuit.be/product/oled-display-128-x-64-spi-wit