From ab3d7815dbb69d457c20fbddf0bfa53c1cdf6aec Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 30 Jul 2024 11:06:36 -0400 Subject: [PATCH] Update rpitx.py change check and BPF to LPF --- rpitx.py | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/rpitx.py b/rpitx.py index 9f6acaf6..a0bc5d6e 100644 --- a/rpitx.py +++ b/rpitx.py @@ -157,30 +157,15 @@ GPIO.setup(green, GPIO.OUT) GPIO.output(powerPin, 1) transmit = False +txLed = 27 +txLedOn = 1 +txLedOff = 0 if GPIO.input(12) == False: - print("Version is v1 with UHF BPF") + print("Version is v1 with UHF LPF") transmit = True - 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 imemented yet") -# transmit = True - txLed = 27 - txLedOn = 1 - txLedOff = 0 else: - print("No BPF") - txLed = 27 - txLedOn = 1 - txLedOff = 0 + print("No LPF") + # GPIO.setup(txLed, GPIO.OUT) # output(txLed, txLedOff)