printrun-src/testtools/lengthy.py

Wed, 20 Jan 2021 10:17:01 +0100

author
mdd
date
Wed, 20 Jan 2021 10:17:01 +0100
changeset 47
dcc64b767b64
parent 45
c82943fb205f
permissions
-rwxr-xr-x

updated pronterface.py losing my own changes

45
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
1 #!/usr/bin/python3
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
2 #generate many g1 to test serial buffer overflow in run_gcode_script
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
3 #run like this:
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
4 #in pronsole> run_gcode_script ./testtools/lengthy.py
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
5 print('G28 X')
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
6 print('G1 X0')
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
7 for x in range(100):
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
8 print()
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
9 print(' ')
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
10 print('G1 X', x)

mercurial