7
mirror of https://github.com/Hack-a-Day/Vectorscope.git synced 2024-11-24 14:04:39 +00:00
Vectorscope/source/flash
Elliot Williams f2f3c6f68c fix lissajous mode to not turn off audio
you can't control it from your code now, but only from the system menu
2024-04-13 19:50:22 +02:00

29 lines
613 B
Bash
Executable File

#!/bin/bash
while true
do
sleep 1
if [ -e /dev/ttyACM0 ]
then
echo "Flashing"
mpremote cp supercon_menu.py :
mpremote cp splash_2024.jpg :
mpremote cp splash_europe.jpg :
mpremote cp vectorscope.py :
mpremote reset
echo "###############################################"
echo "## Thank you for using the Hackaday Flasher! ##"
echo "###############################################"
echo ""
## wait for device to reattach tty
sleep 1
## twirl in loop until it gets pulled again
echo "Waiting for the next badge..."
while [ -e /dev/ttyACM0 ]
do
sleep 1
true
done
fi
done