Quantcast
Viewing all articles
Browse latest Browse all 4860

Python • Re: pylint errors on normal "import RPi.GPIO"

You're confusing it by calling it GPIO.

try naming it something else, like gpio in lowercase

Code:

import RPI.GPIO as gpio
Then replace all the other upper case GPIO to gpio in the rest of the code to match.

Statistics: Posted by memjr — Mon Feb 26, 2024 5:18 am



Viewing all articles
Browse latest Browse all 4860

Trending Articles