]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Adding some convenience scripts used in manufacturing.
authorJacob Alexander <haata@kiibohd.com>
Mon, 9 Feb 2015 21:15:25 +0000 (13:15 -0800)
committerJacob Alexander <haata@kiibohd.com>
Mon, 9 Feb 2015 21:15:25 +0000 (13:15 -0800)
Bootloader/Scripts/easyMode.bash [new file with mode: 0644]
Bootloader/Scripts/ledTest.bash [new file with mode: 0644]

diff --git a/Bootloader/Scripts/easyMode.bash b/Bootloader/Scripts/easyMode.bash
new file mode 100644 (file)
index 0000000..65b4848
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Just in case there was an extra ledTest.bash (don't care if error)
+rm /dev/ttyACM0
+
+./swdLoad.bash kiibohd_manufacturing_2014-11-16.bin 0
+
+echo "Press CTRL+C to Continue"
+
+while true; do
+       sleep 1
+       if [ -e /dev/ttyACM0 ]; then
+               ./ledTest.bash
+       fi
+done
+
+exit 0
+
diff --git a/Bootloader/Scripts/ledTest.bash b/Bootloader/Scripts/ledTest.bash
new file mode 100644 (file)
index 0000000..07aa9d8
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+printf "led\r" > /dev/ttyACM0
+
+exit 0
+