diff --git a/code/piplayer4.py b/code/piplayer4.py index 38e6e74..dde754e 100644 --- a/code/piplayer4.py +++ b/code/piplayer4.py @@ -1,5 +1,5 @@ # piplayer4 - AudioLauncher -# http://www.tilman.de/piplayer4 +# http://www.tilman.de/projekte/audiolauncher import RPi.GPIO as GPIO import logging @@ -19,9 +19,8 @@ SOUND_SCANNING = "mnt/INTERNAL/sounds/scanning.mp3" SOUND_SCAN_FAIL = "mnt/INTERNAL/sounds/fail-05.mp3" QR_SCANNER_TIMEOUT = 4 - # photo sensor on PIN 17 -PIN_SENSOR = 4 # TEST +PIN_SENSOR = 4 ## TODO TEST # IR LED on PIN 22 PIN_IR_LED = 22 @@ -98,7 +97,7 @@ try: while True: logging.info('Wait for photo sensor') - GPIO.wait_for_edge(PIN_SENSOR, GPIO.FALLING) # TEST + GPIO.wait_for_edge(PIN_SENSOR, GPIO.FALLING) ## TODO TEST logging.info('Photo sensor active, activating light and camera') play(SOUND_SCANNING)