GPIO pin as input on one program while output on another? - Raspberry Pi Forums


i've got program doing pretty important gpio stuff pretty reliably (c++ wiringpi). i'd add monitor program - preferably without touching existing program - can read , display out state of of inputs , outputs in real time (i think there 8 or 9 of each). if control program runs 24/7, , start monitor program tries set pins inputs polling, break output functions of control program? there way read these pins states command line or system() (reading right register or something) , have variables available c++ program?

you don't need change mode. can quite happily read level of gpio set output. of course library use might impose own restrictions.

pigpio doesn't. use http://abyz.me.uk/rpi/pigpio/piscope.html view gpio or http://abyz.me.uk/rpi/pigpio/examples.h ... monitor_py show level changes on terminal.


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'