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

Advanced users • Can't get Waveshare LCD working with PyGame/SDL2

$
0
0
I have a project involving a Raspberry Pi Zero 2W (Raspberry Pi OS Bookworm Lite 64-bit) and a Waveshare 2.8" DPI LCD. I'd like to run PyGame on it to display a simple touch-based UI.

The display turns on and creates /dev/fb0. I can use fbi to show images on it.

However, I cannot get pygame.display.init() to work. Its default driver selection is "offscreen," which results in no output. Any driver I've specified (fbcon, directfb, svgalib, etc.) results in a "not available" exception. Also, I can't find a way to get SDL2 to list which drivers it has installed - it's an incredibly frustrating trial-and-error process, and I'm coming up empty.

I've recompiled SDL2 from source, but PyGame continues to report that it's using an earlier version of SDL2, and I can't find any way to make it use a different version.

After about 10 hours of effort with no results, I'm just about ready to dump the LCD and try a different one. Any suggestions before I do that?

Statistics: Posted by sfsdfd — Tue Mar 12, 2024 6:13 pm



Viewing all articles
Browse latest Browse all 4906

Trending Articles