Update rpitx.py disable GPIO 12

beta-dw-pigpio
Alan Johnston 2 years ago committed by GitHub
parent 8280dfd6a9
commit beace46890
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -194,18 +194,18 @@ command_tx = True
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
#GPIO.setup(13, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(12, GPIO.IN, pull_up_down=GPIO.PUD_UP)
#GPIO.setup(12, GPIO.IN, pull_up_down=GPIO.PUD_UP)
#GPIO.setup(27, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(txc_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(green, GPIO.OUT)
transmit = False
if GPIO.input(12) == False:
print("Version is v1 with UHF BPF")
transmit = True
txLed = 27
txLedOn = 1
txLedOff = 0
#if GPIO.input(12) == False:
# print("Version is v1 with UHF BPF")
# transmit = True
# txLed = 27
# txLedOn = 1
# txLedOff = 0
#elif GPIO.input(27) == False:
# print("Version is TFB")
# transmit = True

Loading…
Cancel
Save

Powered by TurnKey Linux.