更新知乎链接

This commit is contained in:
2021-08-08 17:58:22 +08:00
parent 1ae09b24ef
commit e1a620ca7d
4 changed files with 8 additions and 3 deletions
@@ -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) { // 小于一定数值直接用黑点