aboutsummaryrefslogtreecommitdiff
path: root/bin/wait-connection-leonardo
diff options
context:
space:
mode:
authorSudar <sudar@sudarmuthu.com>2013-06-11 15:37:56 +0530
committerSudar <sudar@sudarmuthu.com>2013-06-11 15:46:22 +0530
commitf26a134418346cb8ae5745660f77b5e2d26d9148 (patch)
tree99d52940f42d9563b45073fa17dc140057920476 /bin/wait-connection-leonardo
parent675927053720fb8e96c96006ee9a4db095e0adc2 (diff)
parent36c32e75cc1a8dd41f769d8576e8cde9cff03dde (diff)
Add support for leonardo.
Leonardo board requires a new way of handling board reset. There is a new script which does the reset differently for leonardo boards. close #30 and close #44
Diffstat (limited to 'bin/wait-connection-leonardo')
-rwxr-xr-xbin/wait-connection-leonardo15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/wait-connection-leonardo b/bin/wait-connection-leonardo
new file mode 100755
index 0000000..92d26f7
--- /dev/null
+++ b/bin/wait-connection-leonardo
@@ -0,0 +1,15 @@
+#! /bin/bash
+
+while [ ! -e $1 ]
+do
+ echo Waiting connection at $1
+ sleep 0.2
+done
+
+sleep 1
+# necessary for me...
+# /dev/ttyACM0 used to disappear after the reset
+# but no longer now. How can I tell whether the
+# connection is ready?
+
+echo Connection Established