RPI3 GPIO pin direction resetting - Raspberry Pi Forums
i'm using rpi3 in circuit using gpio spi, i2c , general gpio pins. i'm using wiringpi set direction of gpio4 (physical pin 7, wiringpi pin 7) set output pin , setting state high. after setting pin either via c++ program or gpio in command line verify state using gpio readall , oscilloscope. pin set out pin ( gpio readall ) , voltage high. after few seconds pin resets input pin. happens irrespective of doing through c++ program or via command line utility gpio . driving pin such pin 23 succeeds no resetting of pin. reason can think of other function periodically runs , resets direction of pin. setting state direction in while loop in c++ not seem change direction. once pin resets program needs restarted take action. appreciated. wiringpi going directly hardware, bypassing knowledge of gpio usage linux kernel may have. have enabled via config.txt thinks using gpio4, , periodically checking it. candidates 1-wire interface defaults gpio4. "sudo cat /sys/kernel/deb...