printrun-src/testtools/lengthy.py

Tue, 19 Jan 2021 20:45:09 +0100

author
mdd
date
Tue, 19 Jan 2021 20:45:09 +0100
changeset 45
c82943fb205f
permissions
-rwxr-xr-x

updated main files to new github master version

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