Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4474

Other projects • I2C 128x128 OLED display problem.

$
0
0
Hi all

i have bought 128x128 OLED display which i sort of got to work. This is SSD1327 (ZJY-M150-128*128-4P). The problem i have with this display is that it is very dark compared to my other 128x64 SH1106 display. The test script i have used so far is:

Code:

#!/usr/bin/pythonfrom luma.core.interface.serial import i2cfrom luma.core.render import canvasfrom luma.oled.device import ssd1327from PIL import ImageFontfrom time import sleepserial=i2c(port=1, address=0x3C)device=ssd1327(serial, width=128, height=128, mode='1')font1=ImageFont.truetype("/root/oledfont.ttf", 64)device.contrast(255)with canvas(device) as draw: draw.text((0, 0), ("test"), fill="white", font=font1)sleep(10)
Of course font does exist in place where it is stated.

One thing worth mentioning is that when i connect that display to 3V the script is being executed without errors but nothing lights up on the screen. On 5V you can see the 'test' text but it is very dark.

I have tried on two RPi's. RPi3B+ and RPi5. Both on official power supplies.

I know that this display has some bits of greyscale but I have no clue if that may be the cause of my problem and i cannot figure out how to control it.

Does anyone know how to make this display to be as bright as my other smaller OLED display?

I am attaching some pictures of that display:
20241113_014605_result.jpg

20241113_014552_result.jpg

Statistics: Posted by 4k3or3et — Wed Nov 13, 2024 12:59 am — Replies 0 — Views 38



Viewing all articles
Browse latest Browse all 4474

Trending Articles