From 1837ecb168de01414b0abb97c9462d61798e2b4f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 14 May 2021 21:14:26 -0400 Subject: [PATCH] fixed GPIO22 sensing --- rpitx.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpitx.py b/rpitx.py index cc183112..340793ed 100644 --- a/rpitx.py +++ b/rpitx.py @@ -9,14 +9,14 @@ from picamera import PiCamera GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) -GPIO.setup(27, GPIO.IN, pull_up_down=GPIO.PUD_UP) +GPIO.setup(22, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(12, GPIO.IN, pull_up_down=GPIO.PUD_UP) transmit = False if GPIO.input(12) == False: transmit = True -if GPIO.input(27) == False: +if GPIO.input(22) == False: transmit = True - txLed = 22 + txLed = 27 txLedOn = False txLedOff = True else: @@ -25,7 +25,7 @@ else: txLedOff = False GPIO.setup(txLed, GPIO.OUT) -print(txLed) +print(txLedOn) print(transmit)