Update program_fm.py change from MHz to Hz

fiabv4-auto-tune-fm
Alan Johnston 1 month ago committed by GitHub
parent 96a912d555
commit 726f91bd35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -13,10 +13,10 @@ if __name__ == "__main__":
print("There are more arguments!")
rxf = float(sys.argv[2])
print("Programming FM module!\n")
tx = "{:.4f}".format(txf)
rx = "{:.4f}".format(rxf)
print(tx)
print(rx)
tx = "{:.4f}".format(txf/1000000.0)
rx = "{:.4f}".format(rxf/1000000.0)
print(f"Transmit frequency: {tx}")
print(f"Receive frequency: {rx}")
system("gpio -g mode 20 out")
system("gpio -g write 20 1")

Loading…
Cancel
Save

Powered by TurnKey Linux.