185Views1Replies

Author Options:

RuntimeWarning: Channel already in use? Answered

Returning to finish lesson 8, picking up where I left off, I attempt to run blink.py program and get the following:

blink.py:8: RuntimeWarning: This Channel is already in use, continuing anyway.

Use GPIO.setwarnings(False) to disable warnings.

GPIO.setup(yellowLed, GPIO.OUT)

Discussions

The forums are retiring in 2021 and are now closed for new topics and comments.
0
bobkanuk.
bobkanuk.

3 years ago

# Add this line after GPIO.setmode(GPIO.BCM):

GPIO.setwarnings(False)