Waveshare 1.5in OLED SSD1351 intermittent issues
See original GitHub issueFirstly thanks for taking the time to file an issue. Chances are, you are not the first (and wont be the last) to have this problem: By creating a public issue, others can browse and solve their issues - possibly in a self-service style - just by reading the discourse on your ticket, so try and be clear in the describing the problem you have.
Secondly, github issues are not just for raising problems - if you have a question, a documentation fix, or suggested improvement, please get in touch.
Lastly, there are a number of related LUMA projects - please check to make sure to create the issue in the right GitHub repository.
The module I have been trying out is a Waveshare 1.5in OLED 128x128 unit. Available from USA Amazon here: https://www.amazon.com/gp/product/B07D9NVJPZ/ref=oh_aui_search_detailpage?ie=UTF8&psc=1 Also, Waveshare documents are available from: Wiki : www.waveshare.com/wiki/1.5inch_RGB_OLED_Module
Type of Raspberry Pi
Not all Pi’s are equal at the hardware level - what works on one, might not work on the next. This library has been tested on every variant except the RPi3.
Currently testing on Pi 3B+
Linux Kernel version
Paste in the output from running
uname -a
at the command line on your Pi.
uname -a Linux raspberrypi 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux
Expected behaviour
Add a few concise notes about what you are expecting to happen. Even better, if you paste in a code sample that demonstrates what you want to achieve.
I’ve been trying out the SSD1351 luma.oled driver in some python code for testing, but seeing intermittent results. I believe I’ve worked through all the wiring and setup issues, and the module is sometimes working properly. But then other times it will not display anything, or the display will display junk.
I have some local code that works at times, then does nothing sometimes, so I went back to the demos. For example, the invaders.py seems to work perfectly at times, filling the display and animating properly. But other times it is half size, corrupted, or black display with nothing.
I am running it with: python invaders.py -d ssd1351 -i spi --height 128 output: Version: luma.oled 2.4.1 (luma.core 1.7.2) Display: ssd1351 Interface: spi Dimensions: 128 x 128
My module is wired as 4-wire SPI.
Actual behaviour
Now add some details about what actually happened - if there is an unexpected crash, paste in the traceback info.
I also tried the Waveshare demo code linked in their documentation above. I thought maybe the display or wiring was bad, even though it sometimes works correctly. But when using the Waveshare demo, called main.py in their sample download, the display always seems to work.
This makes me think the luma.oled ssd1351 driver has an initialization problem. I have not reviewed both sets of code to determine differences, but wanted to post some details in case others struggle with this display as I have been.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Hello, I’m currently using the same OLED display. The luma.oled code did not work for me but everything worked fine with the waveshare initialization. I looked a little bit into the source and found that waveshare did send some additional initialization bytes. Since it was not fully documented, I’m not sure what all of those mean. Additionally they defined some constants but did not use them but wrote the numbers directly … 😦
The Waveshares demo code is here: https://www.waveshare.com/wiki/1.5inch_RGB_OLED_Module
It is the SSD1351 display.
waveshare:
luma.oled:
There is either another firmware on the chip or something else … Not really sure.
I would like to use luma.oled but my display isn’t even reacting …
I’ve tested this display with luma some more and I believe my issues where either power or the module connector issues. Using shorter USB cables and making sure the supplied connector for the waveshare board is fully seated has made display reliable again. I’m going to close this issue.