Update main.py

This commit is contained in:
Jordan-Fielding
2022-07-07 10:59:04 +10:00
parent 8f00a5a941
commit e336c071bf

View File

@@ -56,7 +56,12 @@ def bugmotion():
time.sleep(2)
print("\nSystem Ready!")
def exit_handler():
print('Program Shutting Down!')
GPIO.output(22, 0) # turns off LED
bugmotion() #Starts Program
atexit.register(exit_handler)