create packed binaries for black & white bitmap images for tiny hobbyist displays
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Robey 796110c688 add a readme and a license so i can post it 1 month ago
arduino add a readme and a license so i can post it 1 month ago
packbmp break up into modules 3 months ago
.gitignore add a readme and a license so i can post it 1 month ago
LICENSE.txt add a readme and a license so i can post it 1 month ago
Makefile the width and height might be more than 255, heh 1 month ago
README.md add a readme and a license so i can post it 1 month ago
packbmp.py add a readme and a license so i can post it 1 month ago
packbmp.sh break up into modules 3 months ago
poetry.lock break up into modules 3 months ago
pyproject.toml add a readme and a license so i can post it 1 month ago

README.md

packbmp

This is a small python tool for converting a 2-color (black & white) BMP into a C byte array, using a simple RLE encoding. It can be useful for compressing icons or tiny splash screens, for e-ink or OLED displays.

Usage

$ make
$ ./packbmp.sh --help

Sample C++ code

A PackedBitmap C++ class is included in arduino/ as an example of how to render a packed bitmap using the "Adafruit GFX" library. Feel free to use that code in your own projects.

License

Apache 2 (open-source) license, included in 'LICENSE.txt'.

Credit and blame: Robey Pointer robey@lag.net