Load and print file lines in processing? Answered
I want to make a cnc/3D printer using arduino, and right now my main obstacle (besides slow shipping on the remaining motor drivers) is how to get G-code to the arduino. I have a way to get the Gcode in a .txt file, but I need to separate every line, then send it over serial every ~2 seconds. Is this possible with processing, and if so, how do I do it.
Note: it needs to send each line separately, and so the arduino reads it as X# Y#, not just ## ## not sure if there's a difference, but if there is, it must be picked up that way. Also, I have GloviePIE, (a keboard emulator), if that helps in any way.