From e3cc157af088f4501a274817294a0bdfba958f74 Mon Sep 17 00:00:00 2001 From: 333741 <333741@student.mboutrecht.nl> Date: Wed, 29 Jan 2025 15:52:12 +0100 Subject: [PATCH] Updated to 1 minute. Added Readme content --- DIZZY.py | 4 ++-- README.md | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/DIZZY.py b/DIZZY.py index b883aa7..d1dc38e 100644 --- a/DIZZY.py +++ b/DIZZY.py @@ -20,7 +20,7 @@ button = Button(BUTTON_PIN) # Recording state recording = False start_time = None -MAX_RECORDING_TIME = 10 # Stop after 1 minute +MAX_RECORDING_TIME = 60 # Stop after 1 minute def is_usb_mounted(): @@ -62,7 +62,7 @@ def main(): while True: if button.is_pressed: toggle_video_recording() - time.sleep(10) # Debounce to avoid multiple presses + time.sleep(0.1) # Debounce to avoid multiple presses if recording: elapsed_time = time.time() - start_time diff --git a/README.md b/README.md index e69de29..69ada66 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,9 @@ +# Babbelbox + +## Install requirements + +``` apt install python-picamers2 ffmpeg ``` + +## Improvements + +This code does not show a GUI when recording - This should be added