Rock4c+, bookworm and mraa

Tried installing mraa, particularly the python bindings, but it fails because I have python3.11 and not 3.9 or lower. I tried compiling mraa according to radxa wiki, but that fails - the posted code won’t even let me do diff.

is there any work around? It seems pretty silly being unable to control the gpio pins on a rock 4

I have no clue what mraa is, but you might have a look at lg library

I do not use python, C instead and I recently ported old RPi GPIO code over to this generic Linux GPIO lib. I can toggle high/low and also PWM on old RPi1 (ARMv6) and also NanoPi-NEO (ARMv7)

Rockchip 64-bit should also be no problem. Use example chipline.c to see what the actual GPIO situation is about.

Other option is gpiod, is standard Linux and has some utilities to manage pins, but more multi-user targeted, so not the old wiringpi style.

Thanks, that looks useful, and I note that it provides python bindings

Most of my code is python, written for an rpi4, which is what I’m replacing with the rock4c+, mraa is supposed to be something to replace rpi.gpio, but hasn’t been updated for python 3.11

Here’s a quick look at mraa (this is for the zero, it’s available for different sbc models)