Generates Images for a TRMNL Device using SDL
| Widgets | ||
| .gitignore | ||
| config_example.json | ||
| json.hpp | ||
| main.cpp | ||
| Makefile | ||
| README.md | ||
| sdl_helpers.cpp | ||
| sdl_helpers.h | ||
What is this
A utility which can be used to create custom images for TRMNL devices via code
How to write new visual stuff
- Inherit from
Widgetand then do your magic inside your own class. - Add your widget builder in
main.cppinsideinit_builders. - Write your config file. Either named
config.jsonor added as the first command line parameter. - ???
- Profit
ImageMagick commands
Convert image without dithering
convert trmnl.png -monochrome -colors 2 -depth 1 -strip png:output.png
Convert image with dithering
convert trmnl.png -dither FloydSteinberg -remap pattern:gray50 -depth 1 -strip png:output.png
Notes
json.hpp from nlohmann/json v3.11.2