Sitelet https://github.com/qc24/prusa-wifi-tft-preview
Skip to content
 
 

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Copied from this repository https://github.com/whpthomas/tft-thumbnail but with changes to remove Windows line endings(CR-LF) to make the preview show properly on the TwoTrees Bluer printer with the MKS Robin nano v1.2 board and with the TFT35.

I'm adding a copy of the origial read me but with the paths changed for windows because i'm lazy the windows parts start with an underline.

TFT Thumbnail

G-code preview thumbnail

tft-thumbnail is a Prusa Slicer post processor for Two Trees Sapphire Pro/Plus (and MKS Robin Nano TFT35) 3D printers for generating compatible preview images.

Installation

Download the tft-thumbnail.py file and place it in your scripts folder. I use ~/bin for this.

On Windows I created a scripts folder in a folder that doesn't need admin privileges ex. ('C:\Users[your username]\Documents\PrusaScripts')

You will also need to make sure you have python3 installed and configured. On my Mac that can be done at the command prompt with:

brew install python3

On windows download you can download python on the original site this is the version i used 'https://www.python.org/downloads/release/python-3113/' or use a utility like chocolatey to install the python version 3.11.3

Then I recommend you run this post processing script at the command prompt on a small G-code file to check that all the required python libraries are installed. For example:

python3 tft-thumbnail.py test.gcode test-sp.gcode

On Windows I used

"[PATH TO PYTHON]\python.exe" "[PATH TO SCRIPTS]\tft-thumbnail.py" "[PATH TO GCODE]\test.gcode" "[PATH TO GCODE]\test-sp.gcode"

If you see any errors you can use pip to install any missing modules. For example:

pip install regex

pip install Image

On Windows You may need to use a command prompt with admin privileges

Prusa Slicer Setup

You need to configure Prusa Slicer to output preview images (G-code Thumbnails) and then run this post processing script to convert them into a format compatible with the MKS Robin Nano TFT35 display used by the Sapphire Pro/Plus 3D printers.

Printer Settings

Under the Printer Settings tab, in Firmware settings:

  • G-code flavor: Marlin 2
  • G-code thumbnails: 100x100, 200x200
  • Format of G-code thumbnails: PNG

Print Settings

Under the Print Settings tab, in Post-processing scripts settings:

/path/to/python3 /path/to/tft-thumbnail.py

On Windows I used

"[PATH TO PYTHON]\python.exe" "[PATH TO SCRIPTS]\tft-thumbnail.py"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages