Last active
February 10, 2016 09:28
-
-
Save AlexandreRio/697c13b31f78c37a128c to your computer and use it in GitHub Desktop.
Wrapper around ino (inotools) to build and upload arduino firmware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# requirements: ano, picocom, dmenu... | |
LIB="$HOME/SINTEF/lib-arduino/" | |
SOURCE=`find $PWD -name '*.pde' | xargs ls -1t | dmenu -l 10` | |
if [ -z $SOURCE ] ; then | |
echo "Canceling build" | |
else | |
cd /tmp/ | |
fold="ano`date +%s`" | |
mkdir $fold | |
cd $fold | |
mkdir src lib | |
cp $SOURCE src/ | |
ln -s $LIB lib | |
ano build | |
ano upload | |
ano serial | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment