Code tool paths to plot a sketch on your 3d printer using a marker/pen.
Examples can be found in testing directory.
Although this directory includes precompiled gcode files, recompiling them is advised as they might not be up to date.
- need python 3.10 installed and on path
- rust to compile
- a machine that can run gcode or a tool path viewer to run/test
- Start the interactive preview to see how your current program will look like.
- The preview wil auto update every time there is a change to your file.
- Once you are satisfied with your result, run the compiler.
- Put a piece of paper onto your printer and secure it.
- Now start your printer with the gcode file.
- The printer should auto-home, then pause.
- Now attach the pen so that it almost touches the paper, and press
resume
.
Note: test how far down you need to put the pen so that it reaches the paper, but does not press into it too long as that might create sploches of ink. Make sure the pen is secured in a way that if flexes back down if pressed up slightly (see image above) - Do not lose the cap of the marker as I did.
cargo run -- compile <instructions.py> <out.gcode>
cargo run -- repl <instructions.py>