From 2e44844116334b3568dc1119f530416c7e920110 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 1 Aug 2024 09:14:28 -0400 Subject: [PATCH] Update rpitx.py add squelch GPIO setup for mode e --- rpitx.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpitx.py b/rpitx.py index 92db4929..47b98d35 100644 --- a/rpitx.py +++ b/rpitx.py @@ -770,6 +770,10 @@ if __name__ == "__main__": print("turn on FM rx") output(pd, 1) output(ptt, 1) + GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi 4 + GPIO.setup(txLed, GPIO.OUT) + GPIO.setup(powerPin, GPIO.OUT) + GPIO.setup(squelch, GPIO.IN, pull_up_down=GPIO.PUD_UP) ## pull up in case pin is not connected GPIO.output(powerPin, 0) while True: sleep(0.5)