Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #333 from ModusCreateOrg/improvement/cal-messages
Browse files Browse the repository at this point in the history
Added more instructions to the CAL script
  • Loading branch information
jaygarcia authored Dec 18, 2017
2 parents af81615 + 0cd6d91 commit 77fab10
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules/
yarn.lock
tools/font-tool/font-tool
Evade2/build-leonardo/
/.vscode
32 changes: 30 additions & 2 deletions cal.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
#!/usr/bin/env bash

clear
echo " __________________________________________"
echo " | Evade 2 |"
echo " | Compilation and Deployment |"
echo " | --------- |"
echo " | This process will require a restart of |"
echo " | your Arduboy device. Make sure you |"
echo " | have a thin object (e.g. a toothipick) |"
echo " | close to the reset button. |"
echo " | |"
echo " | * Your Arduboy should be <ON>. * |"
echo " | |"
echo " | Warning: |"
echo " | Previously used toothpicks may cause |"
echo " | unexpected issues. |"
echo " __________________________________________"
read -p "Press any key (while holding on to the toothpick)... "
echo

which git
if [ $? -gt 0 ]; then
echo "ERROR:\nCould not find git in your \$PATH"
Expand Down Expand Up @@ -62,9 +81,18 @@ else
echo "Program size is ${program_size} bytes (${percent}%) of a maximum 28,672 bytes!"
fi

echo "Power on and reset your Arduboy now."
# This is where upload begins.
clear
echo " ******************************************"
echo " * RESET YOUR ARDUBOY NOW! *"
echo " ******************************************"
echo "5 seconds left..."
echo
sleep 4

sleep 5
echo "1 second left. Is the toothpick in already?"
echo
sleep 1

usbErrMsg="ERROR: Could not find Arduboy on USB modem! \n \
Make sure it's powered on and you've hit the reset button then restart this script"
Expand Down

0 comments on commit 77fab10

Please sign in to comment.