7
mirror of https://github.com/Hack-a-Day/Vectorscope.git synced 2025-04-08 00:15:31 +00:00

fix lissajous mode to not turn off audio

you can't control it from your code now, but only from the system menu
This commit is contained in:
Elliot Williams 2024-04-13 19:50:22 +02:00
parent 0d9cadf724
commit f2f3c6f68c
2 changed files with 4 additions and 1 deletions

View File

@ -1,12 +1,14 @@
#!/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! ##"
@ -18,6 +20,7 @@ do
echo "Waiting for the next badge..."
while [ -e /dev/ttyACM0 ]
do
sleep 1
true
done
fi

View File

@ -21,7 +21,7 @@ class Vectorscope():
def __init__(self, screen_running = False):
## Couple buttons if you want to play with them
self.audio_shutdown_pin = machine.Pin(pin_defs.audio_shutdown, machine.Pin.OUT, value=1)
# self.audio_shutdown_pin = machine.Pin(pin_defs.audio_shutdown, machine.Pin.OUT, value=1)
self.user_button = machine.Pin(pin_defs.user_button, machine.Pin.IN)
## Turn up the heat!