Skip to content

Commit 12e1948

Browse files
committed
Add GUI function & update verbose flag
1 parent 93cb782 commit 12e1948

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,35 +48,35 @@ python bioamp_tool.py [options]
4848

4949
## Script Functions
5050

51-
### `auto_detect_arduino(baudrate, timeout=1)`
51+
`auto_detect_arduino(baudrate, timeout=1)`
5252

5353
Detects an Arduino connected via serial port. Returns the port name if detected.
5454

55-
### `read_arduino_data(ser, csv_writer=None)`
55+
`read_arduino_data(ser, csv_writer=None)`
5656

5757
Reads and processes data from the Arduino. Writes data to CSV and/or LSL stream if enabled.
5858

59-
### `start_timer()`
59+
`start_timer()`
6060
6161
Initializes timers for 1-second and 10-minute intervals.
6262
63-
### `log_one_second_data(verbose=False)`
63+
`log_one_second_data(verbose=False)`
6464
6565
Logs and resets data for the 1-second interval.
6666
67-
### `log_ten_minute_data(verbose=False)`
67+
`log_ten_minute_data(verbose=False)`
6868
6969
Logs data and statistics for the 10-minute interval.
7070
71-
### `parse_data(port, baudrate, lsl_flag=False, csv_flag=False, gui_flag=False, verbose=False)`
71+
`parse_data(port, baudrate, lsl_flag=False, csv_flag=False, gui_flag=False, verbose=False)`
7272
7373
Parses data from Arduino and manages logging, streaming, and GUI updates.
7474
75-
### `init_gui()`
75+
`init_gui()`
7676
7777
Initializes and displays the GUI with six real-time plots, one for each bio-signal channel.
7878
79-
### `main()`
79+
`main()`
8080
8181
Handles command-line argument parsing and initiates data processing.
8282

bioamptool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def main():
272272
global verbose
273273
parser = argparse.ArgumentParser(description="Upside Down Labs - BioAmp Tool") # Create argument parser
274274
parser.add_argument('-p', '--port', type=str, help="Specify the COM port") # Port argument
275-
parser.add_argument('-b', '--baudrate', type=int, default=57600, help="Set baud rate for the serial communication") # Baud rate argument
275+
parser.add_argument('-b', '--baudrate', type=int, default=57600, help="Set baud rate for the serial communication") # Baud rate argument default = 57600
276276
parser.add_argument('--csv', action='store_true', help="Create and write to a CSV file") # CSV logging flag
277277
parser.add_argument('--lsl', action='store_true', help="Start LSL stream") # LSL streaming flag
278278
parser.add_argument('--gui', action='store_true', help="Start GUI for real-time plotting") # GUI flag

0 commit comments

Comments
 (0)