83Views1Replies

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

0
None
bobkanuk.

1 year ago

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

GPIO.setwarnings(False)