Open Avi-avidan opened 4 years ago
The problem is that the gpio wrapper needs a new block to adapt the Jetson.GPIO library. At a glance the Jetson library looks like a drop-in for Adafruit_BBIO.GPIO, so try changing the block for beagleboneblack to support your platform: https://github.com/guyc/py-gaugette/blob/14732a78fc953cfc920f548b04d69d5b6219ba54/gaugette/gpio.py#L34
eg experimentally change this:
elif gaugette.platform.isBeagleBoneBlack:
import Adafruit_BBIO.GPIO
self.gpio = Adafruit_BBIO.GPIO
to
else:
import Jetson.GPIO
self.gpio = Jetson.GPIO
thanks :) that helped alot. moving down the rubbit hole reveals Jetson.GPIO has no attribute 'trigger'...
I have a modified version to work with Jetson Nano, take a look https://github.com/jpalves/py-gaugette
hi, loved this repo. I am trying to read dc motor encoder link, using your example, how ever I am getting NotImplementedError: Platform is not supported. exception is raised for this line -
gpio = gaugette.gpio.GPIO()
any advice will be appreciated.
this is the motor I am using - https://www.aliexpress.com/i/4000098341909.html
this is jetson nano board - https://developer.nvidia.com/embedded/jetson-nano-developer-kit
here is my gpio setup -
thank a lot, a.