added TFB check

pull/101/head
alanbjohnston 5 years ago committed by GitHub
parent 0f10ead59e
commit 7c960c25f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,15 +11,29 @@ GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(22, 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)
transmit = False
if GPIO.input(12) == False:
print("VHF vB5 or Later")
transmit = True
txLed = 22
txLedOn = 1
txLedOff = 0
elif GPIO.input(27) == False:
print("TFB")
transmit = True
if GPIO.input(22) == False:
txLed = 22
txLedOn = 1
txLedOff = 0
elif GPIO.input(22) == False:
print("vB5 or Later")
transmit = True
txLed = 27
txLedOn = 0
txLedOff = 1
else:
print("No BPF")
txLed = 27
txLedOn = 1
txLedOff = 0

Loading…
Cancel
Save

Powered by TurnKey Linux.