diff options
author | Kai Stevenson <kai@kaistevenson.com> | 2024-06-10 23:08:13 +0100 |
---|---|---|
committer | Kai Stevenson <kai@kaistevenson.com> | 2024-06-10 23:08:13 +0100 |
commit | e0576f5aa100c8f7acd666777f0c62bc4c7c6144 (patch) | |
tree | 46fbbfcd9cd814801a49b93828fc9e34e1f2e06b /upload.sh |
init
Diffstat (limited to 'upload.sh')
-rw-r--r-- | upload.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/upload.sh b/upload.sh new file mode 100644 index 0000000..b74e057 --- /dev/null +++ b/upload.sh @@ -0,0 +1,4 @@ +BOARD="arduino:avr:uno" +PORT=$(arduino-cli board list | grep dev | grep -o '^\S*') +arduino-cli compile -b $BOARD +arduino-cli upload -p $PORT -b $BOARD |