-
Notifications
You must be signed in to change notification settings - Fork 58
Description
Hi,
documentation says:
luma.lcd provides a Python3 interface to small LCD displays connected to Raspberry Pi and other Linux-based single-board computers (SBC).
so this does not require raspberry-pi ;)
Type of Raspberry Pi
Not all Pi's are equal at the hardware level - what works on one, might not work on the next.
This library has been tested on every variant except the RPi3.
i try to get the lcd-lib working with spi/spidev on a bananapi and got this error (3.5inch rpi-display with 3v3 + 5v + gnd + spi-pins connected):
File "/home/frank/.venv_display/lib/python3.9/site-packages/luma/core/lib.py", line 23, in __rpi_gpio__
import RPi.GPIO as GPIO
File "/home/frank/.venv_display/lib/python3.9/site-packages/RPi/GPIO/__init__.py", line 23, in <module>
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
During handling of the above exception, another exception occurred:
Linux Kernel version
6.2-rc1
Expected behaviour
Add a few concise notes about what you are expecting to happen.
Even better, if you paste in a code sample that demonstrates what you want to achieve.
luma-lcd could access spidev already probed or i need to adjust pins/gpio-base? if yes where can i do this?
Actual behaviour
Now add some details about what actually happened - if there is an unexpected crash, paste in the
traceback info.
currently i get traceback because my device is no raspberry pi...how can i change this?
traceback above
regards Frank