ROC-RK3328 GPIO Node Red Raspbain

rpi.GPIO is not a supported library due to poor coding and bad design. We recommend using libgpiod which is the de-facto Linux way of controlling all aspects of GPIOs.

To get the proper chip and line numbers for use with libgpiod, we made a handy tool:

You can get the gpio chip and line numbers using our lgpio command.
lgpio info PIN# gpiod

You can get and set the gpio using gpiod commands.
gpioget
gpioset

There are other bindings like C/C++/Python for libgpiod. You can also find the GPIO maps here: