aboutsummaryrefslogtreecommitdiff
path: root/Arduino/bin/load.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Arduino/bin/load.sh')
-rwxr-xr-xArduino/bin/load.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/Arduino/bin/load.sh b/Arduino/bin/load.sh
new file mode 100755
index 0000000..0446f55
--- /dev/null
+++ b/Arduino/bin/load.sh
@@ -0,0 +1,18 @@
+# load.sh - flash your arduino using a locally installed bosac
+
+# Project Variables
+INO_NAME=ems
+PROJECT_PATH=/home/pi/ems/Arduino
+
+# Local System variables
+PORT=ttyACM0
+PACKAGES_PATH=/home/pi/BOSSA/bin
+BUILD_PATH=$PROJECT_PATH/build
+
+# Arduino compile tools are here:
+BOSSAC_PATH=$PACKAGES_PATH
+
+# load to the feather if possible
+#$BOSSAC_PATH/bossac -i -d -U true -i -e -w -v $BUILD_PATH/$INO_NAME.ino.bin -R
+$BOSSAC_PATH/bossac -i -d --port=$PORT -U true -i -e -w -v $BUILD_PATH/$INO_NAME.ino.bin -R
+