Update rpitx.py remove gpio 13 and 27 since not used

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

@ -195,7 +195,7 @@ 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(27, 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)
@ -206,19 +206,20 @@ if GPIO.input(12) == False:
txLed = 27
txLedOn = 1
txLedOff = 0
elif GPIO.input(27) == False:
print("Version is TFB")
transmit = True
txLed = 22
txLedOn = 0
txLedOff = 1
elif GPIO.input(13) == False:
print("Version is v1 with VHF BPF")
print("VHF transmit not implemented yet")
#elif GPIO.input(27) == False:
# print("Version is TFB")
# transmit = True
txLed = 27
txLedOn = 1
txLedOff = 0
# txLed = 22
# txLedOn = 0
# txLedOff = 1
#elif GPIO.input(13) == False:
#if GPIO.input(13) == False:
# print("Version is v1 with VHF BPF")
# print("VHF transmit not implemented yet")
# transmit = True
# txLed = 27
# txLedOn = 1
# txLedOff = 0
else:
print("No BPF")
txLed = 27

Loading…
Cancel
Save

Powered by TurnKey Linux.