Update rpitx.py fix sstv GPIO

beta-extra-2
Alan Johnston 1 year ago committed by GitHub
parent 038cf1abfc
commit cc5ff2541c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -624,9 +624,9 @@ if __name__ == "__main__":
if (command_tx == True): if (command_tx == True):
print ("Sending SSTV image") print ("Sending SSTV image")
output(txLed, txLedOn)
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)
output(txLed, txLedOn)
# battery_saver_check() # battery_saver_check()
if (txc): if (txc):
@ -727,9 +727,9 @@ if __name__ == "__main__":
if (command_tx == True): if (command_tx == True):
# command_control_check() # command_control_check()
output(txLed, txLedOn)
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)
output(txLed, txLedOn)
# battery_saver_check() # battery_saver_check()

Loading…
Cancel
Save

Powered by TurnKey Linux.