2024-05-10 11:05:30 -05:00
|
|
|
#!/usr/bin/env bash
|
2022-08-15 20:30:33 -05:00
|
|
|
|
2024-05-09 12:00:34 -05:00
|
|
|
rightbud=/dev/serial/by-id/usb-wch.cn_USB_Dual_Serial_0123456789-if00
|
|
|
|
leftbud=/dev/serial/by-id/usb-wch.cn_USB_Dual_Serial_0123456789-if02
|
|
|
|
|
|
|
|
read -p "Which bud do you want to connect to UART for? L/R (default L): " -n 1 -r
|
|
|
|
ttydev=$leftbud
|
|
|
|
if [[ $REPLY =~ ^[Rr]$ ]]; then
|
|
|
|
ttydev=$rightbud
|
|
|
|
fi
|
|
|
|
sudo minicom -D $ttydev -b 2000000
|