Skip to content

Commit

Permalink
serial test change successful
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaan-Datta committed Nov 9, 2024
1 parent 7e4fe52 commit a118147
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/utils/serial_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
time.sleep(1)

0 comments on commit a118147

Please sign in to comment.