From 8b23ded161554831641a38ff6a675f84c1df7f9b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 11:05:46 -0500 Subject: [PATCH] added extra to make Tx LED work with Pi 4 --- rpitx.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/rpitx.py b/rpitx.py index 57c52a96..c48e4a05 100644 --- a/rpitx.py +++ b/rpitx.py @@ -41,7 +41,20 @@ else: txLedOn = 1 txLedOff = 0 +# GPIO.setup(txLed, GPIO.OUT) +# output(txLed, txLedOff) + +GPIO.setmode(GPIO.BCM) +GPIO.setwarnings(False) + GPIO.setup(txLed, GPIO.OUT) + +output(txLed, txLedOn) +sleep(1) +output(txLed, txLedOff) +sleep(1) +output(txLed, txLedOn) +sleep(1) output(txLed, txLedOff) # print(txLedOn)