-
Notifications
You must be signed in to change notification settings - Fork 54
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
displayhatmini-python/examples/pygame-demo.py crash in ST7789/__init__.py line 123 #23
Comments
Update: beside the above mentioned issue I now was able to successfully build the Pimoroni/displayhatmini-fbdev-dts/displayhatmini-overlay.dtbo; copy that file to /boot/overlays; do the necessary settings in /boot/config.txt; open F2 console; issue "FRAMEBUFFER=/dev/fb1 fbterm -r 0" and have the console redirected to the Displayhatmini 2.0 (see the image below) . However I'm still stuck with that Python script crash detailed above |
The Python scripts are intended to talk directly to the display and don't work in conjunction with the fbdev driver- which basically takes over the screen entirely. You'd need to hack on https://github.com/Gadgetoid/displayhatmini-fbdev-dts/blob/main/demo.py which squirts its data out to the framebuffer device. Though probably not while also running fbterm since that would also vy for control of the screen. Everything gets messy when you don't have GPU compositing handling all this stuff gracefully 😢 |
Hi Philip, thank you for your rapid reply. The addition about fbdev was only to indicate that I was progressing in getting things on the device. Reading your reply do I interprete well that - when I want to use the Python scripts - I have to comment-out the dtparam lines in /boot/config.txt b4 ? |
Ijust commented out the lines (in /boot/config.txt): |
I am also getting an error where |
@E-man-dev Have you got SPI turned on in |
@helgibbons I double checked and SPI is turned on in |
A fresh OS image fixed the problem for me. |
Thanks @helgibbons I had SPI turned off. |
Platform: RPi400
OS: Raspberry Pi OS version bullseye (32bit)
External devices attached: Pimoroni DisplayHatMini 2.0 on an Adafruit CyberDeck, connected to the 40-pin header of the RPi400.
All relevant OS software and needed modules installed; checked.
/boot/config.txt lines:
[all]
dtoverlay=spi=on
dtoverlay=displayhatmini
lsmod result: "spi_bcm2835 24576 0"
After boot the backlight of the DisplayHatMini is lit and the LED to the right of the display shows green light.
~/pimoroni/displayhatmini-python/examples/pygame-demo.py crashes
in ST7789/init.py line 123 with [Error 2] FileNotFoundError (see attached screenshot),
After the python script crash the LED on the right of the display is off. The backlight is still on.
Googled for possible alike solved issues. Not found. Only one case also with FileNotFoundError in connection to spidev.SpiDev() but concerning other hw/sw using linux (just for info: https://forum.pine64.org/showthread.php?tid=6282).
Entered a question on Pimoroni's discord channel #tech-support but no reply (yet).
That is why I come to bother you here.
The text was updated successfully, but these errors were encountered: