From 6b69e63605970d1c3af66c1b2788e1f50185b546 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 31 Jul 2023 11:22:42 -0400 Subject: [PATCH] blink blue LED briefly when receive a command --- rpitx.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/rpitx.py b/rpitx.py index 2d3ad787..2386843f 100644 --- a/rpitx.py +++ b/rpitx.py @@ -200,6 +200,11 @@ if __name__ == "__main__": print("carrier received!") command_tx = not command_tx print(command_tx) + + output(txLed, txLedOn) + sleep(0.03) + output(txLed, txLedOff) + if (command_tx == True): print("Turning on transmit") system("echo > command_tx True") @@ -326,6 +331,11 @@ if __name__ == "__main__": print("carrier received!") command_tx = not command_tx print(command_tx) + + output(txLed, txLedOn) + sleep(0.03) + output(txLed, txLedOff) + if (command_tx == True): print("Turning on transmit") system("echo > command_tx True") @@ -440,6 +450,11 @@ if __name__ == "__main__": print("carrier received!") command_tx = not command_tx print(command_tx) + + output(txLed, txLedOn) + sleep(0.03) + output(txLed, txLedOff) + if (command_tx == True): print("Turning on transmit") system("echo > command_tx True") @@ -472,6 +487,11 @@ if __name__ == "__main__": print("carrier received!") command_tx = not command_tx print(command_tx) + + output(txLed, txLedOn) + sleep(0.03) + output(txLed, txLedOff) + if (command_tx == True): print("Turning on transmit") system("echo > command_tx True")