From 36c32e75cc1a8dd41f769d8576e8cde9cff03dde Mon Sep 17 00:00:00 2001 From: Sudar Date: Sat, 8 Jun 2013 17:26:24 +0530 Subject: Added leonardo support. Took Code from @guicho271828 --- bin/wait-connection-leonardo | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/wait-connection-leonardo (limited to 'bin/wait-connection-leonardo') 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 -- cgit v1.2.3