Skip to content

Instantly share code, notes, and snippets.

View chuebsch's full-sized avatar

Christian Hübschle chuebsch

View GitHub Profile
@chuebsch
chuebsch / verbose-lcd.cpp
Created January 16, 2019 08:32
This reads in GCODE file made by Cura (maybe other slicers work as well not tested) and prints usefull Information via M117 on the printer display
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc,char **argv){
if ((argc>1)&&(strstr(argv[1],".gcode"))){
char inname[2048],outname[2048],line[250],type[24]="-",msg[41];
strncpy(inname,argv[1],2046);
inname[strlen(inname)-6]='\0';
sprintf(outname,"%s_verbose.gcode",inname);