1 个不稳定版本

0.1.0 2021年4月7日

#1967 in 开发工具

MIT 许可证

9KB
171

pic2lcd

将图像转换为LCD友好格式的命令行工具

安装

git clone https://github.com/VersBinarii/pic2lcd
cd pic2lcd
cargo install --path .

用法

USAGE:
    pic2lcd [FLAGS] [OPTIONS] <image>
FLAGS:
        --force-resize    Perform resizing without preserving aspect ratio
        --help            Prints help information
    -V, --version         Prints version information
    -v, --verbose
OPTIONS:
        --array-name <data-array-name>     [default: data]
    -h, --height <height>                 Output image might be lower than specified value to preserve aspect ratio. Use
                                          --force-resize if you dont care about aspect ratio.
    -O, --out-format <out-format>          [default: Rgb565]  [possible values: Monochrome, Rgb565]
    -o, --output <output>                  [default: out.h]
    -w, --width <width>                   Output image might be lower than specified value to preserve aspect ratio. Use
                                          --force-resize if you dont care about aspect ratio.
ARGS:
    <image>

依赖项

~16MB
~106K SLoC