Actualizar 'main.py'

Fix: Audio test path
This commit is contained in:
Luca 2022-09-24 18:56:00 +00:00
parent e15639dbee
commit d9a266aac1

2
main.py Executable file → Normal file
View File

@ -23,7 +23,7 @@ def button_callback(channel):
## init pygame ## init pygame
pygame.mixer.init() pygame.mixer.init()
pygame.mixer.music.load('/home/docker/gpio/audio.mp3') pygame.mixer.music.load('./audio.mp3')
GPIO.setwarnings(False) # Ignore warning for now GPIO.setwarnings(False) # Ignore warning for now
GPIO.setmode(GPIO.BOARD) # Use physical pin numbering GPIO.setmode(GPIO.BOARD) # Use physical pin numbering