Actualizar 'main.py'
Fix: Audio test path
This commit is contained in:
parent
e15639dbee
commit
d9a266aac1
2
main.py
Executable file → Normal file
2
main.py
Executable file → Normal 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
|
||||||
|
Loading…
Reference in New Issue
Block a user