06-29-2024, 10:36 AM
There is no easy fix.
For option b: I found some replacement code for SPI using the linux device driver (/dev/spidevX.X), but it needs to write DC using GPIO, and it looks like it uses the BCM 2835 library code for this, meaning that it won't work on the Pi 5.
For option c: mpd_oled_dev uses libu8g2arm which uses the sysfs GPIO interface, and this has been removed in bookworm, and so mpd_oled_dev won't work with SPI on Moode 9.
I'll review the situation a bit more, but the only reasonable option I see is to update libu8g2arm and then review mpd_oled_dev, but this is a lot of work.
Adrian.
For option b: I found some replacement code for SPI using the linux device driver (/dev/spidevX.X), but it needs to write DC using GPIO, and it looks like it uses the BCM 2835 library code for this, meaning that it won't work on the Pi 5.
For option c: mpd_oled_dev uses libu8g2arm which uses the sysfs GPIO interface, and this has been removed in bookworm, and so mpd_oled_dev won't work with SPI on Moode 9.
I'll review the situation a bit more, but the only reasonable option I see is to update libu8g2arm and then review mpd_oled_dev, but this is a lot of work.
Adrian.