I’m trying to use a temperature and humidity sensor on the Rock 4C+ (BME280).
As preliminary information, I’ve followed the for the Rock 4C+ and then followed instruction to install the
libmraa library at the end of the guide.
However, after following the guide, the command
mraa-gpio list gave me only
no pins as response.
I’ve found on this thread (mraa not working) a link to an updated package
mraa debian package to install manually. After installing the package manually, the command
mraa-gpio list listed correctly the GPIOs PINs.
01 3V3: 02 5V: 03 SDA7: GPIO I2C 04 5V: 05 SCL7: GPIO I2C ...
I’m now facing the issue to use the
Adafruit Blinka library. When I first tried to call
import board from the library, I got an error that the
libgpiod python bindings are not found:
ImportError: libgpiod Python bindings not found, please install and try again! See https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/blob/master/libgpiod.sh
I’ve attempted first to install
libgpiod following instructions in project
sudo pip3 install --upgrade adafruit-python-shell click wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/libgpiod.py sudo python3 libgpiod.py
… but this fails with an error
LIBGPIOD E: Unable to locate package raspberrypi-kernel-headers
I’ve then tried to add directly
pipenv install gpiod , then the
import board triggers the following error:
File "/home/user/.local/share/virtualenvs/garden-sensors-BH19RWdn/lib/python3.8/site-packages/gpiod/libgpiodcxx/__init__.py", line 135, in open raise OSError( OSError: [Errno 0] Success: 'cannot open GPIO device 0'
What is the correct way to install
libgpiod on the Rock 4C+ ? On the Adafruit Blinka it seems to me that the
Rock 4C+ is supported, but I can’t have a working setup:
Any idea would be very helpful. Thanks in advance.