I’m trying to get the HyperPixel2r to run on my Raspberry Pi 4b, and I’m running into some issues. Here are the exact instructions I used to install the drivers on Buster Lite (I want to do this without the full GUI): GitHub - ShawnHymel/ei-hyperpixel-dress.
When I run demo.py (hyperpixel2r-python/demo.py at master · pimoroni/hyperpixel2r-python · GitHub), I get the following message:
pygame 2.1.2 (SDL 2.0.9, Python 3.7.3)
Hello from the pygame community. https://www.pygame.org/contribute.html
HyperPixel 2 Lots of Circles Demo
Run with: sudo SDL_FBDEV=/dev/fb0 python3 demo.py
Driver "rpi" failed: Could not initialize OpenGL / GLES library
Driver "kmsdrm" failed: Could not initialize OpenGL / GLES library
Driver "fbcon" failed: Could not initialize OpenGL / GLES library
Driver "directfb" failed: Could not initialize OpenGL / GLES library
Driver "svgalib" failed: Could not initialize OpenGL / GLES library
All SDL drivers failed, falling back to raw framebuffer access.
I get the following on my HyperPixel. The framebuffer kinda works…it seems shifted pretty badly.
So, I have a couple of questions:
- How can I enable OpenGL / GLES support on Buster Lite? I have not been able to find which library I need to install to make that happen.
- Why is my pygame display surface shifted? It should be taking up the full screen, but you can see some residual framebuffer (with terminal output) at the bottom.
Any help would be appreciated!