From 19d21393b2d6035f406caa53f76c8b592d93d60c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 30 Jun 2024 12:47:35 -0400 Subject: [PATCH] Update squelch_cc.py set powerPin mode --- squelch_cc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/squelch_cc.py b/squelch_cc.py index 9df6735f..ebf7eac2 100644 --- a/squelch_cc.py +++ b/squelch_cc.py @@ -165,7 +165,9 @@ def increment_mode(): GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) squelch = 6 +powerPin = 16 GPIO.setup(squelch, GPIO.IN, pull_up_down=GPIO.PUD_UP) ## pull up in case pin is not connected +GPIO.setup(powerPin, GPIO.OUT) while True: command_control_check()