Skip to content

Commit 6e5de4b

Browse files
committed
Utility script for uploading libraries while editing paging test case
1 parent 3b358bc commit 6e5de4b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

upload_paging.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
set -e
3+
4+
export AMPY="ampy --port /dev/ttyUSB0"
5+
export AMPYPUT="$AMPY put"
6+
export AMPYRESET="$AMPY reset"
7+
8+
# Start in script current directory
9+
cd "$(dirname "$(realpath "$0")")";
10+
11+
# add mfrc522 library
12+
echo mfrc522...
13+
$AMPYPUT mfrc522.py
14+
15+
# add vault library
16+
echo vault...
17+
$AMPYPUT vault.py
18+
19+
# add timer library
20+
echo timer...
21+
$AMPYPUT timer.py
22+
23+
# add paging example
24+
echo paging...
25+
$AMPYPUT paging.py
26+
27+
$AMPYRESET

0 commit comments

Comments
 (0)