Closed okyeron closed 5 years ago
we could also just have the fb be a command line arg passed to matron, which defaults to fb0.
i'd prefer to avoid more environment setup if possible. but i suppose if $FRAMEBUFFER isn't available we also just use fb0?
i agree with the notion that if matron and co are going to become more configurable that it is done via explicit command line arguments (with the current values as default) as opposed to environment variables.
Addressed with #783
In building norns on Raspberry Pi I've run into this issue:
With a Pi 3b+ the onboard HDMI seems to want framebuffer
fb0
. So with my DAC board/hat which uses the same OLED display - I've had to recompile nornsscreen.c
to usefb1
for the OLED.I recently found this reference:
export FRAMEBUFFER=/dev/fb1
So perhaps it would be possible to have
screen.c
reference $FRAMEBUFFER - and then set an environment variable in the norns startup scripts - instead of hard codingfb0
?