Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/sh
set -e
while getopts ":a" opt; do
case $opt in
a)
attach=1
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
done
shift $((OPTIND - 1))
src=${1}
dest=${2:-'/pyboard/main.py'}
RESTART_COMMAND='repl ~ import machine ~ machine.soft_reset()'
if [[ $attach -ne 1 ]]; then
RESTART_COMMAND="${RESTART_COMMAND}~"
fi
rshell cp ${src} ${dest}
rshell $RESTART_COMMAND
e5dc80d9bThis file is pinned to the selected release. Download the original to open it in your design tool.