diff --git a/tools/utils/serial_test.py b/tools/utils/serial_test.py index 098d2bb..b8e43dc 100644 --- a/tools/utils/serial_test.py +++ b/tools/utils/serial_test.py @@ -6,11 +6,11 @@ for port in ports: print(port.device) -ser = serial.Serial('/dev/ttyUSB0', 115200, timeout=1) # Adjust USB port as needed +# /dev/ttyUSB0 for linux? +ser = serial.Serial('COM3', 115200, timeout=1) # Adjust USB port as needed while True: serialized_msg = str(1) + '\n' # Add a newline as a delimiter ser.write(serialized_msg.encode()) print("sent to arduino") - - time.sleep(2) \ No newline at end of file + time.sleep(1) \ No newline at end of file