summaryrefslogblamecommitdiff
path: root/apps/examples/serialrx/send.py
blob: 29477dc26641b0e0decf8619577c9b80b3965bc7 (plain) (tree)
1
2
3
4
5
6
7
8






                          
                     



                                    





                          

                       
import sys
from time import sleep

f = open(sys.argv[1], "w")

s = ""
while len(s) < 11520:
  s += "1"

print("Sending to %s" % sys.argv[1])
while(True):
  f.write(s);
  f.flush();
  #for i in range(len(s)):
  #  f.write(s[i])
  #  f.flush()
  #  #sleep(0.050)
  sys.stdout.write(".")
  sys.stdout.flush()