From 7b89db9759c00cd5f366fa31aadb7e1c703609bc Mon Sep 17 00:00:00 2001 From: Tilman Date: Wed, 12 Dec 2018 21:26:02 +0000 Subject: [PATCH] Update piplayer4.py --- code/piplayer4.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/code/piplayer4.py b/code/piplayer4.py index dde754e..2e48f2d 100644 --- a/code/piplayer4.py +++ b/code/piplayer4.py @@ -20,13 +20,10 @@ SOUND_SCAN_FAIL = "mnt/INTERNAL/sounds/fail-05.mp3" QR_SCANNER_TIMEOUT = 4 # photo sensor on PIN 17 -PIN_SENSOR = 4 ## TODO TEST +PIN_SENSOR = 5 -# IR LED on PIN 22 -PIN_IR_LED = 22 - -# LED on PIN 27 -PIN_LED = 27 +# LED on PIN 22 +PIN_LED = 22 # Buttons on PINs 9, 10 and 11 PIN_PREV = 9 @@ -35,9 +32,7 @@ PIN_NEXT = 11 GPIO.setmode(GPIO.BCM) -GPIO.setup(PIN_SENSOR, GPIO.IN, pull_up_down=GPIO.PUD_UP) # TEST -GPIO.setup(PIN_IR_LED, GPIO.OUT) -GPIO.output(PIN_IR_LED, GPIO.LOW) +GPIO.setup(PIN_SENSOR, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(PIN_LED, GPIO.OUT) GPIO.output(PIN_LED, GPIO.LOW) GPIO.setup(PIN_PREV, GPIO.IN, pull_up_down=GPIO.PUD_UP)