Trying to use the GPIO pins seems to be quite the challenge for the Rock SBC. I, like many others, am trying my best; but unable to figure it out.
My current, failed, best shot below. Any help greatly appreciated!
radxa@rock-4c-plus:~/Projects$ sudo apt install libmraa2
[sudo] password for radxa:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmraa2 : Depends: libjson-c5 (>= 0.15) but it is not installable
E: Unable to correct problems, you have held broken packages.
Note: I am using the rock-4c-plus_ubuntu_focal_kde_b60.img.xz image, which has the following repos enabled:
deb http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
deb [signed-by=/usr/share/keyrings/radxa-archive-keyring.gpg] https://radxa-repo.github.io/focal focal main
deb [signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg] https://download.vscodium.com/debs vscodium main