question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run the library on SSD1327

See original GitHub issue

Type of Raspberry Pi

RPi 3 B+

Linux Kernel version

Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux

Expected behaviour

The examples on SSD1327 should run fine. It works in SPI mode but not in I2C mode.

Actual behaviour

The device is not being detected.

pi@raspberrypi:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
pi@raspberrypi:~ $ lsmod | grep i2c
i2c_bcm2835            16384  0
i2c_dev                20480  0

Things I tried

I believe the I2C is setup properly because I ran a test with an i2c circuit using an Arduino as a slave (cf. https://radiostud.io/howto-i2c-communication-rpi/) and i2cdetect was able to find the device.

I also know the I2C device works because I was able to control it using an ESP32 and the U8g2 library. I have two of these devices: both of them work with the ESP32, none of them work on the Pi.

I also tried to change my wires just to make sure, but without any success.

I also tried to change from 3.3V to 5V as Vcc (the SSD1327 can support it) but it also did not change anything.

Wiring

Here is how my device is wired:

SSD1327    RPi3
-----------------------
GND            pin 6
Vcc              pin 1
SDA             pin 3
SCL             pin 5

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ssarna1commented, Jan 1, 2022

I have the same exact problem as @zsmith-ustc. I have confirmed the display itself working with Arduino and U8G2 library, but other libraries did not worked for me. I came across some other posts stating that some of the displays are not sending ACK back to master device, can this be the cause? If so, can the library get away with not getting ACK signal?

1reaction
sofiancommented, Mar 3, 2020

@thijstriemstra We have made tests with another model that has SPI jumper (it is SPI by default) and it was working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSD1327 Unable to initialize OLED - Adafruit forums
"Unable to initialize OLED" error while trying to use an Adafruit SSD1327 ... Your options are to use another library like Larry's SSD1327...
Read more >
Can't start Chinese OLED 1.5" 128x128 SSD1327 - Displays
I tried to start it using adafruit ssd1327 library examples (with an Arduino UNO initially) and the recommanded connection:.
Read more >
i2c communication problem with SSD1327 OLED display on a ...
However, whenever I try to use any examples, or run the library from my own code, it always throws an error that it...
Read more >
I2C SSD1327 OLED Display Python Driver?
They work fine with Arduino but not with Raspberry Pi. Any ideas? Looking for a nice Python 3 library. The Luma library doesn't...
Read more >
SSD1327 4-bit greyscale OLED displays
https://github.com/mcauser/micropython-ssd1327 ... Thanks for the ssd1327 library. ... But I can't use the full size of display.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found