Update main.py
This commit is contained in:
10
main.py
10
main.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user