Hi,

>        if ( GPIO.input(23) == False ):
>                os.system('mpg321 -g 95 a.mp3')

while not GPIO.input(23):
    pass

... would be the simplest solution.

-nik
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to