Waveshare SSD1351 display stays black using luma example
See original GitHub issueRelated 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:
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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
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:
sudo python3 demo.py -d ssd1351 -i spi --width 128 --height 128 --bgr
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?