How to use GPIO

Hi there.
I searched a lot about this topic, but I didn’t find anything that worked.
I have a ROCK5B, and I just don’t know how to use the GPIO. I was able to use I2C and SPI, but I couldn’t use PWM and GPIO as IN OUT.
Is there any library that I can use? Or any tutorial?

Thank you in advance.

Our docs will all put at docs.radxa.com
you can find the guide here. https://docs.radxa.com/en/rock5/rock5b/app-development/mraa

Mainline way is to use libgpiod. Upcoming is the use of gpio-manager, which I describe in the following:

https://forum.banana-pi.org/t/gpio-control-through-libgpiod-using-the-command-gpiocli/18000