Update main.py

This commit is contained in:
Jordan-Fielding
2022-07-11 10:49:10 +10:00
parent 5921a64b8f
commit 369a64ea98

View File

@@ -22,11 +22,12 @@ def bugmotion():
GPIO.output(22, 0) #Sets light off
print("\nProgram Running!")
for i in range(5):
for i in range(3):
time.sleep(1)
GPIO.output(27, 1)
time.sleep(0.2)
time.sleep(1)
GPIO.output(27, 0)
if i == 5:
if i == 3:
break
@@ -46,7 +47,7 @@ def bugmotion():
# Grab the current time
filePath = cwd + "/Pictures/"
currentTime = datetime.now()
picTime = currentTime.strftime("%Y.%m.%d-%H%M")
picTime = currentTime.strftime("%Y-%m-%d-%H-%M-%S")
picName = "Capture-" + picTime + '.jpg'
completeFilePath = filePath + picName
#file_name = cwd + "/Pictures/Capture_" + str(time.time()) + ".jpg"