I'm having trouble getting an OLED I2c display to work

So far I can't get the example sketch to compile.

This is the OLED display I bought:
http://www.ebay.com/itm/191785893008?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

I have it wired to VCC - 3.3v, gnd - gnd, SCL - A5, SDA - A4 on my Arduino Uno

The I2C address for my OLED is 0x3C

I downloaded these libraries:

I had to change to name to remove special characters but they are now in my libraries folder

I opened example: ssd1306_128x64_i2c
I changed display.begin(SSD1306_SWITCHCAPVCC, 0x3D); to display.begin(SSD1306_SWITCHCAPVCC, 0x3C);

When I click verify, I get :
ssd1306_128x64_i2c.ino:54:2: error: #error ("Height incorrect, please fix Adafruit_SSD1306.h!");

Any suggestions?

There are a number of I2C libraries out there, but I don't know which ones work with an OLED. You might try investigating those display libraries to see if one supports your particular OLED. You can always download them and try their examples to see if one works.

Height incorrect, please fix Adafruit_SSD1306.hThat might bear looking into.

I can't even get this example to compile to know if it works or not.
It doesn't know what display I have yet.

This is in the code:

#if (SSD1306_LCDHEIGHT != 64)
#error("Height incorrect, please fix Adafruit_SSD1306.h!");
#endif

So, what is the value of SSD1306_LCDHEIGHT ?

In the Adafruit 1306.h file the defaualt settting is for 128x32 , therefore needs commenting out and the 128x64 ,uncommented ..............

Thanks so much. I will give that a try.

I found this library and I have the display working now OLED_I2C - Rinky-Dink Electronics

Thanks for the help

I got the adafruit library working

On the Adafruit_SSD1306.h file I changed it to:

#define SSD1306_128_64
// #define SSD1306_128_32
// #define SSD1306_96_16

at first the 32 one was uncommented

Thanks for your help