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.

Black screen with SPI

See original GitHub issue

I can initialize the display but the example code gives me black screen. The same display works with I2C.

Adafruit CircuitPython 7.3.0-alpha.0-38-g862210b3f-dirty on 2022-03-24; Adafruit Feather M4 Express with samd51j19
Board ID:feather_m4_express
import board
import busio
import displayio
import adafruit_displayio_ssd1306
import sys

displayio.release_displays()

try: 
	spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)

	display_bus = displayio.FourWire(spi_bus=spi, command=board.D10, chip_select=board.D11, reset=board.D9, baudrate=10000000)

	display = adafruit_displayio_ssd1306.SSD1306(display_bus, width=128, height=64)

	splash = displayio.Group()
	display.show(splash)

	color_bitmap = displayio.Bitmap(120, 50, 1)
	color_palette = displayio.Palette(1)
	color_palette[0] = 0xFFFFFF # White

	bg_sprite = displayio.TileGrid(color_bitmap, pixel_shader=color_palette, x=0, y=0)
	splash.append(bg_sprite)

	while True:
		pass

except (KeyboardInterrupt) as e:
	spi.unlock()
	sys.exit(0)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
muranyiacommented, Apr 19, 2022

It was me soldering the jumpers together - your questions helped me find the problem. Thanks!

0reactions
muranyiacommented, Oct 11, 2022

Yes. Jumper on, contrary to the wrong label.

On Wed, Apr 6, 2022, 21:38 ladyada @.***> wrote:

is the display in SPI mode?

— Reply to this email directly, view it on GitHub https://github.com/adafruit/Adafruit_CircuitPython_SSD1306/issues/72#issuecomment-1090689566, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZWGYCBDUWNU3N4QTRTIO3VDXR5BANCNFSM5SXDDZPQ . You are receiving this because you authored the thread.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Black screen on 1.3" SPI Colour LCD (240x240) by Pimoroni ...
Hi, im trying to make this screen work,but without any success. The main page says this display is has a ST7789V but looking...
Read more >
My phone x has a black screen with a spinning wheel.
My phone x has a black screen with a spinning wheel. Tried the up button then down button then side button... nothing helped?...
Read more >
Black screen when using higher SPI-speed for RA8857 LCD ...
I'm using an Arduino Due that talks via SPI to an LCD (800x480) with the RA8875 controller chip. The most recent datasheet I...
Read more >
Eastrising RA8875 480x272 SPI Black screen - Arduino Forum
Have connected it up via SPI on my mega (pins 50,51,52,53, GND,VSS) but I get just a black screen. I would expect to...
Read more >
LCD screen with DPI : Black screen - Raspberry Pi Forums
Hi everyone, I have an ili9488 screen that I would like to run on a Raspberry Pi CM3 + (Compute module) in DPI....
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