Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4853

Python • Re: lgpio.error: 'GPIO busy'

$
0
0
Not sure how that will help, it merely prevents the code from being Ctrl-C exited once running.
No, it intercepts Ctrl-C (SIGINT) and allows normal script termination. According to this, gpiozero does not require any explicit cleanup as long as the script terminates normally. My guess is that gpiozero uses a atexit handler to cleanup GPIO.

Statistics: Posted by NotRequired — Sun Apr 28, 2024 9:19 am



Viewing all articles
Browse latest Browse all 4853

Trending Articles