How to read output state of a GPIO pin using jetson-gpio

Hi All,

I’m using the jetson-gpio1 library for controlling the GPIO pins in my Jetson, and it works without any issue.
I want to read the current state(LOW or HIGH) of an output pin using the python jetson-gpio library, But couldn’t find a way to do that.

If I try to do the following on an output pin

GPIO.input(7)

but that didn’t work,

I found that we could directly read the value from

cat /sys/class/gpio/gpio216/value

via the file system, But I’m trying to do that using the python library.

Can someone please help with this ?

Thanks
~Kasun

Please you check these samples for reference.