Commit 3b289386 authored by santiago duque's avatar santiago duque

added gpiozero test

parent 6ebecb8b
import os
from os.path import isfile, join
import pygame
from gpiozero import Button
# import keyboard
from storage_media import USBDeviceHandler
......@@ -18,6 +19,9 @@ window = pygame.display.set_mode((winW, winH))
# clock = pygame.time.Clock()
btn1 = Button(21)
btn1.when_pressed = lambda : play_sound(0)
def reset_sounds():
global sound_array
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment