From 83ced445ffba006d97a8ac31ca9cc419085008c6 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 5 Mar 2022 17:05:46 -0500 Subject: [PATCH] added vhf flag --- rpitx.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpitx.py b/rpitx.py index 047d05dc..1cf5b608 100644 --- a/rpitx.py +++ b/rpitx.py @@ -16,6 +16,8 @@ GPIO.setup(12, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(27, GPIO.IN, pull_up_down=GPIO.PUD_UP) transmit = False +uhf = True + if GPIO.input(12) == False: print("Version is v1 with UHF BPF") transmit = True @@ -30,8 +32,9 @@ elif GPIO.input(27) == False: txLedOff = 1 elif GPIO.input(13) == False: print("Version is v1 with VHF BPF") - print("VHF transmit not implemented yet") -# transmit = True +# print("VHF transmit not implemented yet") + transmit = True + vhf = False txLed = 27 txLedOn = 1 txLedOff = 0