Oled Test

Hi,
I have an Oled which I would like to test.
I have searched the web and cannot find a suitable test program with the pin Connections.
The pin Connections on the Oled are as follows:
GND
VCC
SCL
SDA
RST
D/C

128x64

I have found I2C for 128x64 in the Hallo World Sketch u8glib but I cannot find the correct pin conections for the Arduino uno or Arduino Pro Mini.

Can somebody please put me on the right track.
Thank you.

Paul

It is always wise to post a link to the actual Ebay sale item rather than your own photos.
Of course you should make sure that the item in your hand matches the photos in the link exactly.

Those modules either use a SSD1306 or a SH1106 controller.

//U8GLIB_SSD1306_128X64 u8g(13, 11, 10, 9); // SW SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SSD1306_128X64 u8g(4, 5, 6, 7); // SW SPI Com: SCK = 4, MOSI = 5, CS = 6, A0 = 7 (new white HalTec OLED)
//U8GLIB_SSD1306_128X64 u8g(10, 9); // HW SPI Com: CS = 10, A0 = 9 (Hardware Pins are  SCK = 13 and MOSI = 11)
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); // I2C / TWI 
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0|U8G_I2C_OPT_NO_ACK|U8G_I2C_OPT_FAST); // Fast I2C / TWI 
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK); // Display which does not send AC
//U8GLIB_SSD1306_ADAFRUIT_128X64 u8g(13, 11, 10, 9); // SW SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SSD1306_ADAFRUIT_128X64 u8g(10, 9); // HW SPI Com: CS = 10, A0 = 9 (Hardware Pins are  SCK = 13 and MOSI = 11)
//U8GLIB_SSD1306_128X32 u8g(13, 11, 10, 9); // SW SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SSD1306_128X32 u8g(10, 9);             // HW SPI Com: CS = 10, A0 = 9 (Hardware Pins are  SCK = 13 and MOSI = 11)
//U8GLIB_SSD1306_128X32 u8g(U8G_I2C_OPT_NONE); // I2C / TWI 
//U8GLIB_SH1106_128X64 u8g(13, 11, 10, 9); // SW SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SH1106_128X64 u8g(4, 5, 6, 7); // SW SPI Com: SCK = 4, MOSI = 5, CS = 6, A0 = 7 (new blue HalTec OLED)
//U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NONE); // I2C / TWI 
//U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_DEV_0|U8G_I2C_OPT_FAST); // Dev 0, Fast I2C / TWI
//U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NO_ACK); // Display which does not send ACK

If your board is configured for I2C:
I would guess that you connect SCL to the Uno's I2C hardware SCL pin (A5)
And SDA to SDA pin (A4)

If your board is configured for SPI:
Connect to the hardware SPI pins (13, 11) and RESET, D_C, CS to GPIO pins. e.g.

All the constructors allow you to add the RESET pin e.g. I connect my SSD1306 in SPI mode

U8GLIB_SSD1306_128X64 u8g(10, 9, 8); // + RESET HW SPI Com: CS = 10, A0 = 9 (Hardware Pins are  SCK = 13 and MOSI = 11)

GND     0V
VCC     3.3V
SCL     D13
SDA     D11
RST     D8
D/C     D9
CS      D10

Ah-ha. Your module has no CS (chip-select) pin. Heaven knows how that could work in SPI.

Note that all these displays are 3.3V only. Do not believe the Vendor's "Arduino compatible". This only applies to a 3.3V Arduino like an 8MHz Pro Mini or 84MHz Due.

David.

Thank you for your Kind help.

u8glibSSD1306_128X64 u8g(10, 9, 8); // + RESET HW SPI Com: CS = 10, A0 = 9 (Hardware Pins are SCK = 13 and MOSI = 11)
I cannot find this sentance in the list? Am I missing something?
I tried something similar and got a few dots on the Screen for the first time, but no hallo world.
It appears to be SPI and SSD1306.
Where can I get the sentance you are showing?

Thanks again
Paul

Like I said. How can SPI work without a CS pin?

Wait until this evening. Oliver will probably be able to help.

David.

Thank you David. I will wait.

Regards,

Paul

Hi once again,

Does nobody have any ideas how this OLED configurations works,
I have really searched the web and it is strange I can find no reference to this type of Oled.

Please help if you can.

Regards,

Paul

I do not have your module. I would never buy a module without a CS pin.

I presume that the CS pin is tied low.

Just copy my wiring (without CS) and use my constructor. Try it. Tell us what happens.

IMHO, all the TFT pins should require 3.3V logic. Of course there may be some series resistors on the actual TFT flexi-ribbon (hidden from view)
The SD card does have series resistors (R2, R3, R4)

I bet that there are many people with your module. Someone would have tried it.

David.