Merge branch 'dev'

This commit is contained in:
2021-08-08 17:59:22 +08:00
4 changed files with 8 additions and 3 deletions

View File

@@ -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与QQ1763453138联系我有时间会在后续版本解决与优化或许

View File

@@ -118,6 +118,11 @@ public class EPaper {
}
}
/**
* 初始化屏幕
* @throws IOException
* @throws InterruptedException
*/
public void init() throws IOException, InterruptedException {
CommonUtil.printLogToConsole("Init the driver ...");

View File

@@ -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) { // 小于一定数值直接用黑点

View File

@@ -7,4 +7,4 @@ do
cd /opt/software/ink-photo-album
/usr/bin/sudo /usr/bin/java -jar /opt/software/ink-photo-album/ink-photo-album-1.0-SNAPSHOT-all.jar
sleep 5m
done
done