3
0

Removed cleanup from beginning of the code.

This commit is contained in:
K 2024-11-06 12:19:00 +05:30
parent 2273a5f463
commit e92565bde6
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F
3 changed files with 0 additions and 3 deletions

View File

@ -12,7 +12,6 @@ import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.cleanup()
GPIO.setup(16,GPIO.IN) # For IR sensor
GPIO.setup(26,GPIO.OUT) # For LED

View File

@ -23,7 +23,6 @@ import time
# initialize GPIO
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()
try:
while True:

View File

@ -12,7 +12,6 @@ import RPi.GPIO as GPIO # Import library
# Initalize GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.cleanup()
GPIO.setup(16, GPIO.IN) # Set GPIO 16 as input for water level sensor signal
GPIO.setup(26, GPIO.OUT) # Set GPIO 6 as output for LED