Closed comes04 closed 3 years ago
Ok, I just need to give time to conect with while not p.online: time.sleep(0.1)
The following works
`p = printcore() p.connect('COM4', 115200)
while not p.online: time.sleep(0.1)
gcode = [i.strip() for i in open('prueba_lecturas_pasos_cortos.gcode')] gcode = gcoder.LightGCode(gcode) p.startprint(gcode)`
Thanks @comes04 , I updated the README with your fix.
Hi there! One more time i need your help with a proyect; I'm trying to print a gcode from python, actually a run it trought pycharm in windows. I just copied the example in this website as following:
`from printrun.printcore import printcore from printrun import gcoder
p = printcore() p.connect('COM4', 115200)
gcode = [i.strip() for i in open('prueba_lecturas_pasos_cortos.gcode')] gcode = gcoder.LightGCode(gcode) p.startprint(gcode)`
with this, it doesnt print anything. Any idea what i'm doing wrong? Thanks in advance.