Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I get the following warning: Python says to add this command GPIO.setwarnings(False). Where do I put this command, in the file or in some system file?
Add this command before the first call to GPIO.setup() in your .py file, as it suppresses warnings in that call.
In any script of python if you are using GPIOs than, at the end means after using it you need to enter the line of GPIO.cleanup(). It will be useful for that warnings.
Required, but never shown