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