u8glib icon indicating copy to clipboard operation
u8glib copied to clipboard

1.3" OLED skipping lines

Open derekr27 opened this issue 9 years ago • 18 comments

Hi there - bought an I2C SH1106 1.3" OLED from Creatron Inc in Canada (only OLED they sell). It worked fine so I removed it for a while. When I next hooked it up it seems to be skipping every other line. Am using Arduino IDE 1.6.7.

A 0.96" OLED substituted in it's place works perfectly, no skipped lines.

Here's a link: https://www.creatroninc.com/product/128x64-i2c-oled-display/

Anything I should check?

derekr27 avatar Jan 29 '16 23:01 derekr27

Hi,

I have the same issue with a SSD 0.96: it 128x64 using hardware SPI. Another similar module from another seller is working perfectly.

Initialised with: U8GLIB_SSD1306_128X64 u8g(8, 9, 10); Here is the image given: 20160201_132908

A little search gave me this link: http://forum.espruino.com/conversations/269330/

Several tests showed me that the even lines are those not displayed. eg: u8g.drawHLine(0,34,128); // is not displayed

I cannont know if it is a lib issue or a module issue.

For me it is a harware issue: the lower left part of the module is damaged. Same as this post: https://forums.adafruit.com/viewtopic.php?f=47&t=34422

flav1972 avatar Feb 01 '16 12:02 flav1972

Thanks for that, flav1972. I'm in the same boat as you - I checked the display carefully and there is damage in the lower left so I suspect I, too, have severed traces.

derekr27 avatar Feb 04 '16 23:02 derekr27

hmm... so i guess this not a lib problem and the issue can be closed.

olikraus avatar Feb 07 '16 16:02 olikraus

for me you can close

flav1972 avatar Feb 07 '16 18:02 flav1972

I think so as it did work before. I’ve ordered another so will know for sure when it arrives.

Thanks

Derek

From: olikraus [mailto:[email protected]] Sent: Sunday, February 7, 2016 12:36 PM To: olikraus/u8glib [email protected] Cc: derekr27 [email protected] Subject: Re: [u8glib] 1.3" OLED skipping lines (#385)

hmm... so i guess this not a lib problem and the issue can be closed.

— Reply to this email directly or view it on GitHub https://github.com/olikraus/u8glib/issues/385#issuecomment-181045305 .

derekr27 avatar Feb 08 '16 15:02 derekr27

Try to replace the sh1106 constructor with some ssd1306 constructor. I experienced 2 pixels shifting on the x axis, and replacing sh1106 woth ssd1306 worked for me

cunidev avatar Feb 13 '16 22:02 cunidev

I have same issue. I have checked library for height and used around 4-5 other libraries other than adafruit. should I believe my cheap module to be faulty ? or coding problem, If i remember correctly, it worked when i bought it few months ago attached are adafruit and U8 library demos img_20170212_082426

u8-library-menu-example-with-ssd1306-no-ack

Ariffffff avatar Feb 12 '17 17:02 Ariffffff

@derekr27

Any updates on oled

Ariffffff avatar Feb 12 '17 17:02 Ariffffff

Can you try this with u8g2? Better also create an issue there.

olikraus avatar Feb 12 '17 17:02 olikraus

thanks, sure thing, rightaway

Ariffffff avatar Feb 12 '17 17:02 Ariffffff

This problem usually occurs if the display is broken, especially the bottom part (where there is no screen but glass). If anyone have a solution, do not hesitate to share with us!

zsoltmazlo avatar Mar 15 '18 22:03 zsoltmazlo

all the modules in the pictures are broken. => Hardware issue (the connections are transparent in the glass).

flav1972 avatar Aug 17 '18 11:08 flav1972

Guys, it's not broken. I just picked up my first OLED and it was skipping lines. Tutorials were telling me the library needs to be edited, but that's old pre-update information. Here's the real problem...

The Adafruit example sketch for 128x64 is broken. Use the 128x32 example sketch and change:

#define SCREEN_HEIGHT 32 to #define SCREEN_HEIGHT 64 and it works fine.

I really hope I'm not the first person to figure this out... People have probably been throwing away perfectly good OLEDs.

jians5 avatar Jan 24 '19 16:01 jians5

Mine was broken. And even new failed shortly. Horrible option to use in audio projects due to internal switching creating lot of noise. 2 bad experiences. Ill srick with 16x2 and nokia for now

On Thu, Jan 24, 2019, 9:52 PM jians5 <[email protected] wrote:

Guys, it's not broken. I just picked up my first OLED and it was skipping lines. Tutorials were telling me the library needs to be edited, but that's old pre-update information. Here's the real problem...

The Adafruit example sketch for 128x64 is broken. Use the 128x32 example sketch and change:

define SCREEN_HEIGHT 64 to #define SCREEN_HEIGHT 64 and it works fine.

I really hope I'm not the first person to figure this out and people have been throwing away perfectly good OLEDs.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/olikraus/u8glib/issues/385#issuecomment-457271237, or mute the thread https://github.com/notifications/unsubscribe-auth/AYhnd3vjCtIoSQfVTGTnDKKfPtM8IdmOks5vGeTkgaJpZM4HPoyZ .

Ariffffff avatar Jan 24 '19 17:01 Ariffffff

OK - Just wanted to leave it here for future visitors looking for solutions.

BTW, Were you aware that you can put a 10k pullup resistor each the SCL and SDA ports to stabilize them? No more screen locking!

jians5 avatar Jan 24 '19 18:01 jians5

Indeed its broken I also fioud out the cause of mine skipping lines and it happened without me noticing after trying to fit the screen in a 3d printed case that it stuck into and i pulled it with force.

CriusDigitalStudio avatar Jan 11 '22 14:01 CriusDigitalStudio

Yep, three years later and I've finally come across a broken one skipping lines. Not sure what I did to it, but replacing it fixed it without modifying the code.

However, even now, uploading the 128x64 example sketch causes my new OLEDs to skip lines. Maybe it's the nature of the cheap screens I have, but they need to be set to address 0x3C to work properly. The 128x64 example sketch has the address set to 0x3D which causes line skipping for these OLEDs.

jians5 avatar Jan 11 '22 15:01 jians5

It would be cool to know how "u8g2" behaves here. The skipped line problem has been addressed in u8g2 with a special constructor.

olikraus avatar Jan 11 '22 16:01 olikraus