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
|
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