Closed Skuallpa closed 1 year ago
I've got some help by posting on the forum. The issue was caused by an incorrect definition of the pinout for my board version. My Rock 4C+ is running a Linux Kernel < 4.8 and thus I had to revert the definition of pin.py
in adafruit_blinka/microcontroller/rockchip/rk3399/pin.py
to a previous implementation: https://github.com/adafruit/Adafruit_Blinka/pull/677/files
Thanks a lot to @GoGerriko for his help.
I'm trying to use the BME280 sensor on a Rock 4C+ but face an issue while importing
board
in my python script:The first error I've encountered was this one:
I've attempted first to install
libgpiod
following instructions in project Raspberry-Pi-Installer-Scripts, using:.. but this fails with an error
LIBGPIOD E: Unable to locate package raspberrypi-kernel-headers
I've then tried to add directly
gpiod
usingpipenv install gpiod
, then theimport board
triggers the following error:I've seen that some things were fixed in recent releases of
Adafruit_Blinka
(e.g. v8.16.1) regarding the Rock 4C+, so I've also attempted to install the latest version (v.8.19.0). This is my current dependencies (inPipfile.lock
):What is the correct way to install
libgpiod
and have a working setup with the Rock 4C+ board?