Update main.py
This commit is contained in:
1 parent
d25e59a877
commit
19f18f1a6b
1 file changed
+6
-4
@@ -13,11 +13,13 @@ GPIO.setup(22, GPIO.OUT) #LED output pin
|
|||||||
cwd = os.getcwd() #Sets the Current Working Directory
|
cwd = os.getcwd() #Sets the Current Working Directory
|
||||||
|
|
||||||
|
|
||||||
print("\nProgram Running!")
|
|
||||||
|
|
||||||
#To stabilize sensor and Camera
|
def bugmotion():
|
||||||
time.sleep(2)
|
print("\nProgram Running!")
|
||||||
while True:
|
|
||||||
|
#To stabilize sensor and Camera
|
||||||
|
time.sleep(2)
|
||||||
|
while True:
|
||||||
|
|
||||||
#Waits for Motion from PIR Sensor
|
#Waits for Motion from PIR Sensor
|
||||||
pir.wait_for_motion()
|
pir.wait_for_motion()
|
||||||
|
|||||||
Reference in new issue
Block a user