Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luma.oled - device on SPI fails with BOOKWORM #391

Open
FdeAlexa opened this issue Jun 29, 2024 · 4 comments
Open

luma.oled - device on SPI fails with BOOKWORM #391

FdeAlexa opened this issue Jun 29, 2024 · 4 comments

Comments

@FdeAlexa
Copy link

FdeAlexa commented Jun 29, 2024

First of all: thanks for the LUMA solutions.
I am trying to run some python program with the new software platform RaspiOS 12 (bookworm) on the raspberry pi4.
All the programs runs correctly on 11.9 (bullseye) on several OLED on I2C and SPI, but with the new OS there is no way to run on SPI with the SSD1309.
I have tryed some luma.examples too and the results are, unfortunatly, negative.
Would you please be so kind to help me on this issue?
Best regards and thanks,
Francesco

@thijstriemstra
Copy link
Collaborator

the results are, unfortunatly, negative.

What exactly? It should run on bookworm without any problems.

@FdeAlexa
Copy link
Author

I have tryed a python program that runs on bullseye but not on bookworm even 3d_box.py (for example) does not run on SSD1309 on SPI. Other programs on ili9341 (on SPI) run correctly.
Best regards,
Francesco

@kingjkj
Copy link

kingjkj commented Oct 9, 2024

Hi, I have the same problem here.
I'm using Moode Audio which is based on Bookworm and I cannot make my OLED SSD1309 work in SPI with my Raspberry 5.
I'm using lgpio. I tried gpiozero and that's the same.
I always have these kind of errors.
I really don't understand what's wrong.

Traceback (most recent call last):
File "", line 56, in
File "", line 41, in main
File "", line 20, in init_oled
File "/usr/local/lib/python3.11/dist-packages/luma/core/interface/serial.py", line 302, in init
bitbang.init(self, gpio, transfer_size, reset_hold_time, reset_release_time, DC=gpio_DC, RST=gpio_RST)
File "/usr/local/lib/python3.11/dist-packages/luma/core/interface/serial.py", line 190, in init
self._DC = self._configure(kwargs.get("DC"))
File "/usr/local/lib/python3.11/dist-packages/luma/core/interface/serial.py", line 203, in _configure
self._gpio.setup(pin, self._gpio.OUT)
RuntimeError: Cannot determine SOC peripheral base address

@kingjkj
Copy link

kingjkj commented Oct 9, 2024

In file serial.py giving me errors, I cant read :

:param gpio: GPIO interface (must be compatible with RPi.GPIO https://pypi.org/project/RPi.GPIO__).

So I guess that luma cannot dirve spi oled on RPi 5 as RPI.GPIO is not compatible and I have to use LGPIO.
Am I right ?
Is there a workaround ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants