Run a C mraa-lib compiled binary without sudo

Hi all!

I have a project where I used another type of computer. Since the computer is not available I am thinking to switch to Rock 4 Se. I bought one and I started to port the project.

The project is made in Node-Red and it uses the GPIO’s. Since the mraa lib is not available in the last NodeJs version it is not possible to use gpio’s directly.

So I decided to to write the gpio part of the project in C. So my first question is:

  1. How can I run a C compiled binary that uses mraa-lib without sudo command?

And second:

  1. Does anyone succeed using gpio’s in Node-Red?

Thanks in advance!

I made a group, added the group to gpio*, i2c and others, then added me to group and seems to be working.

1 Like