Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4567

Interfacing (DSI, CSI, I2C, etc.) • Unable to access SPI with LUMA

$
0
0
I'm trying to display an image on my LCD screen (https://www.waveshare.com/oled-lcd-hat-a.htm) for my Raspberry Pi 5.
Using their sample code, I get the following error:

Code:

from luma.core.interface.serial import spiserial_middle = spi(port=0, device=0, gpio_DC=22, gpio_RST=27)RuntimeError: Cannot determine SOC peripheral base address
I've enabled SPI in the raspberry pi config:

Code:

dtparam=spi=on
And in my /dev, I do have SPIs:

Code:

/dev/spidev0.0  /dev/spidev0.1  /dev/spidev10.0
What am I doing wrong here?

Statistics: Posted by RampantDespair — Thu May 16, 2024 8:21 pm — Replies 1 — Views 30



Viewing all articles
Browse latest Browse all 4567

Trending Articles