-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[orx-g-code] Add g-code tools for pen plotting #285
base: master
Are you sure you want to change the base?
Conversation
Oh nice!! :-) I will take a look in the next days. I do have an Axidraw. Do you know if it's compatible? With what kind of devices have you tried your orx? |
From a quick search it looks like the Axidraw does not speak g-code at all natively 🤷♂️ However the implementation should allow for customization to any g-code dialect or device. So a 3d printer fitted with a pen holder would work as well 🤔 |
450d39f
to
f49bbc9
Compare
Thanks @Vechro for the suggestions on the build files! That's where I was a bit lost and didn't know what to follow/what is best practice. Also updated the test files. I'd like to keep this as a draft for a bit and continue using it with that interface before merging. Just to prevent any bigger changes once merged. |
Maybe @edwinRNDR can answer that. I can mostly offer advice on the build scripts. |
a1d93ac
to
0dce010
Compare
I did continue using it a bit since I opened the PR and didn't see any issues with the API so far. Think this is ready to be merged 🤔 |
extend(plot) { | ||
generator = basicGrblSetup() | ||
|
||
// Set output files to be exported to tmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tmp -> /tmp ?
generator = basicGrblSetup() | ||
|
||
// Set output files to be exported to tmp | ||
// "g" to export g-code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"g" -> Press "g" ?
// Export each layer to separate file | ||
layerMode = LayerMode.MULTI_FILE | ||
|
||
// Set output files to be exported to tmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tmp -> /tmp
layerMode = LayerMode.MULTI_FILE | ||
|
||
// Set output files to be exported to tmp | ||
// "g" to export g-code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"g" -> Press "g"
Sorry for the long latency! I'm writing a post in the guide about pen plotters and it motivated me to look into this. It would be good to offer both SVG and g-code. |
Maybe @edwinRNDR has now more time to say something about this? |
An extension to generate g-code from compositions, best used in a live coding environment. The intended use is for a pen plotter, but code to drive a laser cutter or other CNC machines could be generated as well.
I have used the foundation of this for a while now and tried to wrap everything in an more general and easy to use interface.
See the README and demo files on how to use.
Feedback is appreciated ✨