diff --git a/mouse/record.py b/mouse/record.py index aec52dc..1ed72e5 100644 --- a/mouse/record.py +++ b/mouse/record.py @@ -59,6 +59,13 @@ def main(*argv): parser = argparse.ArgumentParser( description="seconds before and after lever is pressed." ) + parser.add_argument( + "-p", + "--port", + type=int, + default=27, + help="GPIO port of trigger" + ) parser.add_argument( "before", type=int, @@ -83,7 +90,7 @@ def main(*argv): z = x + y # sets up trigger event for the recordings, i.e., GPIO 27 - trigger = Trigger() + trigger = Trigger(args.port) with picamera.PiCamera(framerate=90) as camera: try: