vgonisanz / GLCD-BitmapConverter

A tool to convert bitmap images to C arrays for GLCDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GLCD Bitmap Converter

A tool for converting bitmaps to C arrays for monochrome GLCDs.

Usage

Use python converter.py -h to see a list of arguments.

Example

The original image was converted with python converter.py -f sakuya.png -i --height 64 -o "sakura.h" --threshold 244 and is shown on a TiLDA MKe.

Original On TiLDA MKe

Image source

Another example python converter.py -f soba.bmp -i --height 32 -o "soba.h"

Changelog:

  • Now export to C file with format based on output name.
  • TODO get height from image.
  • TODO use assets folder and output folder.

About

A tool to convert bitmap images to C arrays for GLCDs

License:Apache License 2.0


Languages

Language:Python 100.0%