Merge branch 'dev'
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#### 相关链接
|
||||
https://gitee.com/namophice/ink-photo-album
|
||||
https://github.com/Namophice/ink-photo-album
|
||||
https://zhuanlan.zhihu.com/p/397288660
|
||||
https://zhuanlan.zhihu.com/p/397304172
|
||||
|
||||
#### PS:
|
||||
此仓库仅包含源码、图片等资源,感兴趣者可拉取代码到本地编译运行,如有疑问或建议,可提issues或通过邮箱(namophice@foxmail.com)与QQ(1763453138)联系我,有时间会在后续版本解决与优化(或许)。
|
||||
@@ -118,6 +118,11 @@ public class EPaper {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化屏幕
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public void init() throws IOException, InterruptedException {
|
||||
CommonUtil.printLogToConsole("Init the driver ...");
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ public class ImageUtil {
|
||||
int randomNum = new Random().nextInt(0xffffff);
|
||||
int binValue;
|
||||
|
||||
//0是黑 1是白 ,或者说数值小就靠近黑色,数值大就靠近白色
|
||||
// 0是黑 1是白 ,或者说数值小就靠近黑色,数值大就靠近白色
|
||||
if(oneGate > 0xec82e0) { // 大于一定数值,直接用白点
|
||||
binValue = 0xffffff;
|
||||
} else if(oneGate < 0x6ea050) { // 小于一定数值直接用黑点
|
||||
|
||||
Reference in New Issue
Block a user