Esempio n. 1
0
def extrudeFile(filename):
    """Parse a gcode file and send the commands to the extruder.
	This function requires write access to the serial device, running as root is one way to get that access."""
    print('File ' + filename + ' is being extruded.')
    fileText = archive.getFileText(filename)
    gcodec.writeFileMessageSuffix(filename, extrudeText(fileText),
                                  'The gcode log file is saved as ', '_log')
Esempio n. 2
0
def extrudeFile( filename ):
	"""Parse a gcode file and send the commands to the extruder.
	This function requires write access to the serial device, running as root is one way to get that access."""
	print('File ' + filename + ' is being extruded.')
	fileText = archive.getFileText( filename )
	gcodec.writeFileMessageSuffix( filename, extrudeText(fileText), 'The gcode log file is saved as ', '_log')
Esempio n. 3
0
def displayFile(filename):
    "Parse a gcode file and display the commands."
    print('File ' + filename + ' is being displayed.')
    fileText = archive.getFileText(filename)
    gcodec.writeFileMessageSuffix(filename, displayText(fileText),
                                  'The gcode log file is saved as ', '_log')
Esempio n. 4
0
def displayFile( filename ):
	"Parse a gcode file and display the commands."
	print('File ' + filename + ' is being displayed.')
	fileText = archive.getFileText( filename )
	gcodec.writeFileMessageSuffix( filename, displayText(fileText), 'The gcode log file is saved as ', '_log')