Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app-pyaudioplayer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
santiago duque
app-pyaudioplayer
Commits
3b289386
Commit
3b289386
authored
Jan 14, 2025
by
santiago duque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added gpiozero test
parent
6ebecb8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
main.py
main.py
+4
-0
No files found.
main.py
View file @
3b289386
import
os
import
os
from
os.path
import
isfile
,
join
from
os.path
import
isfile
,
join
import
pygame
import
pygame
from
gpiozero
import
Button
# import keyboard
# import keyboard
from
storage_media
import
USBDeviceHandler
from
storage_media
import
USBDeviceHandler
...
@@ -18,6 +19,9 @@ window = pygame.display.set_mode((winW, winH))
...
@@ -18,6 +19,9 @@ window = pygame.display.set_mode((winW, winH))
# clock = pygame.time.Clock()
# clock = pygame.time.Clock()
btn1
=
Button
(
21
)
btn1
.
when_pressed
=
lambda
:
play_sound
(
0
)
def
reset_sounds
():
def
reset_sounds
():
global
sound_array
global
sound_array
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment