I installed the Jetson.GPIO python library on my Jetson Nano following the guide https://pypi.org/project/Jetson.GPIO/ with pip. I completed all steps, including the creation of the gpio group and adding the 99-gpio.rules file to the rules.d-directory. Still, when I try to use it, it does not work so well.
First of all, if I import it, it says:
WARNING: Carrier board is not from a Jetson Developer Kit. WARNNIG: Jetson.GPIO library has not been verified with this carrier board, WARNING: and in fact is unlikely to work correctly.
Which is weird, because, as I said, I use a Jetson Nano. Then I tested it with a simple script using my HC-SR04 sensor connected to the board. I received following error:
Traceback (most recent call last): File "GPIO_Test.py", line 48, in <module> abstand = distanz() File "GPIO_Test.py", line 29, in distanz GPIO.wait_for_edge(GPIO_ECHO. GPIO.RISING) AttributeError: 'int' object has no attribute 'GPIO'
If I try to use while-loops instead, it does not give any output at all which means the echo-signal never arrives which means that the GPIO does not work correctly (because my sensor is perfectly intact).
So any ideas what went wrong on the installation and how to get things to work?
Thanks for the help in advance!