Hi,
I have installed the libmraa to the Rock Pi X with the steps listed on this link:
https://wiki.radxa.com/RockpiX/dev/libmraa
However, I can’t set the GPIO pin with its sample command or python script:
- When I try: sudo mraa-gpio set 7 1
-> It returned: Could not initialize gpio 7 - When I try the gpio.py in /usr/local/share/mraa/examples/python
-> It shows:
Traceback (most recent call last):
File “./gpio.py”, line 15, in
gpio_1 = mraa.Gpio(23)
File “/usr/local/lib/python3.8/dist-packages/mraa.py”, line 474, in init
this = _mraa.new_Gpio(pin, owner, raw)
ValueError: Invalid GPIO pin specified
Actually the command: mraa-gpio list works and could show exact 40 pin listed in aforementioned link. I also try different pin in gpio.py, but no luck!
Here is my system:
OS: Ubuntu 20.04.4 LTS
mraa-gpio version: Version v2.1.0-15-g03d3059 on ROCK PI X
Does anyone have solution on this? Thanks!