6hearts
Posts: 16
Joined: Sat Dec 26, 2015 1:25 pm

Check gpio pin status without "touching it"?

Mon Dec 03, 2018 7:55 pm

I have a program running in the background that sets pins to high/low (sets them as output).
But I want to create another program running as another process that checks the status of the pins, if they are high or low.
Is it possible to do this in a way that it won't interfere with the 1st program?

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Check gpio pin status without "touching it"?

Mon Dec 03, 2018 8:19 pm

Yes that's possible. My pigpio certainly allows this and it's pretty central to piscope.

http://abyz.me.uk/rpi/pigpio/
http://abyz.me.uk/rpi/pigpio/piscope.html

If you have a library you want to use just mention what it is and someone will know if it allows this behavior.

Return to “Python”