Tx2 GPIO control via Python

Hi All

First of all happy new year!
I’m still pretty new into linux and the jetson tx2.
I want to be able to read/control an arbitrary input/output pin in python. I have read this topic:

https://devtalk.nvidia.com/default/topic/1030443/jetson-tx2/using-gpio-on-nvidia-jetson-tx2/

but I can not figure out how to use the library properly:

Can someone help me with this and write the steps like:

  1. import gpio
    2 configure pin

Thanks in regards!

/Esben

I think the wiki have the information for how to use it.

https://elinux.org/GPIO#Enable_GPIO_from_application_space