|
|
|
|
@ -355,6 +355,7 @@ if __name__ == "__main__":
|
|
|
|
|
card = "Headphones" # default using pcm audio output of Pi Zero
|
|
|
|
|
# card = "Device" # using USB sound card for audio output
|
|
|
|
|
|
|
|
|
|
if (mode != 'e'):
|
|
|
|
|
print("Programming FM module!\n");
|
|
|
|
|
output(pd, 1)
|
|
|
|
|
output (ptt, 1)
|
|
|
|
|
@ -384,7 +385,7 @@ if __name__ == "__main__":
|
|
|
|
|
# if (mode != ) and (command_tx == True):
|
|
|
|
|
# if (command_tx == True):
|
|
|
|
|
## if ((mode == 'a') or (mode == 'b') or (mode == 'f') or (mode == 's') or (mode == 'j')) 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)) or (mode == 'e'):
|
|
|
|
|
if (((mode == 'a') or (mode == 'b') or (mode == 'f') or (mode == 's') or (mode == 'j')) and (command_tx == True) and (skip == False)) or ((mode == 'e') and (command_tx == True)):
|
|
|
|
|
# battery_saver_mode
|
|
|
|
|
GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi Zero 2 and Pi 4
|
|
|
|
|
GPIO.setup(txLed, GPIO.OUT)
|
|
|
|
|
|