1234567891011121314151617181920212223242526272829303132333435 |
- #!/bin/bash
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- set -euo pipefail
-
- SERIAL=/dev/serial/by-id/usb-Raspberry_Pi_Pico_*
-
- echo -n Waiting for serial port to appear
- until [ -e $SERIAL ]
- do
- echo -n .
- sleep 1
- done
- echo
-
- echo Opening picocom terminal
- echo "[C-a] [C-x] to exit"
- echo
-
- picocom -q --omap crcrlf --imap lfcrlf $SERIAL
|