Open Mercotui opened 3 years ago
leaving mostly for prosperity, thank you to the contributors for making this fine library :ok_hand:
Just another headsup. I also ran into the mailbox issue on my B Rev. 2 in Debian 10, but was additionally unable to get SPI working. It appears the SPI driver doesn't load properly, despite configuring it in config.txt. https://github.com/raspberrypi/linux/issues/526
/dev/vcio
does not exist on Fedora either on the Raspberry Pi CM4.
Here I am using Raspberry Pi 4 with an image from https://raspi.debian.net/tested-images/
Devices /dev/vcio
and /dev/spidev0.0
do not exist.
However I tried WiringPi/examples/pwm.c and it works.
Is there another way to control PWM?
I tried using the test application with the default GPIO 18 (PWM0) on my Raspbery Pi 3b, running Ubuntu 21.04. However my LED strip stays off, and this is the console output:
Looking into the code, it seems in
mailbox.c
the functionmbox_open
tries to open a device called/dev/vcio
. Sadly this doesn't exist on Ubuntu 21.04.The backup mechanism to create a node in
/tmp/
also clearly fails, but this is beyond my understanding :shrug:My fix:
In another issue I saw the recommendation to use SPI, on GPIO 10 instead. Trying that:
The screen lights up in a rainbow, works wonderfully!