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

Recent SPI fix causes SPI0 to be disabled on every reboot #162

Open
DanCrank opened this issue May 12, 2022 · 0 comments
Open

Recent SPI fix causes SPI0 to be disabled on every reboot #162

DanCrank opened this issue May 12, 2022 · 0 comments

Comments

@DanCrank
Copy link

This appears to be disabling whichever SPI bus the OLED isn't using, in app.py:

# Configure Raspberry Pi with correct bus
self._interface_manager.spi0 = spi_bus == 0
self._interface_manager.spi1 = spi_bus == 1

By default, since the OLED is using SPI1, this causes SPI0 to be disabled every time the Pi is rebooted. I'm working around this with a startup service that runs after pi-topd to turn it back on, but it's a bit of an inconvenience and it took me a bit to figure out what was happening.

Is disabling the "other" SPI bus an essential part of the fix? Is there a better workaround that I'm missing?

Thanks,
Dan

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

1 participant