Update main.py

This commit is contained in:
Jordan-Fielding committed 2022-07-07 10:40:35 +10:00
1 parent d25e59a877
commit 19f18f1a6b
1 file changed
+6 -4
+6 -4
View File
@@ -13,11 +13,13 @@ GPIO.setup(22, GPIO.OUT) #LED output pin
cwd = os.getcwd() #Sets the Current Working Directory
print("\nProgram Running!")
#To stabilize sensor and Camera
time.sleep(2)
while True:
def bugmotion():
print("\nProgram Running!")
#To stabilize sensor and Camera
time.sleep(2)
while True:
#Waits for Motion from PIR Sensor
pir.wait_for_motion()