[Tutor] Python GPIO Code Help Needed

Dominik George nik at naturalnet.de
Sun Oct 26 13:10:16 CET 2014


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


More information about the Tutor mailing list