Generates Images for a TRMNL Device using SDL
Go to file
2025-12-04 15:04:39 +02:00
Widgets Added initial JSON configuration support 2025-12-04 15:04:39 +02:00
.gitignore Initial commit. Added base of framework 2025-12-04 13:05:12 +02:00
json.hpp Added initial JSON configuration support 2025-12-04 15:04:39 +02:00
main.cpp Added initial JSON configuration support 2025-12-04 15:04:39 +02:00
Makefile Initial commit. Added base of framework 2025-12-04 13:05:12 +02:00
README.md Added initial JSON configuration support 2025-12-04 15:04:39 +02:00
sdl_helpers.cpp Added initial JSON configuration support 2025-12-04 15:04:39 +02:00
sdl_helpers.h Added initial JSON configuration support 2025-12-04 15:04:39 +02:00

What is this

A utility which can be used to create custom images for TRMNL devices via code

How to write new visual stuff

  1. Inherit from Widget and then do your magic inside your own class.
  2. Instantiate your widget in main.cpp and add it to the vector of widgets.
  3. ???
  4. Profit

ImageMagick commands

Convert image without dithering

magick input.png -monochrome -colors 2 -depth 1 -strip png:output.png

Convert image with dithering

magick input.png -dither FloydSteinberg -remap pattern:gray50 -depth 1 -strip png:output.png

Notes

json.hpp from nlohmann/json v3.11.2