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.

Random/noisy pixels regardless of what I try to print and the hardware settings

See original GitHub issue

Today I have received my Mono OLED 128x128 SPI Breakout. After installing on the SPI slot of my Breakout Garden and trying to run some sample code, however, I only get random noise on the screen:

img

This is some sample code I have tried:

from luma.core.interface.serial import spi
from luma.oled.device import sh1106
from luma.core.render import canvas

serial = spi(port=0, device=0, cs_high=True)
device = sh1106(serial, width=128, height=128, rotate=0)

with canvas(device) as draw:
    draw.text((0, 0), "Hello World", fill="white")
    input()

However, regardless of what I try to print, regardless of SPI settings, width/height and orientation, I always get noise.

I’m running the GitHub installation of luma.oled on a RPi4 with vanilla Raspbian, latest update:

Linux turing 5.4.51-v7l+ #1332 SMP Tue Aug 4 18:40:14 BST 2020 armv7l GNU/Linux

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rm-hullcommented, Aug 10, 2020

The fact that the DC line is on GPIO 9 is how Pimoroni chose to connect it on their breakout garden board - it is nothing to do with the sh1107 display.

I don’t think we need a pull request. I guess we’ve learnt that sh1107 128x128 OLED can be successfully driven with the sh1106 driver though

0reactions
thijstriemstracommented, Oct 7, 2020

I guess we’ve learnt that sh1107 128x128 OLED can be successfully driven with the sh1106 driver though

Shouldn’t this be documented though?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing M1 Mac External Display Issues (Flickering Screen ...
Disconnect and reconnect display cable​​ If the external screen is flickering or displaying white noise, you can try to disconnect and reconnect ...
Read more >
13 Common Printer Problems and How to Fix Them
Do a hard reset on your printer. To do this you just need to turn off your printer, unplug for a few minutes...
Read more >
NVIDIA/Troubleshooting
A possible solution could be to regress to the previously installed driver version and rebooting afterwards. Avoid screen tearing. Note: This ...
Read more >
50 Common Printer Problems and How to Fix Them
Common Printer Problems and Solutions Free PDF Download! Follow these tips for common printer problems, such as paper jams, toner issues, and low...
Read more >
CaptureResult
A Key is used to do capture result field lookups with CaptureResult#get . ... All pixel data is replaced by a pseudo-random sequence...
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