...
def def_halt():
check_call(jukebox4kidsPath+"/scripts/playout_controls.sh -c=playerpause", shell=True)
def def_swr3():
check_call(jukebox4kidsPath+"./scripts/rfid_trigger_play.sh --cardid=0006650830", shell=True)
#shut = Button(3, hold_time=2)
vol0 = Button(13,pull_up=True)
volU = Button(16,pull_up=True,hold_time=0.3,hold_repeat=True)
volD = Button(19,pull_up=True,hold_time=0.3,hold_repeat=True)
next = Button(26,pull_up=True,hold_time=2.0,hold_repeat=False)
prev = Button(20,pull_up=True,hold_time=2.0,hold_repeat=False)
halt = Button(21,pull_up=True)
swr3 = Button(25,pull_up=True)
#shut.when_held = def_shutdown
vol0.when_pressed = def_vol0
volU.when_pressed = def_volU
#When the Volume Up button was held for more than 0.3 seconds every 0.3 seconds he will call a ra$
volU.when_held = def_volU
volD.when_pressed = def_volD
#When the Volume Down button was held for more than 0.3 seconds every 0.3 seconds he will lower t$
volD.when_held = def_volD
next.when_pressed = def_next
next.when_held = def_contrastup
prev.when_pressed = def_prev
prev.when_held = def_contrastdown
halt.when_pressed = def_halt
swr3.when_pressed = def_swr3
from gpiozero import LED
led = LED(12)
led.on()
pause()