Update transmit.py crossband -290 MHz

fc-c
Alan Johnston 10 months ago committed by GitHub
parent 5d0be00edf
commit dff7fde57e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -797,7 +797,7 @@ if __name__ == "__main__":
# else: # else:
sleep(0.6) sleep(0.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("Cross Band Repeater")
print("Stopping command and control") print("Stopping command and control")
system("sudo systemctl stop command") system("sudo systemctl stop command")
print("turn on FM rx") print("turn on FM rx")
@ -808,6 +808,8 @@ if __name__ == "__main__":
# GPIO.setup(powerPin, GPIO.OUT) # GPIO.setup(powerPin, GPIO.OUT)
GPIO.setup(squelch, GPIO.IN, pull_up_down=GPIO.PUD_UP) ## pull up in case pin is not connected GPIO.setup(squelch, GPIO.IN, pull_up_down=GPIO.PUD_UP) ## pull up in case pin is not connected
# GPIO.output(powerPin, 1) # was 0 # GPIO.output(powerPin, 1) # was 0
tx = rx - 290
print("Transmit frequency: ",tx)
while True: while True:
sleep(0.5) sleep(0.5)
if (GPIO.input(squelch) == False): if (GPIO.input(squelch) == False):

Loading…
Cancel
Save

Powered by TurnKey Linux.