--- /dev/null
+#!/usr/bin/env python
+
+import RPi.GPIO as GPIO
+from signal import pause
+import pygame
+import glob
+import time
+
+GPIO.setmode(GPIO.BCM)
+
+GPIO.setup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP)
+
+pygame.mixer.init()
+pygame.mixer.music.load( glob.glob("/run/media/system/*/muzika.mp3")[0] )
+
+def play(channel):
+ print("play", channel)
+ pygame.mixer.music.play()
+ while pygame.mixer.music.get_busy() == True:
+ time.sleep(0.1)
+ continue
+
+GPIO.add_event_detect(26, GPIO.FALLING, callback=play, bouncetime=300)
+
+try:
+ play(42)
+ pause()
+except KeyboardInterrupt:
+ GPIO.cleanup()
+