Update transmit.py fix ptt

master-b-p-s
Alan Johnston 3 weeks ago committed by GitHub
parent e2920121e2
commit 63f693bcbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -603,15 +603,15 @@ if __name__ == "__main__":
while (True): while (True):
sleep(0.1) sleep(0.1)
# GPIO.wait_for_edge(pttPin, GPIO.FALLING) # GPIO.wait_for_edge(pttPin, GPIO.FALLING)
while (input(pttPin) != 0): while (input(ptt) != 0):
sleep(0.5) sleep(0.2)
# GPIO.output(txLed, 1) # GPIO.output(txLed, 1)
output(txLed, 1) output(txLed, 1)
print("1") print("1")
# sleep(0.1) # sleep(0.1)
GPIO.wait_for_edge(pttPin, GPIO.RISING) # GPIO.wait_for_edge(pttPin, GPIO.RISING)
while (input(pttPin) != 1): while (input(ptt) != 1):
sleep(0.5) sleep(0.2)
# GPIO.output(txLed, 0) # GPIO.output(txLed, 0)
output(txLed, 0) output(txLed, 0)
print("0") print("0")

Loading…
Cancel
Save

Powered by TurnKey Linux.