Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
We will get many times "Device or resource busy" error, when try to read or write GPIO pin of raspberry pi.
"Device or resource busy"
So, Is there any way to find out which GPIO pin of raspberry pi busy?
Thanks in advance.
I suggest looking for entries in /sys/class/gpio. If GPIO X is in use by the kernel there will be a gpioX directory.
Required, but never shown