Update main.py

This commit is contained in:
Jordan-Fielding
2022-07-07 10:40:35 +10:00
parent d25e59a877
commit 19f18f1a6b

10
main.py
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()