After 6 month laying on the desk the first oled is dark and show no pixel.
I ordered a new on ebay but it shows pixel on the left side.
Can i solve this problems or need another on ?
Thx
Oled Problem
-
- Posts: 142
- Joined: Mon Feb 08, 2021 10:10 pm
- Location: Scotland
- Has thanked: 47 times
- Been thanked: 50 times
Re: Oled Problem
I don't know what you are using in the code - but it may be worth trying a slightly different oled.init line in your program.
i.e. oled.init 0,1
i.e. oled.init 0,1
Re: Oled Problem
I2C.SETUP 21, 22
OLED.INIT 1 ,0 ' init the OLED upside-down ' changed and it works
OLED.CLS ' clear the screen
OLED.FONT 2
OLED.COLOR 1
OLED.PRINT 0,0, "HELLO WORLD"
OLED.COLOR 1
for r = 0 to 128
for t = 0 to 128
oled.pixel t,r
next
next
end
thx a lot
OLED.INIT 1 ,0 ' init the OLED upside-down ' changed and it works
OLED.CLS ' clear the screen
OLED.FONT 2
OLED.COLOR 1
OLED.PRINT 0,0, "HELLO WORLD"
OLED.COLOR 1
for r = 0 to 128
for t = 0 to 128
oled.pixel t,r
next
next
end
thx a lot
-
- Posts: 142
- Joined: Mon Feb 08, 2021 10:10 pm
- Location: Scotland
- Has thanked: 47 times
- Been thanked: 50 times
Re: Oled Problem
That's good. It has caught me out in the past and the help is not very clear on the subject - but I believe it is for different oled driver chips - maybe SSD1306 or SH1106.
- Electroguard
- Posts: 852
- Joined: Mon Feb 08, 2021 6:22 pm
- Has thanked: 273 times
- Been thanked: 321 times
Re: Oled Problem
Sometimes I've needed to add an offset to the horizontal coordinates to compensate on some displays.
Originally it was also possible to use a negative offset, but I seem to remember a driver update causing halt on error if x + offset < 0.
Originally it was also possible to use a negative offset, but I seem to remember a driver update causing halt on error if x + offset < 0.