Despite initial doubts, I’ve got openFrameworks to run with a headless Raspberry Pi Zero 2 W and non-touch, rectangular Pimoroni HyperPixel display.
Here are a couple of things to note about the HypePixel:
- it occupies all GPIO pins, which makes it hard to connect anything else to the Pi, but you can still use some I2C devices by making the display use the alternate I2C interface, which will free up two pins (3V3 and GND are also still available)
- the display is currently only supported under Raspberry Pi OS Buster (Pimoroni is working on a driver for Bullseye though)
- the installation of the screen is super easy - it’s done with a single shell command - but it needs to be installed after downloading openFrameworks and installing all of its dependencies
- it’s a gorgeous display, but as @Daan pointed out above, hardware acceleration might not be supported this way, since the screen isn’t connected via HDMI
And here are a couple of remarks concerning openFrameworks and the Raspberry Pi:
- I installed the nightly build of_v20211128_linuxarmv6l_nightly.tar.gz and it seems to work great so far
- I couldn’t get a compiled project to run from the X desktop environment, since the GLFW library can’t be initialized somehow, but this isn’t what I wanted to do in the first place either
- running the project without X and its overhead works fine, but as stated at the bottom of the oF guide,
xorg needs to be installed first from the package manager and it fortunately doesn’t break the display output
- the memory split mentioned in the oF guide wasn’t really necessary, since the GPU is by default set to 64MB, and the option doesn’t even seem to exist in the
raspi-config of the Zero 2 W anyway
So far, I really like the setup! The display is nicely lit and sharp. It features a resolution of 480 x 800px.
My test project - a self-avoiding walk simulation inspired by this video by Daniel Shiffman - runs great!
It was run with the
startx ./bin/selfAvoidngWalk -- -s off command from a terminal, connected via SSH to the Raspberry Pi.