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.

Waveshare SSD1351 display stays black using luma example

See original GitHub issue

Related to https://github.com/rm-hull/luma.oled/issues/205 Using a different hardware manufacturer it’s not working unfortunately.

I’m using following module: 1 5inch RGB OLED Module

It works fine with the sample on https://www.waveshare.com/wiki/1.5inch_RGB_OLED_Module

I figured out that I connected GPIO-24 for DC and GPIO-25 for RST. Moreover the device is connected to CE0 for CS which is supposedly spi-device 0. I’m using RaspberryPi 4 B and Linux raspberrypi4 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux

With the luma example the display stays black.

pi@raspberrypi4:~/oled/luma.examples $ sudo python examples/demo.py -f conf/ssd1351.conf --framebuffer=full_frame --gpio-data-command=24 --gpio-reset=25 --spi-port=0 --spi-device=0
Version: luma.oled 3.3.0 (luma.core 1.12.0)
Display: ssd1351
Interface: spi
Dimensions: 128 x 128
------------------------------------------------------------
Testing basic canvas graphics...
Testing contrast (dim/bright cycles)...
Testing display ON/OFF...
Testing clear display...
Testing screen updates...

Here another configuration difference: In the waveshare example the baudrate is 9MHz :

#SPI init
SPI = spidev.SpiDev(0, 0)
SPI.max_speed_hz = 9000000
SPI.mode = 0b00

whereas in the ssd1351.conf it’s 16Mhz. I tried 8MHz without a difference.

Any ideas why luma example does not work although waveshare example does?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
tibergcommented, Jan 22, 2020

I have the same setup. I’m using the same SDD1351 and verified your wiring matches mine. Mine works. I agree. Check that each wire isn’t broken. If you don’t have a multimeter, then replace each wire one at a time until something happens. Here are the parameters I use: 60117939315__6E693EBB-C900-40B3-ACAF-A6AEC3AE9224

sudo python3 demo.py -d ssd1351 -i spi --width 128 --height 128 --bgr

0reactions
rm-hullcommented, Jan 21, 2020

Only thing I can suggest is to doublecheck the wiring, including the quality of the wires. It is more than likely to do with that. Have you tried a different driver as discussed in #205?

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.5inch RGB OLED Module - Waveshare Wiki
The built-in driver used by this OLED is SSD1351, which is a 128RGB * 128 Dot Matrix OLED/PLED controller with a 128*128*18bit SRAM...
Read more >
Customer reviews: 1.5inch RGB OLED Display Module ...
My own code in python with luma.oled would work perfectly sometimes, and then sometimes the display would not show anything, being completely black....
Read more >
latest PDF - Luma.OLED Documentation
In this example, we are using an I2C interface with a ssd1306 display. from luma.core.interface.serial import i2c, spi, pcf8574 from luma.core.
Read more >
Lowest Display Resolution? Wide 256x64 OLED Displays
I never tried a display of this size with zynthian. ... SSD1322 / SSD1325 / SSD1327 / SSD1331 / SSD1351 / SH1106 OLED...
Read more >
SSD1351 RGB OLED Waveshare 1.5Inch Display issue
Hey there! this is my first post, so please hang in there with me :slight_smile: I built a project for my car using...
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