Newbie here with limited python knowledge.
I have a script that is dependent on 3 sensors to output gathered info. The original script is from the Petpot project
on Instructables. I can send/post it if necessary.
The script runs. After about 45 min to an hour, it seizes. I think if it were to start again every 45 min, that would no longer be the case.
There is a loop in the scripting:
I have a script that is dependent on 3 sensors to output gathered info. The original script is from the Petpot project
on Instructables. I can send/post it if necessary.
The script runs. After about 45 min to an hour, it seizes. I think if it were to start again every 45 min, that would no longer be the case.
There is a loop in the scripting:
# Main loop running = True clock = pygame.time.Clock()At the end of the script he has placed:
pygame.display.update() clock.tick(30) # Clean up video capture objects and quit for cap in emoji_animations.values(): cap.release() try: pygame.quit() except pygame.error as e: print(f"Pygame error while quitting: {e}") quit()I'm sure there is an easy answer to this. I just can't seem to find a solid solution. Thank you in advance.
Larz60+ write Jan-25-2024, 11:05 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Your code has been modified this time.
Please use BBCode tags on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Your code has been modified this time.
Please use BBCode tags on future posts.