Jetson-GPIO Library Update

Lately, NVIDIA has published a GPIO library based on Raspberry Pi GPIO library. This library comes pre-installed on the module. On this blog post, we will patch that library to activate DSBoard IIO pins. This blog post applicable for DSBOX-NX2 and DSBOX-N2.

First of all download updated version of this library from our GitHub repository.

You can use this library directly but there could be a conflict between pre-installed library. To solve this copy "lib/python/Jetson/GPIO/" file over the pre-installed library.

  • sudo mv /usr/lib/python2.7/dist-packages/Jetson/GPIO/ /usr/lib/python2.7/dist-packages/Jetson/GPIO/

  • sudo mv /usr/lib/python3/dist-packages/Jetson/GPIO/ /usr/lib/python3/dist-packages/Jetson/GPIO/

  • cd jetson-gpio

  • sudo cp lib/python/Jetson/GPIO/ /usr/lib/python2.7/dist-packages/Jetson/GPIO/

  • sudo cp lib/python/Jetson/GPIO/ /usr/lib/python3/dist-packages/Jetson/GPIO/

After these commands, you can use IIO pins using the library. First two commands added for backup reason; so anything goes wrong you can find original files.

On the table below you can find IIO GPIO numbers and names to use inside the library.

Thanks for reading.

12 views0 comments
Check out our latest tutorials and blog posts

Email us for any questions

For large quantity inquiries

©2020 by forecr