blink blue LED briefly when receive a command

fm-rx
Alan Johnston 3 years ago committed by GitHub
parent f05976c7ea
commit 6b69e63605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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")

Loading…
Cancel
Save

Powered by TurnKey Linux.