Update transmit.py add mode -j

fc-1
Alan Johnston 11 months ago committed by GitHub
parent 80adb03f8e
commit 20a39c05aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -383,7 +383,7 @@ if __name__ == "__main__":
# if (mode != ) and (command_tx == True): # if (mode != ) and (command_tx == True):
# if (command_tx == True): # if (command_tx == True):
if ((mode == 'a') or (mode == 'b') or (mode == 'f') or (mode == 's')) and (command_tx == True) and (skip == False): if ((mode == 'a') or (mode == 'b') or (mode == 'f') or (mode == 's') or (mode == 'j')) and (command_tx == True) and (skip == False):
# battery_saver_mode # battery_saver_mode
GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi Zero 2 and Pi 4 GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi Zero 2 and Pi 4
GPIO.setup(txLed, GPIO.OUT) GPIO.setup(txLed, GPIO.OUT)
@ -739,9 +739,12 @@ if __name__ == "__main__":
# output(pd, 0) # output(pd, 0)
sleep(10) sleep(10)
elif (mode == 'b'): elif (mode == 'b') or (mode == 'j'):
# command_control_check() # command_control_check()
print("BPSK") if (mode == 'b'):
print("BPSK")
else
print("FunCube")
print("turn on FM rx") print("turn on FM rx")
output(pd, 1) output(pd, 1)
output(ptt, 1) output(ptt, 1)
@ -768,7 +771,10 @@ if __name__ == "__main__":
output(txLed, txLedOn) output(txLed, txLedOn)
# print(txLed) # print(txLed)
# print(txLedOn) # print(txLedOn)
sleep(4.2) if (mode == 'b'):
sleep(4.2)
else
sleep(4.6)
elif (mode == 'e'): # code based on https://zr6aic.blogspot.com/2016/11/creating-2m-fm-repeater-with-raspberry.html elif (mode == 'e'): # code based on https://zr6aic.blogspot.com/2016/11/creating-2m-fm-repeater-with-raspberry.html
print("Repeater") print("Repeater")
print("Stopping command and control") print("Stopping command and control")

Loading…
Cancel
Save

Powered by TurnKey Linux.