简体   繁体   中英

How to disable GPIO pins on the RaspberryPi?

Basically, I need to disable or turn off a GPIO pin whenever I execute a method in python .

Does anyone knows how to disable the pins?

There is a built-in function GPIO.cleanup() that clean up all the ports you've used. For the power and ground pins, they are not under software control.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM