3
0

Added description for setwarnings line

This commit is contained in:
K 2024-11-06 11:52:16 +05:30
parent 9c55bf7632
commit 2273a5f463
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F

View File

@ -21,8 +21,8 @@ import dht11
import time import time
# initialize GPIO # initialize GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM) GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False) # Set True if you are having trouble connecting the DHT11 sensor to Raspberry Pi. Doing so will show warnings on screen.
GPIO.cleanup() GPIO.cleanup()
try: try: