Mraa example for Rock 4c+ willing to share

Does anyone have an example using mraa gpio example they are willing to share. I keep getting errors setting GPIO pins.

I discovered just earlier that the python examples shown in the /usr/local/share/mraa/examples/ folder do actually work but only when you operate as root.

Haven’t tested, but I’m guessing that to get these python examples to work as non-root user will require udev rules to be created etc.

2 Likes

See my posts…

1 Like

thank you I’ll look at them.

I was able to install the mraa library but now I’m getting this error. Any thoughts?

gpio_1 = mraa.Gpio(18)
File “/usr/local/lib/python2.7/dist-packages/mraa.py”, line 854, in init
_mraa.Gpio_swiginit(self, _mraa.new_Gpio(pin, owner, raw))
ValueError: Invalid GPIO pin specified