Skip to content

daniel-starke/sm2lbpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sm2lbpp

A Snapmaker 2.0 LightBurn Post-Processor to add thumbnails for the Snapmaker terminal.

Features

This application can be used as Gcode post-processing script which adds in-place thumbnail data compatible to the Snapmaker terminal to the given file by modifying the G-Code comment sections.

Usage

  • Store sm2lbpp somewhere on your system.
  • Run sm2lbpp file.nc.

Or, on Windows:

  • Put ´scripts/register-sm2lbpp.bat next to sm2lbpp.exe and run it with administrator rights.
  • Right click on the file.nc and select Add Snapmaker Thumbnail.

Building

The following dependencies are given:

  • C99
  • nanosvg
  • libpng
  • zlib

Edit Makefile to match your target system configuration.

Hint: You may want to link with -mwindows for Windows targets to suppress the console window to be shown.

Building the program:

make

Linux GCC Build Status Windows Visual Studio Build Status

Files

Name Meaning
*.mk Target specific Makefile setup.
mingw-unicode.h Unicode enabled main() for MinGW targets.
parser.* Text parsers and parser helpers.
target.h Target specific functions and macros.
tchar.* Functions to simplify ASCII/Unicode support.
sm2lbpp.* Main application files.
version.* Program version information.

License

See unlicense file for this code.
See also nanosvg, libpng and zlib licenses for third party code.