more pause at start and end
This commit is contained in:
parent
6c1cc9c5ad
commit
2e3da420a6
|
|
@ -13,7 +13,7 @@ with open("FREUDE.gcode", "w") as f:
|
|||
f.write("G90 ; use absolute coordinates\n")
|
||||
f.write("G0 Z10 F300\n")
|
||||
f.write("G0 X0 Y0 F3000\n")
|
||||
f.write("G4 S1 ; wait 1 second\n")
|
||||
f.write("G4 S2\n")
|
||||
position = 0
|
||||
with open("freude.txt", "r") as notes:
|
||||
for note, duration in csv.reader(notes):
|
||||
|
|
@ -22,3 +22,4 @@ with open("FREUDE.gcode", "w") as f:
|
|||
position += -length if position > 100 else length
|
||||
f.write(f"G0 X{position:.6f} Y{position:.6f} F{feedrate} \n")
|
||||
f.write("G4\n")
|
||||
f.write("G4 S2\n")
|
||||
|
|
|
|||
Loading…
Reference in a new issue