Go Down

Topic: (Solved) Oled fails on example code (Read 78 times) previous topic - next topic

bluejets

Mar 11, 2019, 09:52 am Last Edit: Mar 12, 2019, 05:49 am by bluejets
I have this 128 x 64 Oled on i2c which works fine on 128*32 example code in the IDE but nothing shows when I load the 128*64 example.

The program appears to load ok without any errors I can make out.

I tried to include the example code from the ide but the web site threw up an error about more than 9000 words.

Example code is for Adafruit_SSD1306

Arduino is a promini.



Oled ...... https://www.ebay.com.au/itm/Yellow-Blue-White-0-96-128X64-OLED-I2C-IIC-Serial-LED-LCD-SSD-Display-SSD1306/192542843809?hash=item2cd472a3a1:m:mlP_0b2_tPO1-CdVo2jzK7w&frcectupt=true



bluejets

Found it...... this line in setup was at x03D instead of x03C

Code: [Select]
if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3c)) { // Address 0x3D for 128x64

exaustgas

Weird! Where do you suppose that came from? The default address is x03c and I would imagine the adafruit library comes preloaded with that.

Go Up