4 # filter directories, and create relevant ones on the board
5 find . -mindepth 1 -type d | grep -v -E "(.(git|idea|vscode)|__pycache__)" | xargs -n1 ampy --port ${PORT} mkdir
7 # put top-level modules in place
8 for NAME in agnostic unittest
10 echo "Copying ${NAME}.py ..."
11 ampy --port ${PORT} put ${NAME}.py ${NAME}.py
14 # recursively sync folders of nested packages
15 for NAME in board digitalio mcp microcontroller testing
17 find ${NAME} -name '*.py'| xargs -n1 -I {} sh -c "echo Copying {} ...; ampy --port ${PORT} put {} {}"