本例程为 PhotoPainter 的示例代码,友情开源,有bug欢迎反馈。
相关资料地址:
PhotoPainter - Waveshare Wiki
一、使用 Photoshop 制作散点图,然后导入到 SD 卡。参考教程:
E-Paper-Floyd-Steinberg - Waveshare Wiki
二、使用 图片制作工具-由Dr. Fedor G. Sarafanov 分享提供:
Image Tool by Dr. Fedor G. Sarafanov
三、使用我们提供的七色抖动图片转换工具。下载链接:
ConverTo7c_bmp.zip
-
单张图片转换
将图片
拖到convert.exe
上即可完成转换。 -
批量转换图片
将图片
、convert.exe
和converterTo7color_all.cmd
放在同一个文件夹中,然后双击converterTo7color_all.cmd
文件即可进行批量转换。
将图片
、convert
、converterTo7color_all
放在一个文件夹
打开终端,进入对应的文件夹
cd xxxx/xxx/xxx/
-
单张图片转换
输入命令,给予convert
可执行权限sudo chmod +x convert
转换图片
./convert 图片名称
-
批量转换图片
要先对convert
文件进行权限操作给予后才行输入命令,给予
converterTo7color_all.sh
可执行权限sudo chmod +x converterTo7color_all.sh
转换图片
./converterTo7color_all.sh
This example code is for PhotoPainter, which is open-sourced in a friendly manner. If you find any bugs, please feel free to report them.
Related documentation can be found at:
PhotoPainter - Waveshare Wiki
1.Using Photoshop to create a dithered image and then importing it to an SD card. For a tutorial, please refer to:
E-Paper-Floyd-Steinberg - Waveshare Wiki
2.Use the image-making tool - courtesy of Dr. Fedor G. Sarafanov:
Image Tool by Dr. Fedor G. Sarafanov
3.Using our provided 7-color dithering image conversion tool. Download link:
ConverTo7c_bmp.zip
-
Single Image Conversion
Drag the image ontoconvert.exe
to complete the conversion. -
Batch Image Conversion
Place theimages
,convert.exe
, andconverterTo7color_all.cmd
in the same folder. Double-click theconverterTo7color_all.cmd
file to perform batch conversion.
Place the images
, convert
and converterTo7color_all
in the same folder.
Open the terminal and navigate to the corresponding folder:
cd xxxx/xxx/xxx/
-
Single Image Conversion
Grant execution permission toconvert
:sudo chmod +x convert
Convert the image:
./convert image_name
-
Batch Image Conversion
You need to first grant execution permissions to theconvert
file.Grant execution permission to
converterTo7color_all.sh
:sudo chmod +x converterTo7color_all.sh
Convert the images:
./converterTo7color_all.sh